Skip to content

Commit 1bbf096

Browse files
authored
Merge pull request #118 from crusaderky/r252
Bump master to v2.5.2 tag
2 parents 6c0fe81 + 7fb307d commit 1bbf096

File tree

4 files changed

+10
-82
lines changed

4 files changed

+10
-82
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 7 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -9,84 +9,13 @@ on:
99
- 'prerelease-v[0-9]+.[0-9]+.[0-9]+**'
1010
jobs:
1111
build_wheels:
12-
name: Build wheels on ${{ matrix.os }}
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
# macos-13 is an intel runner, macos-14 is apple silicon
17-
os: [ubuntu-latest, windows-latest, macos-13, macos-14, ubuntu-24.04-arm]
18-
19-
steps:
20-
- uses: actions/checkout@v4
21-
- name: Build wheels
22-
uses: pypa/[email protected]
23-
env:
24-
CIBW_SOME_OPTION: value
25-
with:
26-
package-dir: .
27-
output-dir: wheelhouse
28-
config-file: "{package}/pyproject.toml"
29-
- uses: actions/upload-artifact@v4
30-
with:
31-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
32-
path: ./wheelhouse/*.whl
33-
34-
build_sdist:
35-
name: Build source distribution
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v4
39-
40-
- name: Build sdist
41-
run: pipx run build --sdist
42-
- uses: actions/upload-artifact@v4
43-
with:
44-
name: cibw-sdist
45-
path: dist/*.tar.gz
46-
create_release:
47-
needs: [build_wheels, build_sdist]
48-
runs-on: ubuntu-latest
12+
uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@main
4913
permissions:
5014
contents: write
51-
checks: write
5215
actions: read
53-
issues: read
54-
packages: write
55-
pull-requests: read
56-
repository-projects: read
57-
statuses: read
58-
steps:
59-
- name: Get the tag name and determine if it's a prerelease
60-
id: get_tag_info
61-
run: |
62-
FULL_TAG=${GITHUB_REF#refs/tags/}
63-
if [[ $FULL_TAG == release-* ]]; then
64-
TAG_NAME=${FULL_TAG#release-}
65-
IS_PRERELEASE=false
66-
elif [[ $FULL_TAG == prerelease-* ]]; then
67-
TAG_NAME=${FULL_TAG#prerelease-}
68-
IS_PRERELEASE=true
69-
else
70-
echo "Tag does not match expected patterns" >&2
71-
exit 1
72-
fi
73-
echo "FULL_TAG=$TAG_NAME" >> $GITHUB_ENV
74-
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
75-
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV
76-
- uses: actions/download-artifact@v4
77-
with:
78-
# unpacks all CIBW artifacts into dist/
79-
pattern: cibw-*
80-
path: dist
81-
merge-multiple: true
82-
- name: Create Draft Release
83-
id: create_release
84-
uses: softprops/action-gh-release@v2
85-
if: startsWith(github.ref, 'refs/tags/')
86-
env:
87-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
with:
89-
name: ${{ env.TAG_NAME }}
90-
draft: true
91-
prerelease: ${{ env.IS_PRERELEASE }}
92-
files: "./dist/*"
16+
with:
17+
wheel-name-pattern: "srsly-*.whl"
18+
pure-python: false
19+
secrets:
20+
gh-token: ${{ secrets.GITHUB_TOKEN }}
21+

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ build-backend = "setuptools.build_meta"
77

88
[tool.cibuildwheel]
99
build = "*"
10-
skip = "pp* cp36* cp37* cp38*"
10+
skip = "cp38*"
1111
test-skip = ""
12-
free-threaded-support = false
1312

1413
archs = ["native"]
1514

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers =
2727
[options]
2828
zip_safe = true
2929
include_package_data = true
30-
python_requires = >=3.9,<3.14
30+
python_requires = >=3.9,<3.15
3131
setup_requires =
3232
cython>=0.29.1
3333
install_requires =

srsly/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.5.1"
1+
__version__ = "2.5.2"

0 commit comments

Comments
 (0)