-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
121 lines (108 loc) · 3.56 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 = "sorcha"
license = {file = "LICENSE.txt"}
readme = "README.md"
authors = [
{ name = "Meg Schwamb", email = "[email protected]" }
]
description = "The survey simulator post processing code for the LSST"
requires-python = ">=3.9"
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = ["version"]
dependencies = [
"numpy",
"pandas>=2.0",
"astropy",
"matplotlib",
"sbpy",
"tables",
"spiceypy",
"healpy",
"assist",
"rebound",
"pooch",
"tqdm",
"numba",
"importlib_resources",
"scipy" # Needed for linear algebra in numba, do not remove!
]
[project.scripts]
sorcha = "sorcha_cmdline.main:main"
sorcha-run = "sorcha_cmdline.run:main"
sorcha-init = "sorcha_cmdline.init:main"
sorcha-demo = "sorcha_cmdline.demo:main"
sorcha-outputs = "sorcha_cmdline.outputs:main"
sorcha-bootstrap = "sorcha_cmdline.bootstrap:main"
[project.urls]
"Documentation" = "https://sorcha.readthedocs.io/en/latest/"
"Source" = "https://github.com/dirac-institute/sorcha"
# On a mac, install optional dependencies with `pip install '.[dev]'` (include the single quotes)
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov", # Used to report total code coverage
"pre-commit", # Used to run checks before finalizing a git commit
"sphinx", # Used to automatically generate documentation
"sphinx-rtd-theme", # Used to render documentation
"sphinx-exec-directive", # running sphinx python commands in documentation
"sphinx-autoapi", # Used to automatically generate api documentation
"black", # Used for static linting of files
# if you add dependencies here while experimenting in a notebook and you
# want that notebook to render in your documentation, please add the
# dependencies to ./docs/requirements.txt as well.
"nbconvert", # Needed for pre-commit check to clear output from Python notebooks
"nbsphinx", # Used to integrate Python notebooks into Sphinx documentation
"ipython", # Also used in building notebooks into Sphinx
"ipykernel",
"matplotlib", # Used in sample notebook intro_notebook.ipynb
"numpy", # Used in sample notebook intro_notebook.ipynb
]
test = [
"pytest",
"pytest-cov",
"black",
]
docs = [
"sphinx", # Used to automatically generate documentation
"sphinx-rtd-theme", # Used to render documentation
"sphinx-autoapi", # Used to automatically generate api documentation
"sphinx-exec-directive", # running sphinx python commands in documentation
"nbconvert",
"nbsphinx",
"ipython",
"ipykernel",
]
benchmark = [
"lf-metric-emitter", # Used to send metrics to t
"memory-profiler",
]
[build-system]
requires = [
"setuptools>=62", # Used to build and package the Python project
"setuptools_scm>=7.0", # Gets release version from git. Makes it available programmatically
]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-dir]
sorcha = "src/sorcha"
sorcha_cmdline = "src/sorcha_cmdline"
[tool.setuptools]
zip-safe = false
[tool.setuptools_scm]
write_to = "src/sorcha/_version.py"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.black]
line-length = 110