-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (26 loc) · 1.07 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
import versioneer
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_required_versions():
# gets required module versions from `min_requirements.txt` file
import os
curdir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(curdir, 'min_requirements.txt')) as minreq:
reqs = minreq.read().splitlines()
# Don't have to account for special case of Euphonic intermediate
# versions here (e.g. euphonic>0.6.0) because that indicates a
# dev/test version in which case apply_requirements.py should be
# used. So just return reqs.
return reqs
setup(name='euphonic_sqw_models',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Phonon inelastic neutron spectra calculation using Horace and Euphonic',
author='Rebecca Fair',
author_email='[email protected]',
url='https://github.com/pace-neutrons/euphonic_sqw_models',
packages=['euphonic_sqw_models'],
install_requires=get_required_versions(),
)