File tree 8 files changed +28
-32
lines changed
8 files changed +28
-32
lines changed Original file line number Diff line number Diff line change 11
11
- python-version : 3.13
12
12
env :
13
13
TOXENV : pylint
14
- - python-version : 3.12 # Keep in sync with .readthedocs.yml
14
+ - python-version : 3.13 # Keep in sync with .readthedocs.yml
15
15
env :
16
16
TOXENV : docs
17
17
- python-version : 3.13
Original file line number Diff line number Diff line change 1
1
name : Publish
2
- on : [push]
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v[0-9]+.[0-9]+.[0-9]+'
3
6
4
7
jobs :
5
8
publish :
6
9
runs-on : ubuntu-latest
7
- if : startsWith(github.event.ref, 'refs/tags/')
10
+
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/p/cssselect
14
+
15
+ permissions :
16
+ id-token : write
8
17
9
18
steps :
10
19
- uses : actions/checkout@v4
11
20
12
- - name : Set up Python 3.13
21
+ - name : Set up Python
13
22
uses : actions/setup-python@v5
14
23
with :
15
24
python-version : 3.13
16
25
17
- - name : Check Tag
18
- id : check-release-tag
26
+ - name : Build
19
27
run : |
20
- if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$ ]]; then
21
- echo ::set-output name=release_tag::true
22
- fi
28
+ python -m pip install --upgrade build
29
+ python -m build
23
30
24
31
- name : Publish to PyPI
25
- if : steps.check-release-tag.outputs.release_tag == 'true'
26
- run : |
27
- pip install --upgrade setuptools wheel twine
28
- python setup.py sdist bdist_wheel
29
- export TWINE_USERNAME=__token__
30
- export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
31
- twine upload dist/*
32
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.9.4
3
+ rev : v0.9.10
4
4
hooks :
5
5
- id : ruff
6
6
args : [ --fix ]
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ sphinx:
4
4
configuration : docs/conf.py
5
5
fail_on_warning : true
6
6
build :
7
- os : ubuntu-22 .04
7
+ os : ubuntu-24 .04
8
8
tools :
9
9
# For available versions, see:
10
10
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
11
- python : " 3.12 " # Keep in sync with .github/workflows/checks.yml
11
+ python : " 3.13 " # Keep in sync with .github/workflows/checks.yml
12
12
python :
13
13
install :
14
14
- requirements : docs/requirements.txt
Original file line number Diff line number Diff line change 1
- include AUTHORS CHANGES LICENSE README.rst tox.ini .coveragerc cssselect/py.typed
1
+ include AUTHORS CHANGES LICENSE README.rst tox.ini cssselect/py.typed
2
2
recursive-include docs *
3
3
recursive-include tests *
4
4
prune docs/_build
Original file line number Diff line number Diff line change 1
- sphinx == 7 .2.6
2
- sphinx-rtd-theme == 2 .0.0
1
+ sphinx == 8 .2.3
2
+ sphinx-rtd-theme == 3 .0.2
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ exclude_also = [
18
18
" if TYPE_CHECKING:" ,
19
19
]
20
20
21
- [tool .mypy ]
22
- check_untyped_defs = true
23
- ignore_missing_imports = true
24
- no_warn_no_return = true
25
-
26
21
[tool .pylint .MASTER ]
27
22
persistent = " no"
28
23
extension-pkg-allow-list = [" lxml" ]
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ commands =
16
16
[testenv:pylint]
17
17
deps =
18
18
{[testenv]deps}
19
- pylint ==3.3.4
19
+ pylint ==3.3.5
20
20
commands =
21
21
pylint {posargs: cssselect setup.py tests docs}
22
22
@@ -30,8 +30,8 @@ commands =
30
30
[testenv:typing]
31
31
deps =
32
32
{[testenv]deps}
33
- mypy ==1.14.1
34
- types-lxml ==2024.12.13
33
+ mypy ==1.15.0
34
+ types-lxml ==2025.3.4
35
35
commands =
36
36
mypy --strict {posargs: cssselect tests}
37
37
@@ -43,8 +43,8 @@ skip_install = true
43
43
[testenv:twinecheck]
44
44
basepython = python3
45
45
deps =
46
- twine ==5 .1.1
47
- build ==1.2.2
46
+ twine ==6 .1.0
47
+ build ==1.2.2.post1
48
48
commands =
49
49
python -m build --sdist
50
50
twine check dist/*
You can’t perform that action at this time.
0 commit comments