Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 18 additions & 4 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
pypi-publish:
name: Upload release to PyPI
Expand All @@ -6,9 +11,18 @@ jobs:
name: pypi
url: https://pypi.org/p/pyadtpulse
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- name: Check out repository
uses: actions/checkout@v4

- name: Set up UV
uses: astral-sh/setup-uv@v1

- name: sync venv and build package with uv
run: |
uv sync
uv build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build"]
build-backend = "uv_build"


[project]
name = "pyadtpulse"
Expand All @@ -27,7 +28,6 @@ dependencies = [
dev = [
"aioresponses>=0.7.8",
"bandit[sarif,toml]>=1.8.6",
"build>=1.2.2.post1",
"freezegun>=1.5.2",
"pre-commit>=4.2.0",
"pytest>=8.4.1",
Expand All @@ -41,3 +41,7 @@ dev = [

[tool.bandit]
exclude_dirs = ["tests", ".venv"]

[tool.uv.build-backend]
module-name = "pyadtpulse"
module-root = ""
27 changes: 1 addition & 26 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.