forked from poliastro/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
99 lines (90 loc) · 2.83 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test
# https://packaging.python.org/guides/single-sourcing-package-version/
version = {}
with open(os.path.join("src", "poliastro", "__init__.py")) as fp:
exec(fp.read(), version)
# https://docs.pytest.org/en/latest/goodpractices.html#manual-integration
class PyTest(test):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
test.initialize_options(self)
self.pytest_args = ''
def run_tests(self):
import shlex
import pytest
sys.exit(pytest.main(shlex.split(self.pytest_args)))
# http://blog.ionelmc.ro/2014/05/25/python-packaging/
setup(
name="poliastro",
version=version['__version__'],
description="Python package for Orbital Mechanics",
author="Juan Luis Cano",
author_email="hello@juanlu.space",
url="http://poliastro.github.io/",
download_url="https://github.com/poliastro/poliastro",
license="MIT",
keywords=[
"aero", "aerospace", "engineering",
"astrodynamics", "orbits", "kepler", "orbital mechanics"
],
python_requires=">=3.5",
install_requires=[
"numpy",
"astropy>=2.0.1,<3.*",
"matplotlib>=2.0",
"jplephem",
"scipy",
"beautifulsoup4",
"requests",
"pandas",
"plotly",
],
tests_require=[
"coverage",
"pytest-cov",
],
extras_require={
':implementation_name=="cpython"': "numba>=0.25",
'dev': [
"pycodestyle",
"sphinx<1.6",
"sphinx_rtd_theme",
"nbsphinx",
"ipython>=5.0",
"jupyter-client",
"ipykernel",
"ipywidgets"
]
},
packages=find_packages('src'),
package_dir={'': 'src'},
entry_points={
'console_scripts': [
'poliastro = poliastro.cli:main'
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Astronomy",
],
long_description=open('README.rst', encoding='utf-8').read(),
package_data={"poliastro": ['tests/*.py']},
include_package_data=True,
zip_safe=False,
cmdclass={'test': PyTest},
)