|
1 |
| -import pathlib |
2 |
| -import re |
3 |
| - |
4 | 1 | import setuptools
|
5 | 2 |
|
6 |
| -directory = pathlib.Path(__file__).parent.resolve() |
7 |
| - |
8 |
| -# version |
9 |
| -init_path = directory.joinpath("hetmatpy", "__init__.py") |
10 |
| -text = init_path.read_text(encoding="utf-8-sig") |
11 |
| -pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE) |
12 |
| -version = pattern.search(text).group(1) |
13 |
| - |
14 |
| -# long_description |
15 |
| -readme_path = directory.joinpath("README.md") |
16 |
| -long_description = readme_path.read_text(encoding="utf-8-sig") |
17 |
| - |
18 |
| -setuptools.setup( |
19 |
| - name="hetmatpy", |
20 |
| - description="Matrix implementations for hetnets and path-count-based measures", |
21 |
| - long_description_content_type="text/markdown", |
22 |
| - long_description=long_description, |
23 |
| - url="https://github.com/hetio/hetmatpy", |
24 |
| - project_urls={ |
25 |
| - "Source": "https://github.com/hetio/hetmatpy", |
26 |
| - "Documentation": "https://hetio.github.io/hetmatpy", |
27 |
| - "Tracker": "https://github.com/hetio/hetmatpy/issues", |
28 |
| - "Homepage": "https://het.io/software/", |
29 |
| - "Publication": "https://greenelab.github.io/connectivity-search-manuscript/", |
30 |
| - }, |
31 |
| - license="BSD-2-Clause Plus Patent License", |
32 |
| - packages=setuptools.find_packages(), |
33 |
| - python_requires=">=3.7", |
34 |
| - install_requires=[ |
35 |
| - "hetnetpy>=0.3.0", |
36 |
| - "numpy", |
37 |
| - "pandas", |
38 |
| - "scipy", |
39 |
| - ], |
40 |
| - extras_require={ |
41 |
| - "dev": [ |
42 |
| - "black", |
43 |
| - "flake8", |
44 |
| - "portray", |
45 |
| - "pytest", |
46 |
| - "xarray", |
47 |
| - ] |
48 |
| - }, |
49 |
| -) |
| 3 | +setuptools.setup() |
0 commit comments