-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
120 lines (104 loc) · 2.83 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
[project]
name = "adam_core"
dynamic = ["version"]
authors = [
{ name = "Kathleen Kiker", email = "[email protected]" },
{ name = "Alec Koumjian", email = "[email protected]" },
{ name = "Joachim Moeyens", email = "[email protected]" },
{ name = "Spencer Nelson", email = "[email protected]" },
{ name = "Nate Tellis", email = "[email protected]" },
]
description = "Core libraries for the ADAM platform"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Astronomy",
]
license = { file = "LICENSE.md" }
keywords = ["astronomy", "orbital mechanics", "propagation"]
dependencies = [
"astropy",
"astroquery",
"healpy",
"jax",
"jaxlib",
"numpy>=2.0.0",
"pyarrow>=13.0.0",
"pandas",
"ray",
"requests",
"scipy",
"spiceypy",
"quivr==0.7.4a2",
"mpc-obscodes",
"naif-de440",
"naif-leapseconds",
"naif-eop-high-prec",
"naif-eop-predict",
"naif-eop-historical",
"naif-earth-itrf93",
"timezonefinder",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["src/adam_core/"]
[tool.pdm.version]
source = "scm"
write_to = "adam_core/_version.py"
write_template = "__version__ = '{}'"
[tool.pdm.scripts]
check = { composite = ["lint", "typecheck", "test"] }
format = { composite = ["black ./src/adam_core", "isort ./src/adam_core"] }
lint = { composite = [
"ruff check ./src/adam_core",
"black --check ./src/adam_core",
"isort --check-only ./src/adam_core",
] }
fix = "ruff ./src/adam_core --fix"
typecheck = "mypy --strict ./src/adam_core"
test = "pytest --benchmark-disable {args}"
doctest = "pytest --doctest-plus --doctest-only"
benchmark = "pytest --benchmark-only"
coverage = "pytest --cov=adam_core --cov-report=xml"
[project.urls]
"Documentation" = "https://github.com/B612-Asteroid-Institute/adam_core#README.md"
"Issues" = "https://github.com/B612-Asteroid-Institute/adam_core/issues"
"Source" = "https://github.com/B612-Asteroid-Institute/adam_core"
[project.optional-dependencies]
assist = [
"adam-assist>=0.1.2"
]
dev = [
"black",
"ipython>=8.28.0",
"isort",
"mypy",
"pdm",
"pytest-benchmark",
"pytest-cov",
"pytest-doctestplus",
"pytest-mock",
"pytest",
"ruff",
]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 110
target-version = "py311"
lint.ignore = []
exclude = ["build"]
[tool.pytest.ini_options]
# In order for namespace packages to work during tests,
# we need to import from the installed modules instead of local source
addopts = ["--pyargs", "adam_core"]