Skip to content

Commit e0e02e2

Browse files
authored
Merge pull request #214 from scrapy/drop-3.7
Drop Python 3.7 support.
2 parents af8ed20 + 6e158ac commit e0e02e2

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ jobs:
1515
strategy:
1616
matrix:
1717
include:
18-
- python-version: "3.7"
18+
- python-version: "3.8"
1919
env:
2020
TOXENV: docs
21-
- python-version: "3.10"
21+
- python-version: "3.11"
2222
env:
2323
TOXENV: flake8
24-
- python-version: "3.10"
24+
- python-version: "3.11"
2525
env:
2626
TOXENV: pylint
27-
- python-version: "3.10"
27+
- python-version: "3.11"
2828
env:
2929
TOXENV: security
30-
- python-version: "3.10"
30+
- python-version: "3.11"
3131
env:
3232
TOXENV: black
33-
- python-version: "3.10"
33+
- python-version: "3.11"
3434
env:
3535
TOXENV: typing
3636

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
1818

1919
steps:
2020
- uses: actions/checkout@v3

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is a Python library of web-related functions, such as:
2727
Requirements
2828
============
2929

30-
Python 3.7+
30+
Python 3.8+
3131

3232
Install
3333
=======

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Modules
2828
Requirements
2929
============
3030

31-
Python 3.7+
31+
Python 3.8+
3232

3333
Install
3434
=======

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121
include_package_data=True,
2222
zip_safe=False,
2323
platforms=["Any"],
24-
python_requires=">=3.7",
24+
python_requires=">=3.8",
2525
classifiers=[
2626
"Development Status :: 5 - Production/Stable",
2727
"License :: OSI Approved :: BSD License",
2828
"Operating System :: OS Independent",
2929
"Programming Language :: Python",
3030
"Programming Language :: Python :: 3",
31-
"Programming Language :: Python :: 3.7",
3231
"Programming Language :: Python :: 3.8",
3332
"Programming Language :: Python :: 3.9",
3433
"Programming Language :: Python :: 3.10",

tests/test_html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ def test_returns_unicode(self):
160160
assert isinstance(remove_tags(b"no tags"), str)
161161
assert isinstance(remove_tags(b"no tags", which_ones=("p",)), str)
162162
assert isinstance(remove_tags(b"<p>one tag</p>"), str)
163-
assert isinstance(remove_tags(b"<p>one tag</p>", which_ones=("p")), str)
163+
assert isinstance(remove_tags(b"<p>one tag</p>", which_ones=("p",)), str)
164164
assert isinstance(remove_tags(b"<a>link</a>", which_ones=("b",)), str)
165165
assert isinstance(remove_tags("no tags"), str)
166166
assert isinstance(remove_tags("no tags", which_ones=("p",)), str)
167167
assert isinstance(remove_tags("<p>one tag</p>"), str)
168-
assert isinstance(remove_tags("<p>one tag</p>", which_ones=("p")), str)
168+
assert isinstance(remove_tags("<p>one tag</p>", which_ones=("p",)), str)
169169
assert isinstance(remove_tags("<a>link</a>", which_ones=("b",)), str)
170170

171171
def test_remove_tags_without_tags(self):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ commands =
4242
[testenv:pylint]
4343
deps =
4444
{[testenv]deps}
45-
pylint==2.14.2
45+
pylint==2.17.4
4646
commands =
4747
pylint conftest.py docs setup.py tests w3lib
4848

0 commit comments

Comments
 (0)