Skip to content

Commit

Permalink
Merge "tests: install fake_useragent != 2.0.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Dec 10, 2024
2 parents 64f5a89 + c9a5613 commit 1d2260f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pywikibot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install wikitextparser
pip install "fake_useragent != 2.0.0; python_version=='3.8'"
- name: Install setuptools
if: ${{ (matrix.python-version >= '3.12') || (matrix.os == 'macOS-latest') }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sysop_write_tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
pip --version
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install "fake_useragent != 2.0.0; python_version=='3.8'"
- name: Generate user files
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/windows_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
pip install -r dev-requirements.txt
pip install -r requirements.txt
pip install wikitextparser
pip install "fake_useragent != 2.0.0; python_version=='3.8'"
- name: Generate user files
run: |
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ tomli>=2.0.1; python_version < "3.11"


# optional but needed for tests
fake-useragent
fake-useragent != 2.0.0
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@
'mwoauth!=0.3.1,>=0.2.4',
],
'html': ['beautifulsoup4>=4.7.1'],
'http': [
'fake-useragent>=1.4.0; python_version > "3.8"',
'fake-useragent>=1.4.0, < 2.0.0; python_version < "3.9"', # T381715
],
'http': ['fake-useragent != 2.0.0'],
}


Expand Down

0 comments on commit 1d2260f

Please sign in to comment.