Skip to content

Commit b710204

Browse files
committed
Switch from Poetry to PDM
I prefer PDM and intend to use it for all my projects.
1 parent f16f4bb commit b710204

File tree

4 files changed

+23
-28
lines changed

4 files changed

+23
-28
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
python-version: 3.13
1515

1616
- run: |
17-
pip install poetry
18-
poetry build
17+
pip install pdm
18+
pdm build
1919
2020
- uses: actions/upload-artifact@v3
2121
with:

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ docs/reference/source/
1212
.coverage
1313
.pytest_cache/
1414
dist/
15-
poetry.lock
15+
pdm.lock

pyproject.toml

+18-23
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
[tool.poetry]
1+
[project]
22
name = "quart-schema"
33
version = "0.20.0"
44
description = "A Quart extension to provide schema validation"
5-
authors = ["pgjones <[email protected]>"]
5+
authors = [
6+
{name = "pgjones", email = "[email protected]"},
7+
]
68
classifiers = [
79
"Development Status :: 3 - Alpha",
810
"Environment :: Web Environment",
@@ -20,9 +22,20 @@ classifiers = [
2022
"Topic :: Software Development :: Libraries :: Python Modules",
2123
]
2224
include = ["src/quart_schema/py.typed"]
23-
license = "MIT"
25+
license = {text = "MIT"}
2426
readme = "README.rst"
2527
repository = "https://gitlab.com/pgjones/quart-schema/"
28+
dependencies = [
29+
"pyhumps >= 1.6.1",
30+
"quart >= 0.19.0",
31+
"typing_extensions; python_version < '3.11'",
32+
]
33+
requires-python = ">=3.9"
34+
35+
[project.optional-dependencies]
36+
docs = ["pydata_sphinx_theme", "sphinx-tabs >= 3.4.4"]
37+
msgspec = ["msgspec >= 0.18"]
38+
pydantic = ["pydantic >= 2"]
2639

2740
[tool.black]
2841
line-length = 100
@@ -57,30 +70,12 @@ warn_return_any = false
5770
warn_unused_configs = true
5871
warn_unused_ignores = true
5972

60-
[tool.poetry.dependencies]
61-
msgspec = { version = ">=0.18", optional = true }
62-
pydata_sphinx_theme = { version = "*", optional = true }
63-
pyhumps = ">=1.6.1"
64-
python = ">=3.9"
65-
pydantic = { version = ">=2", optional = true }
66-
quart = ">=0.19.0"
67-
sphinx-tabs = { version = ">=3.4.4", optional = true }
68-
typing_extensions = { version = "*", python = "<3.11" }
69-
70-
[tool.poetry.dev-dependencies]
71-
tox = "*"
72-
73-
[tool.poetry.extras]
74-
docs = ["pydata_sphinx_theme", "sphinx-tabs"]
75-
msgspec = ["msgspec"]
76-
pydantic = ["pydantic"]
77-
7873
[tool.pytest.ini_options]
7974
addopts = "--no-cov-on-fail --showlocals --strict-markers"
8075
asyncio_default_fixture_loop_scope = "session"
8176
asyncio_mode = "auto"
8277
testpaths = ["tests"]
8378

8479
[build-system]
85-
requires = ["poetry_core>=1.0.0"]
86-
build-backend = "poetry.core.masonry.api"
80+
requires = ["pdm-backend"]
81+
build-backend = "pdm.backend"

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ commands =
5454
[testenv:package]
5555
basepython = python3.13
5656
deps =
57-
poetry
57+
pdm
5858
twine
5959
commands =
60-
poetry build
60+
pdm build
6161
twine check dist/*

0 commit comments

Comments
 (0)