From 92e6d8cfdec3d7417a683e270afcfb0374406ce9 Mon Sep 17 00:00:00 2001 From: Marco D'Aleo Date: Sun, 27 Sep 2026 15:41:26 +0100 Subject: [PATCH] Migrate project metadata to Poetry 2 format --- .gitea/workflows/lint-and-security.yml | 2 +- poetry.lock | 4 ++-- pyproject.toml | 26 ++++++++++++++------------ 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/lint-and-security.yml b/.gitea/workflows/lint-and-security.yml index fa95502..3c6bf54 100644 --- a/.gitea/workflows/lint-and-security.yml +++ b/.gitea/workflows/lint-and-security.yml @@ -24,7 +24,7 @@ jobs: - name: Install Poetry run: | - pip install poetry + pip install "poetry>=2,<3" poetry self add poetry-plugin-export - name: Install pip-audit diff --git a/poetry.lock b/poetry.lock index ca6c57c..c1fcced 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.4.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.5.0 and should not be changed by hand. [[package]] name = "argcomplete" @@ -459,4 +459,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.1" python-versions = ">=3.10,<4.0" -content-hash = "e2c2d57a74d31e7a59cc63daae9511890c9e21db043df7a5c8d9ac33e967e393" +content-hash = "9cdd17377277900f5cb132fa000030ec980678f09d5e413d5e8f7e66058d571c" diff --git a/pyproject.toml b/pyproject.toml index b462284..257a819 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,21 +1,23 @@ -[tool.poetry] +[project] name = "chguard" version = "0.5.0" description = "Safety-first tool to snapshot and restore filesystem ownership and permissions." -authors = ["Marco D'Aleo "] +authors = [{ name = "Marco D'Aleo", email = "marco@marcodaleo.com" }] license = "GPL-3.0-or-later" readme = "README.md" -homepage = "https://git.sysmd.uk/guardutils/chguard" -repository = "https://git.sysmd.uk/guardutils/chguard" +requires-python = ">=3.10,<4.0" +dependencies = [ + "rich>=12", + "argcomplete>=2", + "platformdirs>=4.2.2", + "filelock>=3.15.4", +] -[tool.poetry.dependencies] -python = ">=3.10,<4.0" -rich = ">=12" -argcomplete = ">=2" -platformdirs = ">=4.2.2" -filelock = ">=3.15.4" +[project.urls] +Homepage = "https://git.sysmd.uk/guardutils/chguard" +Repository = "https://git.sysmd.uk/guardutils/chguard" -[tool.poetry.scripts] +[project.scripts] chguard = "chguard.cli:main" [tool.poetry.group.dev.dependencies] @@ -29,5 +31,5 @@ line-length = 79 testpaths = ["tests"] [build-system] -requires = ["poetry-core"] +requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api"