-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (46 loc) · 1.86 KB
/
setup.py
File metadata and controls
52 lines (46 loc) · 1.86 KB
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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
from src.pyqsofit.version import __version__
# Prepare and send a new release to PyPI
#if "release" in sys.argv[-1]:
# os.system("python setup.py sdist")
# os.system("python setup.py bdist_wheel")
# os.system("twine upload dist/*")
# os.system("rm -rf dist/pyqsofit*")
# sys.exit()
# Load the __version__ variable without importing the package already
exec(open('src/pyqsofit/version.py').read())
with open("README.md", "r") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(name='PyQSOFit',
version=__version__,
description="A code to fit the spectrum of quasar.",
long_description=long_description,
author='Hengxiao Guo',
author_email='hengxiaoguo@gmail.com',
url='https://github.com/legolason/PyQSOFit',
license='GNU General Public License v3.0',
package_dir={'pyqsofit': 'src/pyqsofit'},
package_data={'pyqsofit': ['fe_uv.txt', 'fe_optical.txt',
'bc03/*.spec.gz',
'pca/Yip_pca_templates/*.fits',
'pca/prior/*.csv',
'indo/*.fits',
'sfddata/*.fits']
},
#data_files=[('bc03',['bc03/*.spec.gz']), ('pca/Yip_pca_templates', ['pca/Yip_pca_templates/*.fits']), ('stddata',['stddata/*.fits'])],
packages=['pyqsofit'],
install_requires=install_requires,
include_package_data=True,
classifiers=[
"License :: OSI Approved :: GNU License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
],
)