Skip to content

Commit c039e62

Browse files
committed
Require 3.12 in pyproject.toml
2 parents 08eb0fa + 2550f00 commit c039e62

File tree

8 files changed

+59
-56
lines changed

8 files changed

+59
-56
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: CI
44

55
on:
66
push:
7-
branches: [master]
7+
branches: [main]
88
pull_request:
9-
branches: [master]
9+
branches: [main]
1010
schedule:
1111
# * is a special character in YAML so you have to quote this string
1212
# Run at 1:00 every day

.github/workflows/windows-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ name: Windows CI
44

55
on:
66
push:
7-
branches: [master]
7+
branches: [main]
88
pull_request:
9-
branches: [master]
9+
branches: [main]
1010
schedule:
1111
# * is a special character in YAML so you have to quote this string
1212
# Run at 1:00 every day

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"recommendations": [
3-
"ms-python.black-formatter",
43
"charliermarsh.ruff",
54
"ms-python.python"
65
]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"editor.codeActionsOnSave": {
44
"source.fixAll": true
55
},
6-
"editor.defaultFormatter": "ms-python.black-formatter",
6+
"editor.defaultFormatter": "charliermarsh.ruff",
77
"editor.formatOnSave": true
88
}
99
}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ SPHINXOPTS := -W
77

88
.PHONY: lint
99
lint: \
10-
black \
1110
check-manifest \
1211
doc8 \
1312
linkcheck \
1413
mypy \
1514
ruff \
1615
pip-extra-reqs \
1716
pip-missing-reqs \
17+
pyproject-fmt \
1818
pyright \
1919
pyroma \
2020
spelling \
@@ -23,7 +23,7 @@ lint: \
2323

2424
.PHONY: fix-lint
2525
fix-lint: \
26-
fix-black \
26+
fix-pyproject-fmt \
2727
fix-ruff
2828

2929
.PHONY: docs

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ documentation <https://vws-python.readthedocs.io/en/latest>`__.
9696

9797
.. |Build Status| image:: https://github.com/VWS-Python/vws-python/workflows/CI/badge.svg
9898
:target: https://github.com/VWS-Python/vws-python/actions
99-
.. |codecov| image:: https://codecov.io/gh/VWS-Python/vws-python/branch/master/graph/badge.svg
99+
.. |codecov| image:: https://codecov.io/gh/VWS-Python/vws-python/branch/main/graph/badge.svg
100100
:target: https://codecov.io/gh/VWS-Python/vws-python
101101
.. |PyPI| image:: https://badge.fury.io/py/VWS-Python.svg
102102
:target: https://badge.fury.io/py/VWS-Python

lint.mk

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
SHELL := /bin/bash -euxo pipefail
44

5-
.PHONY: black
6-
black:
7-
black --check .
8-
9-
.PHONY: fix-black
10-
fix-black:
11-
black .
12-
135
.PHONY: mypy
146
mypy:
157
mypy .
@@ -25,10 +17,12 @@ doc8:
2517
.PHONY: ruff
2618
ruff:
2719
ruff .
20+
ruff format --check .
2821

2922
.PHONY: fix-ruff
3023
fix-ruff:
3124
ruff --fix .
25+
ruff format .
3226

3327
.PHONY: pip-extra-reqs
3428
pip-extra-reqs:
@@ -58,6 +52,14 @@ vulture:
5852
linkcheck:
5953
$(MAKE) -C docs/ linkcheck SPHINXOPTS=$(SPHINXOPTS)
6054

55+
.PHONY: pyproject-fmt
56+
pyproject-fmt:
57+
pyproject-fmt --keep-full-version --check --indent=4 pyproject.toml
58+
59+
.PHONY: fix-pyproject-fmt
60+
fix-pyproject-fmt:
61+
pyproject-fmt --keep-full-version --indent=4 pyproject.toml
62+
6163
.PHONY: spelling
6264
spelling:
6365
$(MAKE) -C docs/ spelling SPHINXOPTS=$(SPHINXOPTS)

pyproject.toml

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@
8484
# --spelling-private-dict-file option instead of raising a message.
8585
spelling-store-unknown-words = 'no'
8686

87-
[tool.black]
88-
89-
line-length = 79
90-
9187
[tool.coverage.run]
9288

