jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
tests: install fake_useragent != 2.0.0

Bug: T381715
Change-Id: Ieb1e1a363a455777a225d30442b7e3f623b84f29
---
M .github/workflows/pywikibot-ci.yml
M .github/workflows/sysop_write_tests-ci.yml
M .github/workflows/windows_tests.yml
M dev-requirements.txt
M setup.py
5 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index c639641..0c9e7da 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -82,7 +82,6 @@
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') }}
diff --git a/.github/workflows/sysop_write_tests-ci.yml b/.github/workflows/sysop_write_tests-ci.yml
index 6b7cec1..a840945 100644
--- a/.github/workflows/sysop_write_tests-ci.yml
+++ b/.github/workflows/sysop_write_tests-ci.yml
@@ -44,7 +44,6 @@
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: |
diff --git a/.github/workflows/windows_tests.yml b/.github/workflows/windows_tests.yml
index 650fad0..1abdf46 100644
--- a/.github/workflows/windows_tests.yml
+++ b/.github/workflows/windows_tests.yml
@@ -53,7 +53,6 @@
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: |
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 60cc9e9..836d1b9 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -15,4 +15,4 @@


# optional but needed for tests
-fake-useragent
+fake-useragent != 2.0.0
diff --git a/setup.py b/setup.py
index 6c6e4c2..a3505b2 100755
--- a/setup.py
+++ b/setup.py
@@ -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'],
}



To view, visit change 1101811. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ieb1e1a363a455777a225d30442b7e3f623b84f29
Gerrit-Change-Number: 1101811
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot