forked from exoplanet-dev/jaxoplanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
103 lines (91 loc) · 2.86 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
[tool.poetry]
name = "jaxoplanet"
packages = [{ include = "jaxoplanet", from = "src" }]
version = "0.0.0"
description = "Probabilistic models for exoplanet inference in JAX"
license = "MIT"
authors = ["Dan Foreman-Mackey <dfm@dfm.io>"]
readme = "README.md"
homepage = "https://github.com/exoplanet-dev/jaxoplanet"
repository = "https://github.com/exoplanet-dev/jaxoplanet"
documentation = "https://github.com/exoplanet-dev/jaxoplanet"
keywords = []
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
exclude = ["tests"]
[tool.poetry.dependencies]
python = "^3.9"
jax = ">=0.4,!=0.4.9"
typing-extensions = "*"
# Required for consistent testing, etc.
jaxlib = { version = ">=0.4,!=0.4.9", optional = true }
# Testing
pytest = { version = "*", optional = true }
pytest-xdist = { version = "*", optional = true }
exoplanet-core = { version = "*", optional = true }
batman-package = { version = "^2.4", optional = true }
sympy = { version = "^1.11", optional = true }
# Comparisons
starry = { version = "^1.2.0", optional = true }
tqdm = { version = "*", optional = true } # Required by starry
# Docs
matplotlib = { version = "^3.7.1", optional = true }
arviz = { version = "^0.15.1", optional = true }
corner = { version = "^2.2.2", optional = true }
numpyro = { version = "^0.11.0", optional = true }
numpyro-ext = { version = "^0.0.1", optional = true }
jaxopt = { version = "^0.6", optional = true }
myst-nb = { version = "^0.17", optional = true }
sphinx-book-theme = { version = "^1.0", optional = true }
sphinx-design = { version = "^0.3", optional = true }
[tool.poetry.extras]
test = ["jaxlib", "pytest", "pytest-xdist", "exoplanet-core", "batman-package"]
test-math = ["sympy"]
comparison = ["starry", "tqdm"]
docs = [
"jaxlib",
"matplotlib",
"arviz",
"corner",
"numpyro",
"numpyro-ext",
"jaxopt",
"myst-nb",
"sphinx-book-theme",
"sphinx-design",
]
[tool.poetry.group.dev.dependencies]
nox = "^2022.11.21"
ruff = "^0.0.253"
black = "^23.1.0"
pre-commit = "^3.1.1"
pytest = "^7.2.1"
sympy = "^1.11.1"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poetry-dynamic-versioning.substitution]
folders = [{ path = "src" }]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.black]
target-version = ["py38", "py39"]
line-length = 88
[tool.ruff]
line-length = 89
target-version = "py38"
select = ["F", "I", "E", "W", "YTT", "B", "Q", "PLE", "PLW"]
ignore = [
"E741", # Allow ambiguous variable names (e.g. "l" in starry)
"B023", # Allow using global variables in lambdas
]
exclude = []