-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (70 loc) · 2.48 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import os
import re
from setuptools import setup, find_packages
import sys
if sys.version_info < (3,11) :
print("""
CanSRMaPP requires Python 3.11
Isntall Python 3.11 (and set up your environment such that
/usr/bin/env python points to that version)
before proceeding.
""")
exit(1)
with open(os.path.join('cansrmapp', '__init__.py')) as ver_file:
for line in ver_file:
line = line.rstrip()
if line.startswith('__version__'):
version = re.sub("'", "", line[line.index("'"):])
elif line.startswith('__description__'):
desc = re.sub("'", "", line[line.index("'"):])
elif line.startswith('__repo_url__'):
repo_url = re.sub("'", "", line[line.index("'"):])
elif line.startswith('__author__'):
author = re.sub("'", "", line[line.index("'"):])
elif line.startswith('__email__'):
email = re.sub("'", "", line[line.index("'"):])
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['torch>=2.5.0,<2.7.0',
'torchvision>=0.20.0',
'matplotlib>=3.9.2,<4.0.0',
'numpy>=1.26.4,<2.0.0',
'pandas>=2.2.2,<2.3.0',
'tables>=3.8.0,<4.0.0',
'scikit-image>=0.24.0,<1.0.0',
'scikit-learn>=1.5.2,<2.0.0',
'scipy>=1.13.1,<2.0.0']
setup_requirements = ['wheel']
setup(
author=author,
author_email=email,
python_requires='>=3.11.0',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.11'
],
description=desc,
#requirements=requirements,
install_requires=requirements,
license="BSD license",
long_description=readme + '\n\n' + history,
long_description_content_type='text/x-rst',
package_data={'':['bioinfo_redistributed/*.*']},
include_package_data=True,
keywords='cansrmapp',
name='cansrmapp',
packages=find_packages(include=['cansrmapp','cansrmapp.bioinfo_redistributed']),
package_dir={'cansrmapp': 'cansrmapp'},
scripts=[],
setup_requires=setup_requirements,
url=repo_url,
version=version,
zip_safe=False)