Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: 👷 replace Poetry workflow with uv and switch to mkdocs-material-insiders #1771

Merged
merged 18 commits into from
Feb 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
730bbd2
ci: 👷 replace Poetry workflow with UV testing workflow and update dep…
onuralpszr Jan 8, 2025
fc40438
ci: 🐍 migrate from Poetry to uv for Python setup and dependency insta…
onuralpszr Jan 8, 2025
6ae1dfd
ci: 🐍 update workflows to use specific uv version and improve environ…
onuralpszr Jan 8, 2025
a61a6c7
chore: update author and maintainer email addresses in pyproject.toml
onuralpszr Jan 8, 2025
9587439
ci: 🔑 add GitHub App token creation for mkdocs and install mkdocs-mat…
onuralpszr Jan 8, 2025
071feea
docs: 📝 update CONTRIBUTING.md to replace Poetry with uv for dependen…
onuralpszr Jan 8, 2025
16848e9
docs: 📝 update installation instructions to replace Poetry with uv in…
onuralpszr Jan 8, 2025
3ee6de3
docs: 📝 update error message to include uv as an alternative for inst…
onuralpszr Jan 8, 2025
e543aac
ci: 🔑 separate TestPyPI publishing workflows
onuralpszr Jan 8, 2025
2a1542c
ci: 👷 rename release actions files
onuralpszr Jan 8, 2025
483cc06
build: 🛠️ set include-package-data to false in pyproject.toml
onuralpszr Jan 9, 2025
a5cad09
ci: 🔧 add version string to uv setup actions and refine test workflow…
onuralpszr Jan 9, 2025
4c03f89
Merge branch 'develop' into ci/build/changes
onuralpszr Jan 9, 2025
ea03d55
chore: delete removed B410 bandit rule
onuralpszr Jan 27, 2025
ee95689
Merge branch 'develop' into ci/build/changes
onuralpszr Feb 3, 2025
dc08d88
chore: update astral-sh/setup-uv to version 5.2.2 in workflow files
onuralpszr Feb 8, 2025
2c53eb1
chore: simplify numpy and scipy version constraints in pyproject.toml…
onuralpszr Feb 9, 2025
afcd0d6
chore: update email address for author and maintainer in pyproject.toml
onuralpszr Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: 🔑 separate TestPyPI publishing workflows
onuralpszr committed Jan 8, 2025
commit e543aac6ddf2d3795f453b323b1463d8ba1d2f5d
10 changes: 2 additions & 8 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Supervision Pre-Releases to PyPI and TestPyPI
name: Publish Supervision Pre-Releases to PyPI

on:
push:
@@ -11,7 +11,7 @@ on:
permissions: {} # Explicitly remove all permissions by default

jobs:
build-and-publish-pre-release:
publish-pre-release:
name: Publish Pre-release Package
runs-on: ubuntu-latest
environment:
@@ -43,9 +43,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
attestations: true

- name: 🚀 Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
repository-url: https://test.pypi.org/legacy/
attestations: true
41 changes: 41 additions & 0 deletions .github/workflows/publish-testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Supervision Releases to TestPyPI

on:
workflow_dispatch:

permissions: {} # Explicitly remove all permissions by default

jobs:
publish-testpypi:
name: Publish Release Package
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/supervision/
timeout-minutes: 10
permissions:
id-token: write # Required for PyPI publishing
contents: read # Required for checkout
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🐍 Install uv and set Python version ${{ matrix.python-version }}
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
python-version: ${{ matrix.python-version }}

- name: 🏗️ Build source and wheel distributions
run: |
uv pip install -r pyproject.toml --extra build
uv build
uv run twine check --strict dist/*

- name: 🚀 Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
repository-url: https://test.pypi.org/legacy/
attestations: true
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Supervision Releases to PyPI and TestPyPI
name: Publish Supervision Releases to PyPI

on:
push:
@@ -9,7 +9,7 @@ on:
permissions: {} # Explicitly remove all permissions by default

jobs:
build-and-publish-release:
publish-release:
name: Publish Release Package
runs-on: ubuntu-latest
environment:
@@ -41,9 +41,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
attestations: true

- name: 🚀 Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
repository-url: https://test.pypi.org/legacy/
attestations: true