From 996f692d9d21d91419df8c120eddb3e107e25ee7 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 24 Nov 2023 11:57:53 -0500 Subject: [PATCH] unify list of packaging dependencies Make the tox pkglint job and the github action for publishing packages use the same source for the list of dependencies. --- .github/workflows/python-publish.yaml | 2 +- pyproject.toml | 4 ++++ tox.ini | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml index fae7564..d32d623 100644 --- a/.github/workflows/python-publish.yaml +++ b/.github/workflows/python-publish.yaml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine pbr + pip install .[build] - name: Build sdist and wheel run: | python -m build diff --git a/pyproject.toml b/pyproject.toml index c16cd0d..2c16c8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,10 @@ test = [ "pytest", "beautifulsoup4", ] +build = [ + "build", + "twine", +] [tools.setuptools] packages = [ diff --git a/tox.ini b/tox.ini index 6d1a495..7d650ed 100644 --- a/tox.ini +++ b/tox.ini @@ -15,8 +15,7 @@ commands= [testenv:pkglint] deps= - build - twine + .[build] check-python-versions commands= python -m build