forked from pyxnat/pyxnat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·60 lines (51 loc) · 2.26 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
#!/usr/bin/env python
import setuptools
import os.path as op
def get_version():
try:
import re
import os.path as op
fp = op.join(op.dirname(__file__), 'pyxnat', 'version.py')
s = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format('VERSION'),
open(fp).read())
return s.group(1)
except Exception:
raise RuntimeError("No version found")
this_directory = op.abspath(op.dirname(__file__))
with open(op.join(this_directory, 'README.rst')) as f:
long_description = f.read()
setuptools.setup(name='pyxnat',
version=get_version(),
summary='XNAT in Python',
author='Yannick Schwartz',
author_email='[email protected]',
url='https://github.com/pyxnat/pyxnat',
packages=setuptools.find_packages(exclude=('doc*', 'tests')),
description='XNAT in Python',
long_description=long_description,
long_description_content_type='text/x-rst',
license='BSD',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Utilities',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 2.7',
],
platforms='any',
scripts=['bin/sessionmirror.py'],
install_requires=['lxml>=4.3',
'requests>=2.20',
'pathlib>=1.0',
'six>=1.15',
'future>=0.16'],
package_data={'pyxnat': ['README.rst'], },
)