-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ff120b
commit a5e9610
Showing
3 changed files
with
11 additions
and
17 deletions.
There are no files selected for viewing
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,31 +10,23 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
name: test ${{ matrix.py }} - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
py: | ||
- "3.11.0-beta.4" | ||
- "3.10" | ||
- "pypy-3.7-v7.3.7" # ahead to start it earlier because takes longer | ||
- "3.9" | ||
- "3.8" | ||
- "3.7" | ||
os: | ||
- ubuntu-20.04 | ||
- ubuntu-22.04 | ||
- windows-2022 | ||
- macos-10.15 | ||
- macos-12 | ||
|
||
steps: | ||
- name: Setup python for tox | ||
|
@@ -81,7 +73,7 @@ jobs: | |
|
||
coverage: | ||
name: Combine coverage | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -118,8 +110,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- ubuntu-22.04 | ||
- windows-2022 | ||
tox_env: | ||
- dev | ||
- type | ||
|
@@ -144,7 +136,7 @@ jobs: | |
|
||
publish: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
needs: [ check, coverage, lint ] | ||
needs: [ check, coverage ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup python to build package | ||
|
@@ -159,7 +151,7 @@ jobs: | |
- name: Build sdist and wheel | ||
run: python -m build -s -w . -o dist | ||
- name: Publish to PyPi | ||
uses: pypa/gh-action-pypi-publish@master | ||
uses: pypa/gh-action-pypi-publish@v1.5.1 | ||
with: | ||
skip_existing: true | ||
user: __token__ | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ requires = ["hatchling>=0.22.0", "hatch-vcs"] | |
name = "platformdirs" | ||
description = 'A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".' | ||
readme = "README.rst" | ||
license = "MIT" | ||
license.file = "LICENSE" | ||
maintainers = [ | ||
{ name = "Bernát Gábor", email = "[email protected]" }, | ||
{ name = "Julian Berman", email = "[email protected]" }, | ||
|
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