-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
212 lines (187 loc) · 4.46 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
# For the standard reference on Python packaging, including using
# ``pyproject.toml`` for build definition and configuration see:
#
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
#
name = "continuedfractions"
description = "Object-oriented continued fractions with Python."
authors = [
{name = "S. R. Murthy", email = "[email protected]"},
]
maintainers = [
{name = "S. R. Murthy", email = "[email protected]"}
]
dynamic = ["version"]
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = [
]
readme = "README.md"
keywords = [
"computational number theory",
"coprime integers",
"continued fractions",
"farey sequences",
"irrational numbers",
"mediants",
"number theory",
"rational approximation",
"rational numbers",
"real numbers",
]
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
[project.optional-dependencies]
user = [
"jupyter",
]
[project.scripts]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.urls]
Homepage = "https://github.com/sr-murthy/continuedfractions"
Documentation = "https://continuedfractions.readthedocs.io"
Repository = "https://github.com/sr-murthy/continuedfractions"
# For working with PDM, including configuration and usage see:
#
# https://pdm.fming.dev/latest/
# https://pdm.fming.dev/latest/reference/pep621/
# https://pdm.fming.dev/latest/reference/cli/
#
[tool.pdm]
distribution = true
[tool.pdm.build]
package-dir = "src"
includes = [
"src/continuedfractions",
]
# File patterns to exclude, the paths are relative to the project root.
excludes = [
"docs",
"build",
"dist",
"tests",
".pytest_cache",
"*.pyc",
"*.env",
"*__pycache__*",
]
source-includes = [
"LICENSE",
"README.md",
]
editable-backend = "path"
[tool.pdm.dev-dependencies]
build = [
"pip>=23.1.2",
]
dev = [
"ipython",
"ipdb",
"virtualenv",
]
docs = [
"myst-parser",
"pydata-sphinx-theme",
"Sphinx",
"sphinx-autobuild",
"sphinx-copybutton",
"pylint>=2.17.5",
"nb2plots>=0.7.1",
"sphinx-gallery>=0.14.0",
"jupyter-sphinx>=0.4.0",
"numpydoc>=1.5.0",
"sphinx-design>=0.5.0",
]
lint = [
"ruff",
]
test = [
"coverage[toml]",
"pytest",
"pytest-cov",
"pytest-xdist",
"sympy",
]
deploy = [
"twine>=4.0.2",
]
[tool.pdm.scripts]
lint = {shell = "make lint", help = "Lint source with Ruff"}
doctests = {shell = "make doctests", help = "Run doctests"}
unittests = {shell = "make unittests", help = "Run unit tests & measure coverage"}
[tool.pdm.version]
source = "file"
path = "src/continuedfractions/version.py"
# For ``pytest`` configuration, including TOML-specific configuration see:
#
# https://docs.pytest.org/en/7.3.x/reference/customize.html#configuration
# https://docs.pytest.org/en/7.3.x/reference/customize.html#pyproject-toml
#
[tool.pytest.ini_options]
pythonpath = "src"
addopts = """\
--cache-clear
--code-highlight=yes \
--color=yes \
--cov=src \
--cov-config=pyproject.toml \
--cov-report=xml \
--cov-report=html \
--dist worksteal \
--numprocesses=auto \
-ra \
--tb=native \
--verbosity=3\
"""
filterwarnings = [
"ignore::DeprecationWarning"
]
python_files = ["test_*.py",]
python_classes = ["Test", "Acceptance",]
python_functions = ["test"]
testpaths = [
"tests/",
]
markers = [
# Test tags/labels/markers - not using any currently
]
# For ``coverage`` configuration see the reference from version ``7.4.1``:
#
# https://coverage.readthedocs.io/en/7.4.1/config.html
#
[tool.coverage.run]
branch = true
omit = [
"./build",
"./dist",
"./docs",
"*/tests*",
".pytest_cache",
"*.pyc",
"*.env",
"*__pycache__*",
"version.py"
]
source = ["src"]
[tool.coverage.report]
precision = 3
show_missing = true
skip_covered = true
skip_empty = true
sort = "Name"