-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (40 loc) · 1.34 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 sys
from pathlib import Path
import numpy
from Cython.Build import cythonize
from setuptools import find_packages, setup
if __name__ == "__main__":
base_dir = Path(__file__).parent
src_dir = base_dir / "src" / "spmat"
sys.path.insert(0, src_dir.as_posix())
with (base_dir / "README.md").open() as f:
long_description = f.read()
install_requirements = ["regmod<0.2", "Cython", "msca>=0.1.1"]
test_requirements = [
"pytest",
"pytest-mock",
]
doc_requirements = []
setup(
name="spxmod",
version="0.2.1",
description="Coefficient-smoothing regression models",
long_description=long_description,
license="LICENSE",
url="https://github.com/ihmeuw-msca/spxmod",
author="IHME Math Sciences",
author_email="[email protected]",
package_dir={"": "src"},
packages=find_packages(where="src"),
include_package_data=True,
install_requires=install_requirements,
tests_require=test_requirements,
extras_require={
"docs": doc_requirements,
"test": test_requirements,
"dev": doc_requirements + test_requirements,
},
ext_modules=cythonize("src/spxmod/linalg.pyx"),
include_dirs=[numpy.get_include()],
zip_safe=False,
)