-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (158 loc) · 4.08 KB
/
pyproject.toml
File metadata and controls
176 lines (158 loc) · 4.08 KB
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
# This section describes the requirements of the build/installation
# process itself. Being able to do this was the original reason to
# introduce pyproject.toml
[build-system]
requires = ["setuptools >=80.9", "setuptools_scm >=9.2"]
build-backend = "setuptools.build_meta"
# This section provides general project metadata that is used across
# a variety of build tools. Notably, the version specified here is the
# single source of truth for rubix's version
[project]
name = "astro-rubix"
description = "A toolkit for simulating and analyzing integral field spectroscopic data cubes of astronomical sources."
readme = "README.md"
authors = [{ name = "AstroAI-Lab", email = "astroai@iwr.uni-heidelberg.de" }, { name = "Tobias Buck", email = "tobias.buck@iwr.uni-heidelberg.de" },
{ name = "Ufuk Cakir", email = "ufukcakir@robots.ox.ac.uk" }, { name = "Anna Lena Schaible", email = "annalena.schaible@iwr.uni-heidelberg.de"}]
maintainers = [{ name = "AstroAI-Lab", email = "astroai@iwr.uni-heidelberg.de" }]
dynamic = ["version"]
requires-python = ">=3.11"
license = { text = "MIT" }
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
# Project keywords
keywords =[
"galaxy",
"modelling",
"smoothed particle hydrodynamics",
"particles",
"nbody",
"galaxy formation",
"parametric",
"theory",
"sph",
"cosmology",
"galaxy evolution",
"survey",
"telescope",
"stellar population",
"synthesis",
"IFU",
"integral field unit",
"astronomy",
"astrophysics",
"simulation",
"JAX",
"differentiable programming",
"automatic differentiation",
"machine learning",
"GPU",
]
urls = { Homepage = "https://astro-rubix.web.app", Repository = "https://github.com/AstroAI-Lab/rubix", Issues = "https://github.com/AstroAI-Lab/rubix/issues" }
dependencies = [
"jax[cpu]>0.5.1",
"requests",
"h5py",
"astropy",
"scipy",
"numpy",
"matplotlib",
"pyaml",
"jaxtyping",
"equinox",
"interpax",
"astroquery",
"beartype",
"mpdaf",
"ipywidgets",
"jdaviz",
"pynbody",
"optax",
"opt-einsum >=3.3.0",
]
[project.optional-dependencies]
# Development
dev = [
"black",
"pre-commit",
"nbstripout",
]
# Testing
tests = [
"pytest",
"pytest-cov",
"pytest-mock",
"requests-mock",
"nbval",
"pre-commit",
]
docs = [
"ipykernel",
"nbsphinx",
"nbsphinx-link",
"sphinx",
"sphinx_mdinclude",
"sphinx_rtd_theme",
]
cuda = [
"jax[cuda]>0.5.1",
]
# The following section contains setuptools-specific configuration
# options. For a full reference of available options, check the overview
# at https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.setuptools]
packages = ["rubix"]
# Configure setuptools_scm, which extracts the version number from
# the version control system. For more information see its documentation:
# https://github.com/pypa/setuptools_scm
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "node-and-date"
write_to = "rubix/_version.py"
# The following is the configuration for the pytest test suite
[tool.pytest.ini_options]
testpaths = ["tests", "notebooks"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
fail_under = 80
[tool.ruff]
ignore = ["F722"]
[tool.isort]
profile = "black"
combine_as_imports = true
known_third_party = [
"pytest",
"requests",
"requests-mock",
"h5py",
"astropy",
"scipy",
"numpy",
"matplotlib",
"pyaml",
"jaxtyping",
"equinox",
"jax",
"interpax",
"astroquery",
"beartype",
"mpdaf",
"ipywidgets",
"jdaviz",
"pynbody"
]
known_first_party = [
"rubix",
]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]