From cf6cea21f838fcb81ac77e54eaeb2deccab06910 Mon Sep 17 00:00:00 2001 From: Marco D'Aleo Date: Sun, 27 Sep 2026 15:41:50 +0100 Subject: [PATCH] Migrate project metadata to Poetry 2 format --- .gitea/workflows/lint-and-security.yml | 2 +- poetry.lock | 6 +++--- pyproject.toml | 26 +++++++++++++++----------- 3 files changed, 19 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 0a90f11..1a84c16 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.3.3 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" @@ -499,7 +499,7 @@ description = "A lil' TOML parser" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_full_version <= \"3.11.0a6\"" +markers = "python_version == \"3.10\"" files = [ {file = "tomli-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:88bd15eb972f3664f5ed4b57c1634a97153b4bac4479dcb6a495f41921eb7f45"}, {file = "tomli-2.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:883b1c0d6398a6a9d29b508c331fa56adbcdff647f6ace4dfca0f50e90dfd0ba"}, @@ -583,4 +583,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 = "45b6935eff03de6a71792d1a2ea6c4d5ffa5f2d55046647a47268e798c22bb51" +content-hash = "f044628069923498edb2a675ac7fa8f2e70213963d9a29b9c7b4940894930b04" diff --git a/pyproject.toml b/pyproject.toml index 3c9a12e..fb8aceb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,22 +1,26 @@ -[tool.poetry] +[project] name = "filedust" version = "0.4.3" description = "Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups)." -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/filedust" -repository = "https://git.sysmd.uk/guardutils/filedust" -packages = [{ include = "filedust", from = "src" }] +requires-python = ">=3.10,<4.0" +dependencies = [ + "rich>=12", + "argcomplete>=2", +] -[tool.poetry.dependencies] -python = ">=3.10,<4.0" -rich = ">=12" -argcomplete = ">=2" +[project.urls] +Homepage = "https://git.sysmd.uk/guardutils/filedust" +Repository = "https://git.sysmd.uk/guardutils/filedust" -[tool.poetry.scripts] +[project.scripts] filedust = "filedust.cli:main" +[tool.poetry] +packages = [{ include = "filedust", from = "src" }] + [tool.poetry.group.dev.dependencies] pytest = "^9.0.1" pytest-cov = "^7.0.0" @@ -26,5 +30,5 @@ pre-commit = "^3.8" line-length = 79 [build-system] -requires = ["poetry-core"] +requires = ["poetry-core>=2.0.0,<3.0.0"] build-backend = "poetry.core.masonry.api"