9389
branch = true
@@ -151,19 +147,20 @@ module = [
151147
ignore_missing_imports = true
152148

153149
[build-system]
150+
build-backend = "setuptools.build_meta"
154151
requires = [
155152
"pip",
156153
"setuptools",
157-
"setuptools_scm[toml]>=7.1.0",
154+
"setuptools_scm[toml]>=7.1",
158155
"wheel",
159156
]
160-
build-backend = "setuptools.build_meta"
161157

162158
[tool.distutils.bdist_wheel]
163159
universal = true
164160

165161
[tool.ruff]
166162
select = ["ALL"]
163+
line-length = 79
167164

168165
ignore = [
169166
# We do not annotate the type of 'self'.
@@ -206,63 +203,68 @@ unfixable = ["ERA001"]
206203
]
207204

208205
[project]
206+
name = "vws-python"
207+
description = "Interact with the Vuforia Web Services (VWS) API."
208+
readme = { file = "README.rst", content-type = "text/x-rst"}
209+
keywords = [
210+
"client",
211+
"vuforia",
212+
"vws",
213+
]
214+
license = { file = "LICENSE" }
209215
authors = [ { name = "Adam Dangoor", email = "adamdangoor@gmail.com"} ]
216+
requires-python = ">=3.12"
210217
classifiers = [
211-
"Operating System :: POSIX",
218+
"Development Status :: 5 - Production/Stable",
212219
"Environment :: Web Environment",
213-
"Programming Language :: Python :: 3.12",
214220
"License :: OSI Approved :: MIT License",
215-
"Development Status :: 5 - Production/Stable",
221+
"Operating System :: POSIX",
222+
"Programming Language :: Python :: 3 :: Only",
223+
"Programming Language :: Python :: 3.12",
224+
]
225+
dynamic = [
226+
"version",
216227
]
217-
description = "Interact with the Vuforia Web Services (VWS) API."
218-
dynamic = ["version"]
219-
keywords = ["vuforia", "vws", "client"]
220-
license = { file = "LICENSE" }
221-
name = "vws-python"
222-
readme = { file = "README.rst", content-type = "text/x-rst"}
223-
requires-python = ">=3.12"
224228
dependencies = [
225-
"VWS-Auth-Tools",
226229
"requests",
227230
"urllib3",
231+
"VWS-Auth-Tools",
228232
]
229-
230233
[project.optional-dependencies]
231234
dev = [
232-
"PyYAML==6.0.1",
233-
"Pygments==2.16.1",
234-
"Sphinx-Substitution-Extensions==2022.2.16",
235-
"Sphinx==7.2.6",
236-
"VWS-Python-Mock==2023.5.21",
237-
"VWS-Test-Fixtures==2023.3.5",
238-
"black==23.10.0",
239235
"check-manifest==0.49",
240236
"doc8==1.1.1",
241237
"dodgy==0.2.1",
242238
"freezegun==1.2.2",
243239
"furo==2023.9.10",
244-
"mypy==1.6.1",
245-
"pdm==2.9.3",
240+
"mypy==1.7.0",
241+
"pdm==2.10.3",
246242
"pip_check_reqs==2.5.3",
247-
"pydocstyle==6.3.0 ",
248-
"pyenchant==3.2.2 ",
249-
"pyright==1.1.332",
250-
"pylint==3.0.1 ",
243+
"pydocstyle==6.3",
244+
"pyenchant==3.2.2",
245+
"Pygments==2.17.1",
246+
"pylint==3.0.2",
247+
"pyproject-fmt==1.5.1",
248+
"pyright==1.1.336",
251249
"pyroma==4.2",
252-
"pytest-cov==4.1.0",
253-
"pytest==7.4.2 ",
254-
"ruff==0.1.1",
255-
"sphinx-autodoc-typehints==1.24.0",
256-
"sphinx-prompt==1.8.0",
257-
"sphinxcontrib-spelling==8.0.0",
250+
"pytest==7.4.3",
251+
"pytest-cov==4.1",
252+
"PyYAML==6.0.1",
253+
"ruff==0.1.6",
254+
"Sphinx==7.2.6",
255+
"sphinx-autodoc-typehints==1.25.2",
256+
"sphinx-prompt==1.8",
257+
"Sphinx-Substitution-Extensions==2022.2.16",
258+
"sphinxcontrib-spelling==8",
258259
"sybil==5.0.3",
259260
"types-requests==2.31.0.10",
260261
"vulture==2.10",
262+
"VWS-Python-Mock==2023.5.21",
263+
"VWS-Test-Fixtures==2023.3.5",
261264
]
262-
263265
[project.urls]
264-
Source = "https://github.com/VWS-Python/vws-python"
265266
Documentation = "https://vws-python.readthedocs.io/en/latest/"
267+
Source = "https://github.com/VWS-Python/vws-python"
266268

267269
[tool.setuptools]
268270
zip-safe = false

0 commit comments

Comments
 (0)