forked from ahmedmalaa/Fourier-flows
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (36 loc) · 1.28 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os
import re
import setuptools
def read(fname: str) -> str:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_version() -> str:
version_file = read("fflows/version.py")
version_re = r"__version__ = \"(?P<version>.+)\""
version_raw = re.match(version_re, version_file)
if version_raw is None:
return "0.0.1"
version = version_raw.group("version")
return version
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
with open("requirements.txt") as fp:
install_requires = fp.read()
setuptools.setup(
name="fflows",
version=find_version(),
author="Ahmed Alaa",
description="Generative Time-series Modeling with Fourier Flows",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/vanderschaarlab/Fourier-flows",
license="BSD-3-Clause",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
install_requires=install_requires,
)