-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
142 lines (121 loc) · 4.35 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
[project]
name = "nvector"
dynamic = ["version"]
description = "The nvector library is a suite of tools written in Python to solve geographical position calculations forked from nvector."
authors = [
{name = "Kenneth Gade, FFI"},
{name = "Kristian Svartveit, FFI"},
{name = "Brita Hafskjold Gade, FFI"},
{name = "Matt Hogan", email = "[email protected]"}
]
maintainers = [
{name = "Per A. Brodtkorb, FFI"}
]
dependencies = [
"numpy>=1.11.0",
"scipy>=1.3.0",
"karney>=1.0",
]
requires-python = ">=3.9"
readme = "README.rst"
license = {text = "Simplified BSD"}
license_file = "LICENSE.txt"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Environment :: Console",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: GIS"
]
[project.optional-dependencies]
plot =["matplotlib>=3.8.0",
"Cartopy>=0.22.0",]
[project.urls]
repository = "https://github.com/pbrod/nvector/"
documentation = "https://nvector.readthedocs.io/en/latest/"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "file"
path = "src/nvector/__init__.py"
[tool.pdm.scripts]
build-docs-html = "sphinx-build -b html docs docs/_build/html -d docs/_build/doctrees"
build-docs-latex = "sphinx-build -b latex docs docs/_build/latex -d docs/_build/doctrees"
build-docs-pdf = "sphinx-build -b latexpdf docs docs/_build/latex -d docs/_build/doctrees"
lock_win64 = "pdm lock -L pdm_windows.lock --python 3.12 --strategy no_direct_minimal_versions --platform windows -dG all"
lock_linux = "pdm lock -L pdm_linux.lock --python 3.12 --strategy no_direct_minimal_versions --platform linux -dG all"
format = "ruff format ./src/" # format code
check-style = "ruff check ./src/" # check code style
show-next-version = "git-cliff --bumped-version" # calculate and print the next semantic version to stdout:
show-next-changelog = "git-cliff"
append-changelog = "git-cliff --unreleased --prepend CHANGELOG.md" # prepend new entries to CHANGELOG.md without footer part
#[tool.pdm.scripts.check-commits]
#shell = "gitlint --commits $(git describe --tags --abbrev=0)..HEAD lint"
[tool.pdm.dev-dependencies]
build = [
"setuptools>=39.2", # MHogan: Pycharm complains oddly without this on Windows platform
"spyder-kernels", # Mhogan: If you want to use Spyder
"git-cliff>=2.6.1",
"pdm-bump>=0.9.8",
]
# semantic_release.commit-messages git-cliff
# chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
# docs: Documentation only changes
# feat: A new feature
# fix: A bug fix
# perf: A code change that improves performance
# refactor: A code change that neither fixes a bug nor adds a feature
# style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
# test: Adding missing or correcting existing tests
test = [
"nox",
"pytest",
"pytest-cov",
"pytest-pep8",
"hypothesis",
"matplotlib>=3.8.0",
"Cartopy>=0.22.0",
"pytest-ruff>=0.4.1",
"ruff>=0.0.47",
# "gitlint>=0.19",
]
sphinx = [
"sphinx>=1.3.1",
"sphinx_rtd_theme>=0.1.7",
"sphinxcontrib-napoleon",
"sphinxcontrib-bibtex",
"myst_parser",
]
all = ["nvector[build,plot,test,sphinx]"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E4", "E7", "E9", "E501", "F", "B", "Q"] #[, "I"]
# On top of the Google convention, disable `D417`, which requires
# documentation for every function parameter.
ignore = ["D417"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
#docstring-code-format = true
docstring-code-line-length = 100
[tool.pytest.ini_options]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "ELLIPSIS"]
addopts = "-rsxXf --doctest-modules --cov=nvector --cov-report=xml --ruff --ruff-format"
testpaths = [
"src"
]