-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
executable file
·45 lines (44 loc) · 1.57 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
#!/usr/bin/env python
from glob import glob
from numpy import get_include as np_include
from setuptools import setup, Extension
setup(
name='pysynphot',
use_scm_version={'write_to': 'pysynphot/version.py'},
author=('Vicki Laidler, Pey Lian Lim, Matt Davis, Robert Jedrzejewski, '
'Ivo Busko'),
author_email='[email protected]',
description='Python Synthetic Photometry Utilities',
url='https://github.com/spacetelescope/pysynphot',
license='BSD',
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
setup_requires=['setuptools_scm'],
python_requires='>=3.6,<3.12',
install_requires=[
'astropy',
'numpy<2',
'beautifulsoup4',
'six'
],
tests_require=['pytest', 'pytest-remotedata'],
packages=['pysynphot',
'pysynphot.test'],
package_dir={'pysynphot': 'pysynphot'},
package_data={'pysynphot': ['data/generic/*', 'data/wavecat/*'],
'pysynphot.test': ['data/*.*', 'data/cdbs/extinction/*',
'data/cdbs/jref/*', 'data/cdbs/mtab/*']},
ext_modules=[
Extension('pysynphot.pysynphot_utils',
glob('pysynphot/src/*.c'),
include_dirs=[np_include()],
optional=True)
],
zip_safe=False
)