Skip to content
Snippets Groups Projects
Commit 99e53d76 authored by Moul's avatar Moul
Browse files

Upgrade pyproject.toml to Poetry v2 format (#215)

Migrate from [tool.poetry] to [project]
https://python-poetry.org/blog/announcing-poetry-2.0.0
https://python-poetry.org/docs/faq/#migrate-pep621-new-static

Use dynamic Poetry classifiers and dependencies,
more convenient but less generic to pyproject.toml project

Use full names
Remove s_b from the authors,
I couldn’t find a commit from him with shortlog
His activity: https://forum.duniter.org/t//528
parent cb6722dc
No related branches found
No related tags found
1 merge request!202Migrate to Poetry v2 (#215)
Pipeline #40222 waiting for manual action
[tool]
[tool.poetry]
[project]
name = "duniterpy"
version = "1.2.0"
description = "Python library for developers of Duniter clients"
authors = ["inso <insomniak.fr@gmail.com>", "canercandan", "s_b"]
maintainers = ["vit <vit@free.fr>", "Moul <moul@moul.re>"]
license = { text = "GPL-3.0-or-later" }
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.9,<4.0"
authors = [
{ name = "inso", email = "insomniak.fr@gmail.com"},
{ name = "canercandan"},
]
maintainers = [
{ name = "vit, Vincent Texier", email = "vit@free.fr"},
{ name = "Moul, Maël Azimi", email = "moul@moul.re"}
]
keywords = ["g1", "duniter", "cryptocurrency", "librecurrency", "library"]
dynamic = ["classifiers", "dependencies"]
[tool.urls]
repository = "https://git.duniter.org/clients/python/duniterpy"
documentation = "https://clients.pages.duniter.org/python/duniterpy/index.html"
urls = { Changelog = "https://git.duniter.org/clients/python/duniterpy/-/blob/main/CHANGELOG.md" }
keywords = ["g1", "duniter", "cryptocurrency", "librecurrency", "library"]
include = ["examples/*.py"]
"changelog" = "https://git.duniter.org/clients/python/duniterpy/-/blob/main/CHANGELOG.md"
[tool.poetry]
requires-poetry = ">=2.0"
include = [{path="examples/*.py", format=["sdist", "wheel"]}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.9.0"
graphql-core = "^3.2.3"
websocket-client = "^1.5.2"
jsonschema = "^4.17.3"
......@@ -48,6 +55,10 @@ optional = true
sphinx = "^6.2.1"
sphinx_rtd_theme = "^1.2.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
src_paths = ["duniterpy", "tests", "examples"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment