From c090fc118e14828778fd438ffb0409c25e1837ce Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 5 Jul 2023 21:32:43 +0400 Subject: [PATCH 1/2] Drop Python 3.7 support. --- .github/workflows/build.yml | 12 ++++++------ .github/workflows/tests.yml | 2 +- README.rst | 2 +- docs/index.rst | 2 +- setup.py | 3 +-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee3f8e52..1af683ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 031ee7b2..dc9b9580 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/README.rst b/README.rst index 56641830..00b447d4 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ This is a Python library of web-related functions, such as: Requirements ============ -Python 3.7+ +Python 3.8+ Install ======= diff --git a/docs/index.rst b/docs/index.rst index aa1c851f..c30d6a59 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -28,7 +28,7 @@ Modules Requirements ============ -Python 3.7+ +Python 3.8+ Install ======= diff --git a/setup.py b/setup.py index 9d9b2fca..1e23ecd5 100644 --- a/setup.py +++ b/setup.py @@ -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", From 6e158ac09909a4c13494522017b4307716b449c4 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 5 Jul 2023 21:45:51 +0400 Subject: [PATCH 2/2] Bump pylint. --- tests/test_html.py | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_html.py b/tests/test_html.py index 1cabf6de..cf4ec030 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -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"

one tag

"), str) - assert isinstance(remove_tags(b"

one tag

", which_ones=("p")), str) + assert isinstance(remove_tags(b"

one tag

", which_ones=("p",)), str) assert isinstance(remove_tags(b"link", 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("

one tag

"), str) - assert isinstance(remove_tags("

one tag

", which_ones=("p")), str) + assert isinstance(remove_tags("

one tag

", which_ones=("p",)), str) assert isinstance(remove_tags("link", which_ones=("b",)), str) def test_remove_tags_without_tags(self): diff --git a/tox.ini b/tox.ini index 862ae702..40c0ec1a 100644 --- a/tox.ini +++ b/tox.ini @@ -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