Skip to content

Commit

Permalink
chore: Refresh proj deps, use fixed vers for tox test
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcheung committed Apr 14, 2024
1 parent eafb9ca commit 8335d33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme = 'README.md'
requires-python = '>=3.8'
license = {text = 'Apache-2.0'}
dependencies = [
'types-beautifulsoup4',
'types-beautifulsoup4 ~= 4.12',
'typing_extensions ~= 4.5',
'cssselect ~= 1.2' # cssselect uses inline annotation
]
Expand Down Expand Up @@ -44,8 +44,9 @@ test = [
'typeguard >= 3.0, < 5',
'pytest >= 7.0, < 9',
'html5lib == 1.1',
'pytest-mypy-plugins ~= 1.10, != 1.10.0',
'lxml == 5.1.*',
'pytest-mypy-plugins == 1.11.1',
'lxml >= 4.9',
'beautifulsoup4 ~= 4.8'
]

[tool.pdm.version]
Expand Down
22 changes: 11 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ python =

[common_dep]
deps =
types-beautifulsoup4
typing_extensions ~= 4.5
cssselect ~= 1.2
types-beautifulsoup4 == 4.12.0.20240229
typing_extensions == 4.11.0
cssselect == 1.2.0

[stub_test_dep]
deps =
{[common_dep]deps}
mypy == 1.9.*
pytest-mypy-plugins ~= 1.10, != 1.10.0
mypy == 1.9.0
pytest-mypy-plugins == 1.11.1

[testenv:py{38,39,310,311,312}-stub]
deps = {[stub_test_dep]deps}
Expand All @@ -31,14 +31,14 @@ commands =
[testenv:py{310,311,312}-rt-lxml{49,50,51,52}]
deps =
{[testenv:pyright]deps}
typeguard >= 3.0, < 5
pytest >= 7.0, < 9
typeguard == 4.2.1
pytest == 8.1.1
html5lib == 1.1
beautifulsoup4 ~= 4.8 # or even earlier?
beautifulsoup4 == 4.12.3
py{310,311,312}-rt-lxml49: lxml == 4.9.4
py{310,311,312}-rt-lxml50: lxml == 5.0.2
py{310,311,312}-rt-lxml51: lxml == 5.1.1
py{310,311,312}-rt-lxml52: lxml == 5.2.0
py{310,311,312}-rt-lxml52: lxml == 5.2.1
setenv =
PYTHONUTF8 = 1
commands =
Expand All @@ -48,14 +48,14 @@ commands =
[testenv:mypy]
deps =
{[common_dep]deps}
mypy == 1.9.*
mypy == 1.9.0
package = skip
commands = mypy {posargs:lxml-stubs}

[testenv:pyright]
deps =
{[common_dep]deps}
pyright >= 1.1.289
pyright == 1.1.358
package = skip
commands = pyright {posargs:lxml-stubs}

Expand Down

0 comments on commit 8335d33

Please sign in to comment.