From 5921acca2d02a0cb7740e6d000e989dc866f89c2 Mon Sep 17 00:00:00 2001 From: stringertheory Date: Thu, 20 Aug 2026 20:39:58 -0500 Subject: [PATCH] build: migrate project metadata to PEP 621 [project] Move name / version / description / authors / readme / requires-python and the runtime dependencies from [tool.poetry] to the standard [project] table (URLs to [project.urls]); keep [tool.poetry] only for packages and the dev/docs dependency groups. Bump the build backend to poetry-core>=2.0, which is required for PEP 621 support. Clears the `poetry` deprecation warnings on every command. Built wheel metadata (name, version, requires-python, dependencies, project URLs) is unchanged from 0.2.0. --- poetry.lock | 2 +- pyproject.toml | 26 ++++++++++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index 6467f13..4bf0946 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2533,4 +2533,4 @@ test = ["pytest", "ruff"] [metadata] lock-version = "2.1" python-versions = ">=3.10,<4.0" -content-hash = "d441a2453f482362be2ec06340a57fbbbe686b9e76a9fae4332a5aa4f1ae0db8" +content-hash = "d1c86f637c2962cf28aa5d5c788d7a349956605226dcb166737267920eca332f" diff --git a/pyproject.toml b/pyproject.toml index e52f6e7..d1980f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,20 +1,26 @@ -[tool.poetry] +[project] name = "clean_links" version = "0.2.0" description = "Decide whether two links point at the same resource" -authors = ["Mike Stringer "] -repository = "https://github.com/stringertheory/clean-links" -documentation = "https://stringertheory.github.io/clean-links/" +authors = [ + { name = "Mike Stringer", email = "mike.stringer.internet@gmail.com" }, +] readme = "README.md" +requires-python = ">=3.10,<4.0" +dependencies = [ + "w3lib>=2.4.1,<3.0.0", + "httpx>=0.28.1,<0.29.0", +] + +[project.urls] +Repository = "https://github.com/stringertheory/clean-links" +Documentation = "https://stringertheory.github.io/clean-links/" + +[tool.poetry] packages = [ {include = "clean_links"} ] -[tool.poetry.dependencies] -python = ">=3.10,<4.0" -w3lib = "^2.4.1" -httpx = "^0.28.1" - [tool.poetry.group.dev.dependencies] pytest = "^8.3" pytest-cov = "^7.0" @@ -53,7 +59,7 @@ filename = "clean_links/__init__.py" filename = "pyproject.toml" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=2.0"] build-backend = "poetry.core.masonry.api" [tool.mypy]