Skip to content

Commit 2ff82a9

Browse files
Fix python publishing workflow and prepare for patch v1.2.1 (#459)
Because the TestPyPI and PyPI are part of the same job, there is a mixup with the reusing of attestations. Separated into two jobs so to avoid the workspace to be shared.
2 parents 6e88ef9 + 40d7e19 commit 2ff82a9

5 files changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/publish_to_pypi.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
name: dist-wheels-${{ matrix.python }}-${{ matrix.platform }}
5757
path: dist/
5858

59-
publish:
60-
name: Publish wheels and source distribution to PyPI
59+
publish-testpypi:
60+
name: Publish wheels and source distribution to Test PyPI
6161
runs-on: ubuntu-24.04
6262
if: github.event_name == 'push'
6363
permissions:
@@ -80,6 +80,23 @@ jobs:
8080
repository-url: https://test.pypi.org/legacy/
8181
skip-existing: true
8282

83+
publish-pypi:
84+
name: Publish wheels and source distribution to PyPI
85+
runs-on: ubuntu-24.04
86+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !contains(github.ref, '-rc')
87+
permissions:
88+
id-token: write
89+
needs:
90+
- build-wheels
91+
- build-sdist
92+
93+
steps:
94+
- name: Download wheels from build jobs
95+
uses: actions/download-artifact@v4
96+
with:
97+
pattern: dist-*
98+
merge-multiple: true
99+
path: dist/
100+
83101
- name: Publish distribution to PyPI
84-
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, '-rc')
85102
uses: pypa/gh-action-pypi-publish@v1.13.0

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/).
55

6+
## [v1.2.1] - 2025-12-10
7+
8+
Note: this version only includes a fix to the publishing workflow. See v1.2.0 for relevant changes since the last v1.1.1
9+
10+
### Fixed
11+
12+
- TestPyPI and PyPI were part of the same job, solved a mixup/reuse of attestations (#459)
13+
614
## [v1.2.0] - 2025-12-10
715

816
### Added

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Please keep 3.14 as minimum requirement for building on OPAL-RT targets
22
cmake_minimum_required(VERSION 3.14...3.23)
33
project(DPsim
4-
VERSION 1.2.0
4+
VERSION 1.2.1
55
DESCRIPTION "C++ Power System Simulation Library"
66
LANGUAGES CXX
77
HOMEPAGE_URL "https://dpsim.fein-aachen.org/")

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dpsim
3-
version = 1.2.0
3+
version = 1.2.1
44
author = The DPsim Authors
55
author_email = post_acs@eonerc.rwth-aachen.de
66
description = dynamic real-time power system simulator

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sonar.cpd.exclusions=dpsim/examples/**/*,examples/**/*
1414

1515
# This is the name and version displayed in the SonarCloud UI.
1616
sonar.projectName=DPsim
17-
sonar.projectVersion=1.2.0
17+
sonar.projectVersion=1.2.1
1818

1919
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
2020
#sonar.sources=.

0 commit comments

Comments
 (0)