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
37 changes: 35 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
- published

jobs:
publish-to-pypi:
publish-to-test-pypi:
runs-on: ubuntu-latest
permissions:
id-token: write

environment:
name: test

steps:
# Checkout the repository
Expand All @@ -35,3 +36,35 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
runs-on: ubuntu-latest
# if release to test PyPI fails, still run this job
# since we can check the reason for failure manually
# before approving the release
if: always()
needs: publish-to-test-pypi
permissions:
id-token: write
environment:
name: production

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v4

# Set up Python
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "0.7.8"
enable-cache: true
cache-dependency-glob: |
pyproject.toml

- name: Build package distributions
run: uv build

# Publish to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Python-CayenneLPP
[![Build Status](https://travis-ci.org/OlegZv/Python-CayenneLPP.svg?branch=master)](https://travis-ci.org/OlegZv/Python-CayenneLPP)
[![codecov](https://codecov.io/gh/OlegZv/Python-CayenneLPP/branch/master/graph/badge.svg)](https://codecov.io/gh/OlegZv/Python-CayenneLPP)
[![Lint/Test](https://github.com/OlegZv/Python-CayenneLPP/actions/workflows/test.yml/badge.svg)](https://github.com/OlegZv/Python-CayenneLPP/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/OlegZv/Python-CayenneLPP/branch/main/graph/badge.svg)](https://codecov.io/gh/OlegZv/Python-CayenneLPP)
[![PyPI](https://img.shields.io/pypi/v/Python-CayenneLPP)](https://pypi.org/project/Python-CayenneLPP/)
[![PyPI](https://img.shields.io/pypi/pyversions/Python-CayenneLPP)](https://pypi.org/project/Python-CayenneLPP/)

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "python-cayennelpp"
dynamic = ["version"]
Expand Down Expand Up @@ -40,10 +44,13 @@ dev = [
"pytest>=8.3.5",
"pytest-cov>=5.0.0",
"ruff>=0.11.12",
"setuptools-scm>=8.3.1",
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.setuptools_scm]
102 changes: 101 additions & 1 deletion uv.lock

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

Loading