From 9faf61eb862ffbf9a7c488477d25a329627fddfc Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Fri, 11 Nov 2022 22:26:30 -0500 Subject: [PATCH] Switch to pdm for building Switch metadata to PEP 621 --- pyproject.toml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 178f825..2b91b51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,31 @@ -[tool.poetry] +[project] name = "jsonref" -version = "1.0.1" description = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python." -authors = ["Chase Sterling "] -license = "MIT" -readme = "README.md" -packages = [ - { include = "jsonref.py" }, - { include = "proxytypes.py" }, +authors = [ + {name = "Chase Sterling", email = "chase.sterling@gmail.com"}, ] +license = {text = "MIT"} +readme = "README.md" +dynamic = ["version"] +requires-python = ">=3.3" +dependencies = [] + +[project.urls] repository = "https://github.com/gazpachoking/jsonref" documentation = "https://jsonref.readthedocs.io/en/latest/" -[tool.poetry.dependencies] -python = ">=3.3" +[tool.pdm.dev-dependencies] +test = ["pytest>=7.1.3"] -[tool.poetry.group.dev.dependencies] -pytest = ">=7.1.3" - -[tool.poetry_bumpversion.file."jsonref.py"] +[tool.pdm] +version = { source = "file", path = "jsonref.py" } +[tool.pdm.build] +includes = ["jsonref.py", "proxytypes.py"] [build-system] -requires = ["poetry-core >= 1.2.0"] -build-backend = "poetry.core.masonry.api" +requires = ["pdm-pep517>=1.0.0"] +build-backend = "pdm.pep517.api" [tool.isort] profile = "black" +