forked from skyfielders/python-skyfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (57 loc) · 2.1 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
54
55
56
57
58
59
60
61
62
import os
if 'SKYFIELD_USE_SETUPTOOLS' in os.environ:
import setuptools
print('Using setuptools version', setuptools.__version__)
from distutils.core import setup
from distutils.command.sdist import sdist
import skyfield # safe, because __init__.py contains no import statements
class my_sdist(sdist):
def make_distribution(self):
# See https://github.com/skyfielders/python-skyfield/issues/378
for path in self.filelist.files:
if os.path.isfile(path): # so we don't "chmod a-x" any directories
os.chmod(path, 0o644)
sdist.make_distribution(self)
setup(
cmdclass={'sdist': my_sdist},
name='skyfield',
version=skyfield.__version__,
description=skyfield.__doc__.split('\n', 1)[0],
long_description=open('README.rst', 'rb').read().decode('utf-8'),
license='MIT',
author='Brandon Rhodes',
author_email='[email protected]',
url='https://github.com/brandon-rhodes/python-skyfield/',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Astronomy',
],
packages=[
'skyfield',
'skyfield.data',
'skyfield.tests',
],
package_data = {
'skyfield.data': ['*.gz', '*.npy', '*.npz'],
'skyfield.tests': ['data/*'],
},
install_requires=[
'certifi>=2017.4.17', # version constraint copied from Requests
'jplephem>=2.13',
'numpy',
'sgp4>=2.2',
],
)