forked from pytrip/pytripgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
80 lines (69 loc) · 2.58 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
import os
import setuptools
from pytripgui.version import git_version
def write_version_py(filename=os.path.join('pytripgui', 'VERSION')):
cnt = """%(version)s
"""
GIT_REVISION = git_version()
a = open(filename, 'w')
try:
a.write(cnt % {'version': GIT_REVISION})
finally:
a.close()
write_version_py()
with open('README.rst') as readme_file:
readme = readme_file.read()
# install_requires is list of dependencies needed by pip when running `pip install`
install_requires = [
"matplotlib==3.4.3 ; python_version>='3.7'",
'pytrip98[remote]~=3.7',
'anytree~=2.8',
'Events~=0.4',
"PyQt5<5.10 ; python_version<'3.8'",
"PyQt5>=5.15 ; python_version>='3.8'",
"PyQtChart<5.10 ; python_version<'3.8'",
"PyQtChart>=5.15 ; python_version>='3.8'",
]
setuptools.setup(
name='pytrip98gui',
version=git_version(),
packages=setuptools.find_packages(exclude=["tests", "tests.*"]),
url='https://github.com/pytrip/pytripgui',
license='GPL',
author='Niels Bassler et al.',
author_email='bassler@clin.au.dk',
maintainer='Leszek Grzanka et al.',
maintainer_email='grzanka@agh.edu.pl',
description='PyTRiP GUI',
long_description=readme + '\n',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows :: Windows 10',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
package_data={'pytripgui': ['res/*', 'view/*.ui', 'VERSION']},
install_requires=install_requires,
entry_points={
'console_scripts': [
'pytripgui=pytripgui.main:main',
],
})