-
Notifications
You must be signed in to change notification settings - Fork 38
/
setup.py
executable file
·53 lines (46 loc) · 1.56 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
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
ROOT = os.path.join(os.path.dirname(__file__))
VERSION = None
for line in open(os.path.join(ROOT, "periodictable", "__init__.py")):
if "__version__" in line:
VERSION = line.split('"')[1]
if len(sys.argv) == 1:
sys.argv.append('install')
def readtext(path):
with open(os.path.join(ROOT, path)) as fid:
return fid.read()
setup(
name='periodictable',
version=VERSION,
author='Paul Kienzle',
author_email='pkienzle@gmail.com',
license='public domain',
url='https://github.com/pkienzle/periodictable',
description='Extensible periodic table of the elements',
long_description=readtext('README.rst'),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: Public Domain',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
],
packages=find_packages(),
include_package_data=True,
package_data={
# NOTE: be sure to include files in MANIFEST.in as well
'periodictable' :
['activate.dat', 'xsf/*.nff', 'xsf/f0_WaasKirf.dat', 'xsf/read.me'],
},
#data_files = periodictable.data_files(),
install_requires=['pyparsing', 'numpy'],
tests_require=['pytest', 'pytest-cov'],
)
# End of file