forked from scikit-hep/scikit-hep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·94 lines (84 loc) · 2.82 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
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/env python
# Licensed under a 3-clause BSD style license, see LICENSE.
import sys
import os
# try to use setuptools if installed
from setuptools import setup, find_packages
from setuputils import read, find_version
# Check the Python version
if sys.version_info < (2, 7):
sys.exit('scikit-hep only supports Python 2.7 and above!')
# General information on the project
PROJECT_NAME = 'scikit-hep'
AUTHOR = 'the scikit-hep developers'
AUTHOR_EMAIL = '[email protected]'
DESCRIPTION = 'Toolset of interfaces and tools for Particle Physics.'
URL = 'https://github.com/scikit-hep/scikit-hep/'
LICENSE = 'new BSD'
VERSION = find_version('skhep/__init__.py')
# Specification of minimal versions of required dependencies
PYTHON_REQUIRES = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4'
PYPDT_MIN_VERSION = '0.7.4'
NUMPY_MIN_VERSION = '1.11.0'
# Prevent setup from trying to create hard links
# which are not allowed on AFS between directories.
# This is a hack to force copying.
try:
del os.link
except AttributeError:
pass
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
# setup.py can be called from outside the scikit-hep directory
os.chdir(LOCAL_PATH)
sys.path.insert(0, LOCAL_PATH)
INSTALL_REQUIRES = [
'PyPDT>={0}'.format(PYPDT_MIN_VERSION),
'numpy>={0};python_version>="2.7"'.format(NUMPY_MIN_VERSION),
'pandas<0.21;python_version=="3.4.*"',
'pandas;python_version>="2.7"',
'matplotlib>2.0.0;python_version>="2.7"',
]
TESTS_REQUIRE = [
'pytest>3.0;python_version>="2.7"'
]
SETUP_REQUIRES = [
'pytest-runner'
]
setup(
name=PROJECT_NAME,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
version=VERSION,
description=DESCRIPTION,
long_description=read('README.rst'),
url=URL,
license=LICENSE,
packages=find_packages(),
package_data={'skhep': ['data/*.*']},
py_modules=['setuputils'],
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
setup_requires=SETUP_REQUIRES,
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Topic :: Utilities',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'License :: OSI Approved',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: C++',
'Programming Language :: Cython',
'Development Status :: 4 - Beta',
]
)