forked from poliastro/poliastro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
186 lines (170 loc) · 4.91 KB
/
pyproject.toml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[build-system]
requires = [
"flit_core >=3.4,<4",
"wheel",
"oldest-supported-numpy",
]
build-backend = "flit_core.buildapi"
[project]
name = "hapsira"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [
{name = "Sebastian M. Ernst", email = "ernst@pleiszenburg.de"}
]
maintainers = [
{name = "Sebastian M. Ernst", email = "ernst@pleiszenburg.de"}
]
keywords = [
"aero",
"aerospace",
"engineering",
"astrodynamics",
"orbits",
"kepler",
"orbital mechanics"
]
classifiers = [
"License :: OSI Approved :: MIT License",
"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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"astropy", # >=5.0,<6",
"astroquery", # >=0.3.9",
"jplephem",
"matplotlib<3.8", # >=2.0,!=3.0.1,<3.8", # https://github.com/librosa/librosa/issues/1763
"numba", # >=0.46 ; python_version<'3.9'",
# "numba >=0.53.0 ; python_version>='3.9'",
"numpy",
"pandas",
"plotly", # >=4.0,<6",
"pyerfa",
"scipy", # >=1.4.0",
]
dynamic = ["version", "description"]
[project.urls]
Homepage = "https://hapsira.readthedocs.io"
Documentation = "https://hapsira.readthedocs.io"
Source = "https://github.com/pleiszenburg/hapsira"
Tracker = "https://github.com/pleiszenburg/hapsira/issues"
Changelog = "https://hapsira.readthedocs.io/en/stable/changelog.html"
[project.optional-dependencies]
jupyter = ["notebook", "ipywidgets>=7.6"]
cesium = ["czml3 ~=0.5.3"]
dev = [
"flit",
"wheel",
]
doc = [
"httpx",
"ipython", # >=5.0",
"ipykernel", # https://github.com/pandas-dev/pandas/issues/18041#issuecomment-340701027
"ipywidgets",# >=7.6",
"jupyter-client",
"jupytext",
"myst-parser", # >=0.13.1",
"nbsphinx", # >=0.8.6",
"nbconvert", # >=5.5",
"sgp4",
"sphinx", # !=3.5,!=4.0,<5.1", # https://github.com/readthedocs/sphinx-hoverxref/issues/119
"sphinx-autoapi>=3",
"sphinx-gallery<=0.7.0", # Just to avoid the jupytext warning
"sphinx_rtd_theme", # ~=1.0.0",
"sphinx-hoverxref", # ==0.7b1",
"sphinx-notfound-page",
"sphinx-copybutton", # >0.2.9",
"sphinx-github-role", # ~=0.1.0",
]
test = [
"coverage",
"hypothesis",
"import-linter[toml]",
"mypy", # >=0.740",
"pre-commit",
"pytest", # >=3.2",
"pytest-cov", # <2.6.0", # https://github.com/pytest-dev/pytest-cov/issues/222
"pytest-doctestplus", # >=0.8", # https://github.com/astropy/pytest-doctestplus/issues/118
"pytest-mpl",
"pytest-mypy",
"pytest-remotedata",
"pytest-xdist[psutil]",
"tox",
]
[tool.flit.sdist]
include = [
"src/hapsira/atmosphere/data/coesa62.dat",
"src/hapsira/atmosphere/data/coesa76.dat",
"src/hapsira/atmosphere/data/coesa76_p.dat",
"src/hapsira/atmosphere/data/coesa76_rho.dat",
"setup.cfg"
]
exclude = [
"docs/"
]
[tool.ruff]
select = [
"E", # pycodestyle, see https://github.com/charliermarsh/ruff#pycodestyle-e-w
# "D", # pydocstyle, see https://github.com/charliermarsh/ruff#pydocstyle-d
"F", # pyflakes, see https://github.com/charliermarsh/ruff#pyflakes-f
"I" # isort, see https://github.com/charliermarsh/ruff#isort-i
]
ignore = [
"E501", # Line too long. Ignoring this so "black" manages line length.
]
exclude = [
".git",
".tox",
".venv",
"build",
"dist",
]
[tool.ruff.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["hapsira"]
[tool.ruff.mccabe]
max-complexity = 18
[tool.mypy]
check_untyped_defs = true
strict_optional = false
ignore_missing_imports = true
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
omit = ["contrib/*"]
show_missing = true
[tool.importlinter]
# Include Astropy to properly analyze external submodules,
# see https://github.com/seddonym/import-linter/issues/111
root_packages = ["hapsira", "astropy"]
include_external_packages = true
[[tool.importlinter.contracts]]
name = "hapsira.core does not import astropy.units"
type = "forbidden"
source_modules = ["hapsira.core"]
forbidden_modules = ["astropy.units"]
[tool.pytest.ini_options]
norecursedirs = [".git", ".tox", "dist", "build", ".venv"]
testpaths = ["tests"]
python_files ="test_*.py"
doctest_plus = false
addopts = ["--strict-markers"]
markers = ["slow", "remote_data", "filterwarnings", "mpl_image_compare"]