Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.7 support. #214

Merged
merged 2 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ jobs:
strategy:
matrix:
include:
- python-version: "3.7"
- python-version: "3.8"
env:
TOXENV: docs
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: flake8
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: pylint
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: security
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: black
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: typing

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.7"]
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is a Python library of web-related functions, such as:
Requirements
============

Python 3.7+
Python 3.8+

Install
=======
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Modules
Requirements
============

Python 3.7+
Python 3.8+

Install
=======
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
include_package_data=True,
zip_safe=False,
platforms=["Any"],
python_requires=">=3.7",
python_requires=">=3.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ def test_returns_unicode(self):
assert isinstance(remove_tags(b"no tags"), str)
assert isinstance(remove_tags(b"no tags", which_ones=("p",)), str)
assert isinstance(remove_tags(b"<p>one tag</p>"), str)
assert isinstance(remove_tags(b"<p>one tag</p>", which_ones=("p")), str)
assert isinstance(remove_tags(b"<p>one tag</p>", which_ones=("p",)), str)
assert isinstance(remove_tags(b"<a>link</a>", which_ones=("b",)), str)
assert isinstance(remove_tags("no tags"), str)
assert isinstance(remove_tags("no tags", which_ones=("p",)), str)
assert isinstance(remove_tags("<p>one tag</p>"), str)
assert isinstance(remove_tags("<p>one tag</p>", which_ones=("p")), str)
assert isinstance(remove_tags("<p>one tag</p>", which_ones=("p",)), str)
assert isinstance(remove_tags("<a>link</a>", which_ones=("b",)), str)

def test_remove_tags_without_tags(self):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ commands =
[testenv:pylint]
deps =
{[testenv]deps}
pylint==2.14.2
pylint==2.17.4
commands =
pylint conftest.py docs setup.py tests w3lib

Expand Down
Loading