-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
executable file
·75 lines (67 loc) · 2.57 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import six
import os
from setuptools import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
# Fetch requirements, but remove explicit version pins.
# Use pip install -r requirements.txt for repeatable installations
requirements = open('requirements.txt').read().splitlines()
requirements = [x.split('=')[0] for x in requirements]
# configparser is not in the python2 standard library:
if six.PY2:
requirements.append('configparser')
# Avoids "KeyError: 'ROOT'" in TravisCI, see PR #250.
try:
import ROOT
except ImportError:
pass
# Snappy cannot be installed automatically on windows
if os.name == 'nt':
print("You're on windows: we can't install snappy manually. "
"See http://xenon1t.github.io/pax/faq.html#can-i-set-up-pax-on-my-windows-machine")
del requirements[requirements.index('python-snappy>=0.5')]
test_requirements = requirements + ['flake8',
'tox',
'coverage',
'bumpversion']
setup(
name='pax',
version='6.11.2',
description='PAX is the raw data processor for LXe TPCs.',
long_description=readme + '\n\n' + history,
author='Christopher Tunnell and Jelle Aalbers for the XENON1T collaboration',
author_email='[email protected]',
url='https://github.com/XENON1T/pax',
packages=[ 'pax',
'pax.config',
'pax.plugins',
'pax.plugins.io',
'pax.plugins.signal_processing',
'pax.plugins.peak_processing',
'pax.plugins.plotting',
'pax.plugins.posrec',
'pax.plugins.interaction_processing',
'pax.trigger_plugins',
],
package_dir={'pax': 'pax'},
package_data={'pax': ['config/*.ini', 'config/pmt_afterpulses/*.ini', 'data/*.*']},
scripts=['bin/paxer', 'bin/event-builder', 'bin/paxmaker',
'bin/convert_pax_formats', 'bin/delete_decider'],
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='pax',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
test_suite='tests',
tests_require=test_requirements
)