-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
45 lines (36 loc) · 1.32 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
from os.path import realpath, dirname, join as path_join
from setuptools import setup, find_packages
name = "ARSpy"
description = "ARSpy"
long_description = "Adaptive Rejection Sampling for Python - Matlab Style"
maintainer = "Moritz Freidank"
maintainer_email = "[email protected]"
url = "https://github.com/MFreidank/ARSpy"
version = "0.3"
download_url = "https://github.com/MFreidank/ARSpy/archive/{}.tar.gz".format(
version
)
project_root = dirname(realpath(__file__))
requirements_file = path_join(project_root, "requirements.txt")
with open(requirements_file, "r") as f:
install_requirements = f.read().splitlines()
setup_requirements = ["pytest-runner"]
test_requirements = ["pytest", "pytest-cov"]
if __name__ == "__main__":
setup(
name=name,
version=version,
maintainer=maintainer,
maintainer_email=maintainer_email,
description=description,
url=url,
download_url=download_url,
long_description=long_description,
packages=find_packages(),
keyword=["sampling", "adaptive rejection sampling", "adaptive", "rejection", "ars"],
# package_data={"docs": ["*"]},
# include_package_data=True,
install_requires=install_requirements,
setup_requires=setup_requirements,
tests_require=test_requirements,
)