diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb4e8c2f1..eb9d6854b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,6 +67,27 @@ jobs: - name: Run test run: ${{ matrix.task }} + legacy-package-test: + runs-on: ubuntu-latest + container: + image: quay.io/fedora/fedora:40 # RHEL 10 branch point + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + - name: Install dependencies + run: > + dnf install -y + make + python3-build + python3-setuptools + python3-wheel + twine + - name: Display Python version + run: python3 --version + - name: Run package test + run: make -f Makefile package + test-runs: strategy: matrix: diff --git a/Makefile b/Makefile index a507a0b71..f37e168b6 100644 --- a/Makefile +++ b/Makefile @@ -74,4 +74,4 @@ yamllint: .PHONY: package package: - (umask 0022; python -m build; python -m twine check --strict ./dist/*) + (umask 0022; python3 -m build --no-isolation && python3 -m twine check --strict ./dist/*) diff --git a/pyproject.toml b/pyproject.toml index a5bb31c47..0fe170d6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [build-system] -requires = ["setuptools>=77"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] name = "stratis-cli" authors = [{name = "Anne Mulhern", email = "amulhern@redhat.com"}] description = "Stratis CLI" -license = "Apache-2.0" +license = {file = "LICENSE"} classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console",