|
1 | 1 | import os
|
2 | 2 | import re
|
3 |
| -import sys |
4 | 3 |
|
5 | 4 | from setuptools import find_packages, setup
|
6 | 5 |
|
@@ -30,79 +29,12 @@ def absolute_links(txt):
|
30 | 29 | return txt
|
31 | 30 |
|
32 | 31 |
|
33 |
| -minimum_python_version = '3.10' |
34 |
| -if sys.version_info < tuple(map(int, minimum_python_version.split('.'))): |
35 |
| - sys.exit(f'PEtab Select requires Python >= {minimum_python_version}') |
36 |
| - |
37 |
| -# read version from file |
38 |
| -__version__ = '' |
39 |
| -version_file = os.path.join('petab_select', 'version.py') |
40 |
| -# sets __version__ |
41 |
| -exec(read(version_file)) # pylint: disable=W0122 # nosec |
42 |
| - |
43 |
| -ENTRY_POINTS = { |
44 |
| - 'console_scripts': [ |
45 |
| - 'petab_select = petab_select.cli:cli', |
46 |
| - ] |
47 |
| -} |
48 |
| - |
49 | 32 | # project metadata
|
50 | 33 | # noinspection PyUnresolvedReferences
|
51 | 34 | setup(
|
52 |
| - name='petab_select', |
53 |
| - version=__version__, |
54 |
| - description='PEtab Select: an extension to PEtab for model selection.', |
55 | 35 | long_description=absolute_links(read('README.md')),
|
56 | 36 | long_description_content_type="text/markdown",
|
57 |
| - # author='The PEtab Select developers', |
58 |
| - # author_email='dilan.pathirana@uni-bonn.de', |
59 | 37 | url=f'https://github.com/{org}/{repo}',
|
60 | 38 | packages=find_packages(exclude=['doc*', 'test*']),
|
61 |
| - install_requires=[ |
62 |
| - # TODO minimum versions |
63 |
| - 'more-itertools', |
64 |
| - 'numpy', |
65 |
| - 'pandas', |
66 |
| - 'petab', |
67 |
| - 'pyyaml', |
68 |
| - #'python-libsbml>=5.17.0', |
69 |
| - #'sympy', |
70 |
| - # required for CLI |
71 |
| - 'click', |
72 |
| - 'dill', |
73 |
| - # plotting |
74 |
| - #'matplotlib>=2.2.3', |
75 |
| - #'seaborn', |
76 |
| - ], |
77 | 39 | include_package_data=True,
|
78 |
| - python_requires=f'>={minimum_python_version}', |
79 |
| - entry_points=ENTRY_POINTS, |
80 |
| - extras_require={ |
81 |
| - 'test': [ |
82 |
| - 'pytest >= 5.4.3', |
83 |
| - 'pytest-cov >= 2.10.0', |
84 |
| - 'amici >= 0.11.25', |
85 |
| - 'fides >= 0.7.5', |
86 |
| - # FIXME |
87 |
| - # 'pypesto > 0.2.13', |
88 |
| - 'pypesto @ git+https://github.com/ICB-DCM/pyPESTO.git@select_use_old_calibrations#egg=pypesto', |
89 |
| - 'tox >= 3.12.4', |
90 |
| - 'flake8 >= 4.0.1', |
91 |
| - ], |
92 |
| - 'doc': [ |
93 |
| - 'sphinx>=3.5.3,<7', |
94 |
| - 'sphinxcontrib-napoleon>=0.7', |
95 |
| - 'sphinx-markdown-tables>=0.0.15', |
96 |
| - 'sphinx-rtd-theme>=0.5.1', |
97 |
| - 'recommonmark>=0.7.1', |
98 |
| - # pin until ubuntu comes with newer pandoc: |
99 |
| - # /home/docs/checkouts/readthedocs.org/user_builds/petab-select/envs/63/lib/python3.11/site-packages/nbsphinx/__init__.py:1058: RuntimeWarning: You are using an unsupported version of pandoc (2.9.2.1). |
100 |
| - # Your version must be at least (2.14.2) but less than (4.0.0). |
101 |
| - 'nbsphinx==0.9.1', |
102 |
| - 'nbconvert<7.5.0', |
103 |
| - 'ipython>=7.21.0', |
104 |
| - 'readthedocs-sphinx-ext>=2.2.5', |
105 |
| - 'sphinx-autodoc-typehints', |
106 |
| - ], |
107 |
| - }, |
108 | 40 | )
|
0 commit comments