From 4ce1298206c1d688ea0a30811f3d9a43fbc900c8 Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 8 Feb 2025 22:50:48 -0800 Subject: [PATCH] chore: use project section (#322) --- poetry.lock | 4 ++-- pyproject.toml | 31 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/poetry.lock b/poetry.lock index 11e31c4..f11d88d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1694,5 +1694,5 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" -python-versions = "^3.9" -content-hash = "70d6413e83948c02cdb7e2d4143ccdf186c642da8dbc2064c5fc81cdeaab92e5" +python-versions = ">=3.9,<4.0" +content-hash = "a109e5708c7f50025ff2a93865e786763bc419ae43153ccc34c64174a821b9f5" diff --git a/pyproject.toml b/pyproject.toml index fb242c2..d171878 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,27 +1,33 @@ -[tool.poetry] +[project] name = "poetry-plugin-export" version = "1.9.0" description = "Poetry plugin to export the dependencies to various formats" -authors = ["Sébastien Eustace "] -license = "MIT" +authors = [{ name = "Sébastien Eustace", email = "sebastien@eustace.io" }] +license = { text = "MIT" } readme = "README.md" +requires-python = ">=3.9,<4.0" +dependencies = [ + "poetry>=2.0.0,<3.0.0", + # "poetry-core>=1.7.0,<3.0.0", + "poetry-core @ git+https://github.com/python-poetry/poetry-core.git", +] +dynamic = ["classifiers"] + +[project.urls] homepage = "https://python-poetry.org/" repository = "https://github.com/python-poetry/poetry-plugin-export" +[project.entry-points."poetry.application.plugin"] +export = "poetry_plugin_export.plugins:ExportApplicationPlugin" + +[tool.poetry] packages = [ { include = "poetry_plugin_export", from = "src" } ] - include = [ { path = "tests", format = "sdist" } ] -[tool.poetry.dependencies] -python = "^3.9" -poetry = ">=2.0.0,<3.0.0" -# poetry-core = ">=1.7.0,<3.0.0" -poetry-core = { git = "git+https://github.com/python-poetry/poetry-core.git" } - [tool.poetry.group.dev.dependencies] pre-commit = ">=2.18" pytest = "^8.0" @@ -37,9 +43,6 @@ optional = true [tool.poetry.group.github-actions.dependencies] pytest-github-actions-annotate-failures = "^0.1.7" -[tool.poetry.plugins."poetry.application.plugin"] -export = "poetry_plugin_export.plugins:ExportApplicationPlugin" - [tool.ruff] fix = true @@ -114,5 +117,5 @@ testpaths = [ [build-system] -requires = ["poetry-core"] +requires = ["poetry-core>=2.0"] build-backend = "poetry.core.masonry.api"