-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (26 loc) · 806 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Setup file."""
from setuptools import find_packages, setup
import re
_VERSION_FILE = "torchlambertw/_version.py"
verstrline = open(_VERSION_FILE, "rt").read()
_VERSION = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(_VERSION, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (_VERSION_FILE,))
setup(
name="torchlambertw",
version=verstr,
url="https://github.com/gmgeorg/torchlambertw.git",
author="Georg M. Goerg",
author_email="im@gmge.org",
description="torch implementation of Lambert W function and Lambert W x F distributions",
packages=find_packages(),
install_requires=[
"numpy >= 1.0.0",
"torch >= 2.0.1",
"scipy>=1.0.0",
"pytest>=6.1.1",
],
)