From 7582f90e75a84cc737764d0c1e69b30e167bd136 Mon Sep 17 00:00:00 2001 From: mkoppmann Date: Sat, 17 Dec 2022 15:26:43 +0100 Subject: [PATCH 1/2] Move project to Poetry --- poetry.lock | 7 +++++++ pyproject.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 poetry.lock create mode 100644 pyproject.toml diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..0fd69ed --- /dev/null +++ b/poetry.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Poetry and should not be changed by hand. +package = [] + +[metadata] +lock-version = "2.0" +python-versions = ">=3.5" +content-hash = "af1206dca1852e24b3c8de4095f9611669624b80e84a346fd47d58cba3f80d67" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..081c2e3 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[tool.poetry] +name = "cfv" +version = "3.0.1.dev0" +description = "Command-line File Verify - versatile file checksum creator and verifier" +license = "GPL" +keywords = ["cfv", "checksum", "verify", "sfv", "csv", "crc", "bsdmd5", "md5sum", "sha1sum", "sha224sum", "sha256sum", "sha384sum", "sha512sum", "torrent", "par", "par2"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Topic :: System :: Archiving", + "Topic :: Utilities", + "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + ] +homepage = "https://github.com/cfv-project/cfv" +repository = "https://github.com/cfv-project/cfv" +authors = ["David Gnedt "] +readme = "README.md" +packages = [{include = "cfv", from = "lib"}] + +[tool.poetry.scripts] +cfv = "cfv.common:main" + +[tool.poetry.dependencies] +python = ">=3.5" + +[tool.poetry.urls] +"Bug Tracker" = "https://github.com/cfv-project/cfv/issues" +"Original Project" = "http://cfv.sourceforge.net/" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" From 9ac330c125eceb2a71c8c73f8907159afb960da8 Mon Sep 17 00:00:00 2001 From: mkoppmann Date: Sat, 17 Dec 2022 20:57:28 +0100 Subject: [PATCH 2/2] Add Poetry to GitHub Actions --- .github/workflows/ci-python3-freebsd.yml | 6 ++++++ .github/workflows/ci-python3.yml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci-python3-freebsd.yml b/.github/workflows/ci-python3-freebsd.yml index cc2be75..4ae340e 100644 --- a/.github/workflows/ci-python3-freebsd.yml +++ b/.github/workflows/ci-python3-freebsd.yml @@ -51,6 +51,12 @@ jobs: pw useradd runner -u 501 -g staff -d /Users/runner + # Install Poetry + export POETRY_HOME=/opt/poetry + python3 -m venv $POETRY_HOME + $POETRY_HOME/bin/pip install poetry==1.1.15 + $POETRY_HOME/bin/poetry --version + # Install test dependencies pip install pyroma pip install check-manifest diff --git a/.github/workflows/ci-python3.yml b/.github/workflows/ci-python3.yml index 140e8b8..fbc61cf 100644 --- a/.github/workflows/ci-python3.yml +++ b/.github/workflows/ci-python3.yml @@ -38,6 +38,13 @@ jobs: with: python-version: ${{ matrix.python-version }} + - name: Install Poetry + run: | + export POETRY_HOME=/opt/poetry + python3 -m venv $POETRY_HOME + $POETRY_HOME/bin/pip install poetry==1.1.15 + $POETRY_HOME/bin/poetry --version + - name: Install test dependencies run: | sudo apt install coreutils cksfv