Skip to content

Commit f0b04b5

Browse files
authored
build: Solve the version error (#354)
* build: remove attr: pkg.__version__ from setup.cfg Related to pypa/setuptools#1724 * build: add a way to skip PyPI upload * build: add python 3.13 support * docs(readme): update Python version badge * buidl(version): add ref to version file * Revert "build: add python 3.13 support" This reverts commit 5694bc7. * Revert "docs(readme): update Python version badge" This reverts commit df6ff16. * build: remove the culprit line that was causing the error
1 parent 39a837b commit f0b04b5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/upload-to-pypi.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
inputs:
66
overrideVersion:
77
description: Manually force a version
8+
uploadToPyPI:
9+
description: Upload to PyPI
10+
required: false
11+
default: false
12+
type: boolean
813

914
env:
1015
CIBW_BUILD_VERBOSITY: 3
@@ -100,7 +105,12 @@ jobs:
100105
with:
101106
name: artifact
102107
path: dist
103-
- uses: pypa/gh-action-pypi-publish@release/v1
108+
- name: Publish to PyPI
109+
if: ${{ github.event.inputs.uploadToPyPI == 'true' }}
110+
uses: pypa/gh-action-pypi-publish@release/v1
104111
with:
105112
user: ${{ secrets.PYPI_USERNAME }}
106113
password: ${{ secrets.PYPI_PASSWORD }}
114+
- name: Skipped PyPI Upload
115+
if: ${{ github.event.inputs.uploadToPyPI != 'true' }}
116+
run: echo "Upload to PyPI was skipped due to workflow input."

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[metadata]
22
name = ruptures
3-
version = attr: ruptures.__version__
43
url = https://github.com/deepcharles/ruptures/
54
license = BSD-2-Clause
65
license_files = LICENSE

0 commit comments

Comments
 (0)