Skip to content

Commit 56fc8f2

Browse files
[Release] Initial release (#19)
* Enable trusted publishing on PyPI. * Bump version for release. * Remove backup repo.
1 parent 3d0717b commit 56fc8f2

22 files changed

Lines changed: 36 additions & 863 deletions

.github/workflows/test.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -66,41 +66,41 @@ jobs:
6666
hatch run pip install jupyter
6767
hatch run jupyter execute examples/pipeline.ipynb
6868
69-
# publish:
70-
# name: Publish to PyPI
71-
# if: startsWith(github.ref, 'refs/tags/v')
72-
# needs: test_qek_ubuntu
73-
# runs-on: ubuntu-latest
74-
# permissions:
75-
# # IMPORTANT: this permission is mandatory for trusted publishing
76-
# id-token: write
77-
# steps:
78-
# - name: Check out Qek
79-
# uses: actions/checkout@v4
80-
# with:
81-
# ref: ${{ github.ref }}
82-
# - name: Set up Python
83-
# uses: actions/setup-python@v5
84-
# with:
85-
# python-version: "3.10"
86-
# - name: Install Python dependencies
87-
# run: |
88-
# python -m pip install --upgrade pip
89-
# pip install hatch
90-
# - name: Build and publish package
91-
# run: |
92-
# hatch build
93-
# - name: Publish to PyPI
94-
# uses: pypa/gh-action-pypi-publish@release/v1
95-
# - name: Confirm deployment
96-
# timeout-minutes: 5
97-
# run: |
98-
# VERSION=${GITHUB_REF#refs/tags/v}
99-
# until pip download qek==$VERSION
100-
# do
101-
# echo "Failed to download from PyPI, will wait for upload and retry."
102-
# sleep 1
103-
# done
69+
publish:
70+
name: Publish to PyPI
71+
if: startsWith(github.ref, 'refs/tags/v')
72+
needs: test_qek_ubuntu
73+
runs-on: ubuntu-latest
74+
permissions:
75+
# IMPORTANT: this permission is mandatory for trusted publishing
76+
id-token: write
77+
steps:
78+
- name: Check out QEK
79+
uses: actions/checkout@v4
80+
with:
81+
ref: ${{ github.ref }}
82+
- name: Set up Python
83+
uses: actions/setup-python@v5
84+
with:
85+
python-version: "3.10"
86+
- name: Install Python dependencies
87+
run: |
88+
python -m pip install --upgrade pip
89+
pip install hatch
90+
- name: Build and publish package
91+
run: |
92+
hatch build
93+
- name: Publish to PyPI
94+
uses: pypa/gh-action-pypi-publish@release/v1
95+
- name: Confirm deployment
96+
timeout-minutes: 5
97+
run: |
98+
VERSION=${GITHUB_REF#refs/tags/v}
99+
until pip download qek==$VERSION
100+
do
101+
echo "Failed to download from PyPI, will wait for upload and retry."
102+
sleep 1
103+
done
104104
105105
deploy_docs:
106106
name: Deploy QEK docs (ubuntu)

backup-repo.git/HEAD

Lines changed: 0 additions & 1 deletion
This file was deleted.

backup-repo.git/config

Lines changed: 0 additions & 10 deletions
This file was deleted.

backup-repo.git/description

Lines changed: 0 additions & 1 deletion
This file was deleted.

backup-repo.git/hooks/applypatch-msg.sample

Lines changed: 0 additions & 15 deletions
This file was deleted.

backup-repo.git/hooks/commit-msg.sample

Lines changed: 0 additions & 24 deletions
This file was deleted.

backup-repo.git/hooks/fsmonitor-watchman.sample

Lines changed: 0 additions & 174 deletions
This file was deleted.

backup-repo.git/hooks/post-update.sample

Lines changed: 0 additions & 8 deletions
This file was deleted.

backup-repo.git/hooks/pre-applypatch.sample

Lines changed: 0 additions & 14 deletions
This file was deleted.

backup-repo.git/hooks/pre-commit.sample

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)