forked from poliastro/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (72 loc) · 2.26 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
#!/usr/bin/env python
# coding: utf-8
# http://stackoverflow.com/a/10975371/554319
import os
import io
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):
def run_tests(self):
import pytest
sys.exit(pytest.main([]))
# 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="[email protected]",
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>=1.2,!=2.0.0",
"matplotlib",
"jplephem",
"scipy",
"beautifulsoup4",
"requests",
],
tests_require=[
"coverage",
"pytest-cov",
],
extras_require={
'fast': ["numba>=0.25"],
},
packages=find_packages('src'),
package_dir={'': 'src'},
entry_points={},
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=io.open('README.rst', encoding='utf-8').read(),
package_data={"poliastro": ['tests/*.py']},
include_package_data=True,
zip_safe=False,
cmdclass={'test': PyTest},
)