Skip to content

Commit d5bbaf7

Browse files
authored
Merge pull request #9 from tedivm/pypi_oidc
Publish to PyPI with OIDC
2 parents d6dba49 + 7da44dc commit d5bbaf7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ env:
1313
jobs:
1414
pypi:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
1618
steps:
1719
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
fetch-tags: true
1823

1924
- uses: actions/setup-python@v5
2025

@@ -28,5 +33,3 @@ jobs:
2833
- name: Publish package
2934
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
3035
uses: pypa/gh-action-pypi-publish@release/v1
31-
with:
32-
password: ${{ secrets.PYPI_PUBLISH_API_KEY }}

quasiqueue/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
try:
2-
from . import _version
2+
from . import _version # type: ignore
33

44
__version__ = _version.__version__
55
except: # noqa: E722

0 commit comments

Comments
 (0)