From f085933f88c9b7ea9af5e464b737c1ea1e04222f Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sun, 5 Mar 2023 16:45:19 +0000 Subject: [PATCH] Rename packaging target to pkg (#107) * Rename packaging target to pkg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 22 +++++++++++----------- .github/workflows/tox.yml | 2 +- README.md | 2 +- tox.ini | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52f3301..8c2ad3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,37 +3,37 @@ name: release on: release: - types: [published, created, edited] + types: [published] jobs: pypi: name: Publish to PyPI registry environment: release - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 env: FORCE_COLOR: 1 PY_COLORS: 1 - TOXENV: packaging - TOX_PARALLEL_NO_SPINNER: 1 + TOXENV: pkg steps: - - name: Switch to using Python 3.8 by default + - name: Switch to using Python 3.9 by default uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 + - name: Install tox - run: >- - python3 -m - pip install - --user - tox + run: python3 -m pip install --user "tox>=4.0.0" + - name: Check out src from Git uses: actions/checkout@v3 with: fetch-depth: 0 # needed by setuptools-scm + submodules: true + - name: Build dists run: python -m tox + - name: Publish to pypi.org if: >- # "create" workflows run separately from "push" & "pull_request" github.event_name == 'release' diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 3e0d742..6811f71 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -39,7 +39,7 @@ jobs: other_names: | lint integration - packaging + pkg platforms: linux,macos build: diff --git a/README.md b/README.md index e77a538..c9de255 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Commands: detect Display detected information about current project. lint ... (from pre-commit) lint2 ... (from tox) - packaging ... (from tox) + pkg ... (from tox) py ... (from tox) up Upload current change by creating or updating a CR/PR. ``` diff --git a/tox.ini b/tox.ini index 21042df..2f33f0b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = lint - packaging + pkg py minversion = 3.23.0 isolated_build = true @@ -75,7 +75,7 @@ deps = commands = mk test-integration -[testenv:packaging] +[testenv:pkg] description = Do packaging/distribution. If tag is not present or PEP440 compliant upload to PYPI could fail