debian-skyfield/setup.py

65 lines
2.1 KiB
Python
Raw Permalink Normal View History

import os
2013-01-30 22:23:04 +01:00
from distutils.core import setup
from distutils.command.sdist import sdist
import skyfield # safe, because __init__.py contains no import statements
2013-01-30 22:23:04 +01:00
extras = {
'tests': [
2017-03-15 17:50:50 +01:00
# TODO: add assay
'pytz',
],
}
class my_sdist(sdist):
def make_distribution(self):
# See https://github.com/skyfielders/python-skyfield/issues/378
for path in self.filelist.files:
os.chmod(path, 0o644)
sdist.make_distribution(self)
2013-01-30 22:23:04 +01:00
setup(
cmdclass={'sdist': my_sdist},
2013-01-30 22:23:04 +01:00
name='skyfield',
version=skyfield.__version__,
description=skyfield.__doc__.split('\n', 1)[0],
long_description=open('README.rst', 'rb').read().decode('utf-8'),
2013-01-30 22:23:04 +01:00
license='MIT',
author='Brandon Rhodes',
author_email='brandon@rhodesmill.org',
2013-01-30 22:31:56 +01:00
url='http://github.com/brandon-rhodes/python-skyfield/',
2013-01-30 22:23:04 +01:00
classifiers=[
2018-03-20 02:59:44 +01:00
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
2013-01-30 22:23:04 +01:00
'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',
2018-04-16 00:33:44 +02:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2013-01-30 22:23:04 +01:00
'Topic :: Scientific/Engineering :: Astronomy',
],
packages=[
'skyfield',
'skyfield.data',
'skyfield.tests',
],
package_data = {
'skyfield': ['documentation/*.rst'],
'skyfield.data': ['Leap_Second.dat', 'deltat.data', 'deltat.preds',
'*.npy', '*.npz'],
'skyfield.tests': ['data/*'],
},
install_requires=[
'certifi>=2017.4.17', # version constraint copied from Requests
'jplephem>=2.13',
'numpy',
'sgp4>=2.2',
2017-03-15 17:24:49 +01:00
],
extras_require=extras, # support "pip install skyfield[tests]"
2017-03-15 17:24:49 +01:00
)