Skip to content

Commit

Permalink
Rename packaging target to pkg (#107)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ssbarnea and pre-commit-ci[bot] authored Mar 5, 2023
1 parent dad7ce9 commit f085933
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
other_names: |
lint
integration
packaging
pkg
platforms: linux,macos
build:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
lint
packaging
pkg
py
minversion = 3.23.0
isolated_build = true
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f085933

Please sign in to comment.