Skip to content

Commit fd026eb

Browse files
committed
Configure PyPI publish workflow and bump version metadata
1 parent 1e8dcde commit fd026eb

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/python-publish.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# This workflow will upload a Python Package to PyPI when a release is created
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
1+
name: Publish Python Package
102

113
on:
124
release:
135
types: [published]
6+
workflow_dispatch:
7+
push:
8+
tags:
9+
- "v*"
1410

1511
permissions:
1612
contents: read
1713

14+
concurrency:
15+
group: pypi-publish-${{ github.ref }}
16+
cancel-in-progress: false
17+
1818
jobs:
1919
release-build:
2020
runs-on: ubuntu-latest
@@ -24,14 +24,19 @@ jobs:
2424

2525
- uses: actions/setup-python@v5
2626
with:
27-
python-version: "3.x"
27+
python-version: "3.11"
2828

2929
- name: Build release distributions
3030
run: |
31-
# NOTE: put your own distribution build steps here.
31+
python -m pip install --upgrade pip
3232
python -m pip install build
3333
python -m build
3434
35+
- name: Check distributions
36+
run: |
37+
python -m pip install twine
38+
twine check dist/*
39+
3540
- name: Upload distributions
3641
uses: actions/upload-artifact@v4
3742
with:
@@ -50,12 +55,7 @@ jobs:
5055
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
5156
environment:
5257
name: pypi
53-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54-
# url: https://pypi.org/p/YOURPROJECT
55-
#
56-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57-
# ALTERNATIVE: exactly, uncomment the following line instead:
58-
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
58+
url: https://pypi.org/project/euclidkit/
5959

6060
steps:
6161
- name: Retrieve release distributions

euclidkit/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Version information for euclidkit package."""
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.2.0rc1"
44
__version_info__ = tuple(int(x) for x in __version__.split("."))
55

66
# Version metadata
77
__author__ = "Yuming Fu"
88
__email__ = "fuympku@outlook.com"
99
__license__ = "GPLv3"
10-
__copyright__ = "Copyright 2025, Yuming Fu"
10+
__copyright__ = "Copyright 2026, Yuming Fu"

0 commit comments

Comments
 (0)