Skip to content

Commit

Permalink
tests: use tomli for test running with Python < 3.11
Browse files Browse the repository at this point in the history
Bug: T380697
Change-Id: I6968a9b79cd4122af1070209f01e0a8d00c35ddb
  • Loading branch information
xqt committed Nov 25, 2024
1 parent 0ffe6a0 commit 284eae4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "tomli; python_version < '3.11'"
pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
pip install packaging
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/login_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "tomli; python_version < '3.11'"
pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
pip install packaging
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oauth_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ jobs:
python -m pip install --upgrade pip
pip --version
pip install coverage
pip install "tomli; python_version < '3.11'"
pip install "importlib_metadata ; python_version < '3.8'"
pip install mwparserfromhell
# PyJWT added due to T380270
pip install "PyJWT != 2.10.0 ; python_version > '3.8'"
pip install mwoauth
pip install packaging
pip install requests
pip install "tomli >= 2.0.2; python_version < '3.11'"
- name: Generate family files
if: ${{ matrix.family == 'wpbeta' }}
Expand Down
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pytest-xvfb>=3.0.0

pre-commit
coverage>=5.2.1
# required for coverage (T380697)
tomli>=2.0.1; python_version < "3.11"


# optional but needed for tests
fake-useragent
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ rstcheck >=6.2.4
sphinxext-opengraph >= 0.9.1
sphinx-copybutton >= 0.5.2
sphinx-tabs >= 3.4.7
tomli >= 2.0.2; python_version < '3.11'
tomli >= 2.0.1; python_version < '3.11'
furo >= 2024.8.6

0 comments on commit 284eae4

Please sign in to comment.