-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dropped flit+devtools in favour of hatchling+pdm (#9)
- Loading branch information
1 parent
7eb65b2
commit fecb262
Showing
15 changed files
with
911 additions
and
181 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
name: 'Setup tox' | ||
description: 'Install tox and restore cache' | ||
outputs: | ||
cache-hit: | ||
description: 'A boolean value to indicate an exact match was found.' | ||
value: ${{ steps.cache.outputs.cache-hit }} | ||
inputs: | ||
python-version: | ||
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax." | ||
required: false | ||
default: '3.x' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Compile requirements | ||
run: python -m devtools --no-venv repo --no-sync | ||
shell: bash | ||
- uses: pdm-project/setup-pdm@v3 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: true | ||
cache-dependency-path: './pdm.lock' | ||
- name: Install dependencies | ||
run: pip install tox -c requirements-dev.txt | ||
run: pdm sync --global --project=. --no-self --dev --group=tox | ||
shell: bash | ||
- name: Get python info | ||
id: python | ||
run: echo "checksum=$(python -VV | (sha256sum || shasum -a 256) | awk '{ print $1 }')" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- name: Restore tox environment | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .tox | ||
key: tox|${{ runner.os }}|${{ github.workflow }}|${{ github.job }}|${{ steps.python.outputs.checksum }}|${{ hashFiles( 'tox.ini' , 'requirements*.txt') }} | ||
- name: Disable tox parallel spinner by default | ||
run: echo "TOX_PARALLEL_NO_SPINNER=1" >> $GITHUB_ENV | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
|
||
# pdm | ||
.pdm.toml | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule devtools
deleted from
eabc2c
Oops, something went wrong.