-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
153 lines (136 loc) · 4.16 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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "fwl-proteus"
version = "24.10.30"
description = "Coupled atmosphere-interior framework to simulate the temporal evolution of rocky planets"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{name = "Tim Lichtenberg", email = "[email protected]"},
{name = "Harrison Nicholls, email = [email protected]"},
{name = "Laurent Soucasse", email = "[email protected]"},
{name = "Stef Smeets", email = "[email protected]"},
{name = "Dan J. Bower", email = "[email protected]"},
{name = "Mariana V. Sastre", email = "[email protected]"},
{name = "Emma Postolec", email = "[email protected]"},
{name = "Mark Hammond", email = "[email protected]"},
{name = "Patrick Sanan", email = "[email protected]"},
{name = "Raymond Pierrehumbert", email = "[email protected]"},
{name = "Ryan Boukrouche", email = "[email protected]"},
{name = "Shang-Min Tsai", email = "[email protected]"},
{name = "Hamish Innes", email = "[email protected]"},
]
keywords = [
"Astronomy",
"Exoplanets",
"Model-coupling",
]
license = {text = "Apache 2.0 License"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"attrs",
"cattrs",
"fwl-janus>=24.11.05",
"fwl-mors>=24.11.18",
"fwl-calliope>=24.9.10",
"fwl-zephyrus>=24.10.15",
"aragog>=0.1.7a0",
"cmcrameri",
"juliacall",
"matplotlib",
"netCDF4",
"numpy",
"pandas",
"scipy",
]
[project.urls]
homepage = "https://github.com/FormingWorlds/PROTEUS"
issues = "https://github.com/FormingWorlds/PROTEUS/issues"
documentation = "https://fwl-proteus.readthedocs.io"
changelog = "https://github.com/FormingWorlds/PROTEUS/releases"
[project.optional-dependencies]
develop = [
"bump-my-version",
"coverage[toml]",
"pillow",
"pip-tools",
"pytest >= 8.1",
"pre-commit",
"ruff",
]
docs = [
"markdown-include",
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
]
[project.scripts]
proteus = "proteus.cli:cli"
[tool.setuptools]
package-dir = {"proteus" = "src/proteus" }
include-package-data = true
[tool.coverage.run]
branch = true
source = ["proteus"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 96
target-version = "py310"
extend-exclude = ["*ipynb"]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"I", # isort
]
ignore = [
"E501", # Line too long
]
[tool.ruff.lint.isort]
known-first-party=["proteus"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.bumpversion]
# https://callowayproject.github.io/bump-my-version/howtos/calver/
current_version = "24.10.30"
parse = """(?x) # Verbose mode
(?P<release> # The release part
(?:[1-9][0-9])\\. # YY.
(?:1[0-2]|0[1-9])\\. # MM.
(?:3[0-1]|[1-2][0-9]|0[1-9]) # DD
)
(?:\\.(?P<patch>\\d+))? # .patch, optional
"""
serialize = ["{release}.{patch}", "{release}"]
[tool.bumpversion.parts.release]
calver_format = "{YY}.{0M}.{0D}"
[[tool.bumpversion.files]]
filename = "src/proteus/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = "version: {current_version}"
replace = "version: {new_version}"