-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
29 lines (25 loc) · 984 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup
import os
version = '0.3.0'
with open(os.path.join('xaslib', '_version.py')) as fh:
for line in fh.readlines():
line = line[:-1].strip()
if line.startswith('__version'):
words = line.split('=') + [' ', ' ']
version = words[1].strip().replace("'", '').replace('"', '')
pkg_data = {'xaslib.template': ['template/*', 'templates/doc/*'],
'xaslib.static': ['static/*']}
setup(name='xaslib',
version = version,
author = 'Matthew Newville',
author_email = 'newville@cars.uchicago.edu',
url = 'https://xrayabsorption.org/xaslib',
license = 'Public Domain',
description = 'X-ray Absorption Spectra Data Library',
install_requires=('sqlalchemy', 'numpy', 'scipy', 'xraydb', 'flask', 'plotly'),
package_dir = {'xaslib': 'xaslib'},
zip_safe=False,
package_data = pkg_data,
packages = ['xaslib'],
)