Skip to content

Commit c3426d2

Browse files
committed
Update GH Actions
1 parent 4a19baf commit c3426d2

4 files changed

Lines changed: 42 additions & 33 deletions

File tree

.github/workflows/make_release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
types:
66
- published
77

8+
89
jobs:
910
build_wheels:
1011
name: Build wheels for ${{ matrix.os }}
@@ -20,8 +21,6 @@ jobs:
2021
runs-on: windows-latest
2122
- os: windows-arm
2223
runs-on: windows-11-arm
23-
- os: macos-intel
24-
runs-on: macos-13
2524
- os: macos-arm
2625
runs-on: macos-latest
2726

@@ -37,7 +36,7 @@ jobs:
3736

3837
- uses: actions/upload-artifact@v4
3938
with:
40-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
39+
name: cibw-wheels-${{ matrix.os }}-${{ matrix.platform}}-${{ strategy.job-index }}
4140
path: ./wheelhouse/*.whl
4241

4342

@@ -63,6 +62,9 @@ jobs:
6362
upload_pypi:
6463
needs: [build_wheels, build_sdist]
6564
runs-on: ubuntu-latest
65+
environment: release
66+
permissions:
67+
id-token: write
6668
if: github.event_name == 'release' && github.event.action == 'published'
6769
steps:
6870
- uses: actions/download-artifact@v4
@@ -72,7 +74,3 @@ jobs:
7274
merge-multiple: true
7375

7476
- uses: pypa/gh-action-pypi-publish@release/v1
75-
with:
76-
user: __token__
77-
password: ${{ secrets.pypi_password }}
78-
# To test: repository_url: https://test.pypi.org/legacy/

pyproject.toml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,46 @@ requires = [
99

1010
[project]
1111
name = 'selectolax'
12-
version = '0.3.29'
12+
version = '0.3.30'
1313
description = 'Fast HTML5 parser with CSS selectors.'
1414
readme = 'README.rst'
15-
requires-python = '>=3.8'
16-
license = {file = 'LICENSE'}
15+
requires-python = '>=3.9'
16+
license = { file = 'LICENSE' }
1717
authors = [
18-
{name = 'Artem Golubin', email = 'me@rushter.com'}
18+
{ name = 'Artem Golubin', email = 'me@rushter.com' }
1919
]
2020
dependencies = [
21-
"Cython==3.0.11",
21+
"Cython==3.0.11",
22+
]
23+
keywords = [
24+
"selectolax",
25+
"html",
26+
"parser",
27+
"css",
28+
"fast",
29+
]
30+
classifiers = [
31+
"Development Status :: 5 - Production/Stable",
32+
"Topic :: Text Processing :: Markup :: HTML",
33+
"Topic :: Internet",
34+
"Topic :: Internet :: WWW/HTTP",
35+
"Intended Audience :: Developers",
36+
"License :: OSI Approved :: MIT License",
37+
"Natural Language :: English",
38+
"Programming Language :: Python :: 3",
39+
"Programming Language :: Python :: 3.9",
40+
"Programming Language :: Python :: 3.10",
41+
"Programming Language :: Python :: 3.11",
42+
"Programming Language :: Python :: 3.12",
43+
"Programming Language :: Python :: 3.13",
2244
]
2345

46+
[project.urls]
47+
Repository = "https://github.com/rushter/selectolax"
48+
Documentation = "https://selectolax.readthedocs.io/en/latest/parser.html"
49+
Changelog = "https://github.com/rushter/selectolax/blob/main/CHANGES.rst"
50+
51+
2452
[tool.cibuildwheel]
2553
build-frontend = "build"
2654
build-verbosity = 1

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ replace = version='{new_version}'
1111
search = __version__ = '{current_version}'
1212
replace = __version__ = '{new_version}'
1313

14+
[bumpversion:file:pyproject.toml]
15+
search = version = '{current_version}'
16+
replace = version = '{new_version}'
17+
1418
[bdist_wheel]
1519
universal = 1
1620

setup.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -181,30 +181,9 @@ def make_extensions():
181181
},
182182
license="MIT license",
183183
zip_safe=False,
184-
keywords="selectolax",
185-
classifiers=[
186-
"Development Status :: 5 - Production/Stable",
187-
"Topic :: Text Processing :: Markup :: HTML",
188-
"Topic :: Internet",
189-
"Topic :: Internet :: WWW/HTTP",
190-
"Intended Audience :: Developers",
191-
"License :: OSI Approved :: MIT License",
192-
"Natural Language :: English",
193-
"Programming Language :: Python :: 3",
194-
"Programming Language :: Python :: 3.7",
195-
"Programming Language :: Python :: 3.8",
196-
"Programming Language :: Python :: 3.9",
197-
"Programming Language :: Python :: 3.10",
198-
"Programming Language :: Python :: 3.11",
199-
"Programming Language :: Python :: 3.12",
200-
"Programming Language :: Python :: 3.13",
201-
],
202184
test_suite="tests",
203185
tests_require=[
204186
"pytest",
205187
],
206-
project_urls={
207-
"Source code": "https://github.com/rushter/selectolax",
208-
},
209188
ext_modules=make_extensions(),
210189
)

0 commit comments

Comments
 (0)