-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
65 lines (54 loc) · 1.59 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
#!/usr/bin/env python
import glob
import sys
from setuptools import setup, find_packages
# Determine shared library suffix
if sys.platform == 'darwin':
suffix = 'dylib'
else:
suffix = 'so'
# Get version information from __init__.py. This is ugly, but more
# reliable than using an import.
with open('adder/__init__.py', 'r') as f:
version = f.readlines()[-1].split()[-1].strip("'")
kwargs = {
'name': 'ADDER',
'version': version,
'packages': find_packages(exclude=['tests*']),
'scripts': glob.glob('scripts/adder_*'),
# Metadata
'author': 'Adam Nelson',
'author_email': 'agnelson@anl.gov',
'description': 'ADDER',
'url': 'https://svn.inside.anl.gov/repos/adder/',
'classifiers': [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Topic :: Scientific/Engineering'
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
],
# Required dependencies
'install_requires': [
'numpy', 'h5py', "configobj", "scipy", "pytest"
],
# Optional dependencies
'extras_require': {
'test': ['pytest-cov', 'matplotlib'],
'mcnp': ['mcnptools']
},
# Data files and libraries
'package_data': {
'adder': ['mass16.txt']
},
# Set the main executable as a script
'entry_points': {
'console_scripts': [
'adder = adder.__main__:main'
]
}
}
setup(**kwargs)