-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
107 lines (91 loc) · 2.62 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
[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "ptiming_ana"
description = "Periodicity analysis of gamma-ray emission from pulsars"
readme = "README.md"
license = {text = "BSD-3-Clause"}
authors = [
{name = "Álvaro Mas Aguilar", email = "alvmas@ucm.es"},
{name = "Cristian Pozo González", email = "cpozo@iaa.es"},
{name = "Daniel Morcuende", email = "dmorcuende@iaa.es"},
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Astronomy",
"Development Status :: 3 - Alpha",
]
requires-python = ">=3.9"
dependencies = [
"astropy~=5.0",
"lstchain==0.10.6",
"gammapy~=1.1",
"h5py",
"matplotlib~=3.7",
"numba",
"numpy<2.0",
"pandas",
"scipy",
"tables",
"pint-pulsar<=0.9.7",
"more-itertools==10.4.0",
]
# Dynamic versioning through setuptools_scm
dynamic = ["version"]
[project.urls]
repository = "https://github.com/cta-observatory/PulsarTimingAnalysis"
documentation = "https://github.com/cta-observatory/PulsarTimingAnalysis"
# Command-line scripts mapping the name of the tool to the import and function to execute
[project.scripts]
merge_pulsar_files = "ptiming_ana.cphase.merge_pulsar_files:main"
add_DL3_phase_table = "ptiming_ana.cphase.add_DL3_phase_table:main"
add_DL2_phase_table = "ptiming_ana.cphase.add_DL2_phase_table:main"
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["ptiming_ana._dev_version"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
]
doc = [
"sphinx",
"numpydoc",
"pydata-sphinx-theme",
"sphinx_changelog",
"sphinx-automodapi",
"sphinx-gallery",
]
dev = [
"setuptools_scm",
]
# Self-references to simplify all, needs to match project.name defined above
all = [
"ptiming_ana[test,doc,dev]",
]
[tool.setuptools_scm]
write_to = "src/ptiming_ana/_version.py"
[tool.coverage.run]
include = ["src/*"]
relative_files = true
omit = ["src/ptiming_ana/_version.py"]
[tool.ruff]
exclude = ["docs", "dev"]
# Like black
line-length = 88
indent-width = 4
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"