mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Merge pull request #716 from cjmayo/py38
Raise minimum Python version to 3.8
This commit is contained in:
commit
91105d722a
11 changed files with 22 additions and 13 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -20,13 +20,12 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
toxenv: [py]
|
||||
include:
|
||||
- python-version: "3.7"
|
||||
- python-version: "3.8"
|
||||
toxenv: minreqs
|
||||
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Features
|
|||
Installation
|
||||
-------------
|
||||
|
||||
Python 3.7 or later is needed. Using pip to install LinkChecker:
|
||||
Python 3.8 or later is needed. Using pip to install LinkChecker:
|
||||
|
||||
``pip3 install linkchecker``
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
10.x
|
||||
|
||||
Changes:
|
||||
- Minimum Python version required is 3.8
|
||||
|
||||
|
||||
10.2.1 (released 05.12.2022)
|
||||
|
||||
Fixes
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ msgid "Introduction"
|
|||
msgstr ""
|
||||
|
||||
#: ../../src/index.rst:10
|
||||
msgid "LinkChecker is a free, `GPL <http://www.gnu.org/licenses/gpl-2.0.html>`_ licensed website validator. LinkChecker checks links in web documents or full websites. It runs on Python 3 systems, requiring Python 3.7 or later."
|
||||
msgid "LinkChecker is a free, `GPL <http://www.gnu.org/licenses/gpl-2.0.html>`_ licensed website validator. LinkChecker checks links in web documents or full websites. It runs on Python 3 systems, requiring Python 3.8 or later."
|
||||
msgstr ""
|
||||
|
||||
#: ../../src/index.rst:15
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ msgstr ""
|
|||
msgid ""
|
||||
"LinkChecker is a free, `GPL <http://www.gnu.org/licenses/gpl-2.0.html>`_ "
|
||||
"licensed website validator. LinkChecker checks links in web documents or "
|
||||
"full websites. It runs on Python 3 systems, requiring Python 3.7 or "
|
||||
"full websites. It runs on Python 3 systems, requiring Python 3.8 or "
|
||||
"later."
|
||||
msgstr ""
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Introduction
|
|||
LinkChecker is a free, `GPL <http://www.gnu.org/licenses/gpl-2.0.html>`_
|
||||
licensed website validator.
|
||||
LinkChecker checks links in web documents or full websites.
|
||||
It runs on Python 3 systems, requiring Python 3.7 or later.
|
||||
It runs on Python 3 systems, requiring Python 3.8 or later.
|
||||
|
||||
Visit the project on `GitHub <https://github.com/linkchecker/linkchecker>`_.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
Upgrading
|
||||
=========
|
||||
|
||||
Migrating from 10.2 to 10.x
|
||||
---------------------------
|
||||
Python 3.8 or newer is required.
|
||||
|
||||
Migrating from 10.1 to 10.2
|
||||
---------------------------
|
||||
Python 3.7 or newer is required.
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ Main package for link checking.
|
|||
# version checks
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3, 7, 0, 'final', 0):
|
||||
if sys.version_info < (3, 8, 0, 'final', 0):
|
||||
import platform
|
||||
|
||||
raise SystemExit(
|
||||
"This program requires Python 3.7 or later instead of %s."
|
||||
"This program requires Python 3.8 or later instead of %s."
|
||||
% platform.python_version()
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -159,8 +159,8 @@ class LinkFinder:
|
|||
base = self.base_ref
|
||||
# note: value can be None
|
||||
value = attrs.get(attr)
|
||||
rel = attrs.get('rel', '').lower()
|
||||
if tag == 'link' and ('dns-prefetch' in rel or 'preconnect' in rel):
|
||||
if tag == 'link' and (rel := attrs.get('rel', '').lower()) \
|
||||
and ('dns-prefetch' in rel or 'preconnect' in rel):
|
||||
if ':' in value:
|
||||
value = value.split(':', 1)[1]
|
||||
value = 'dns:' + value.rstrip('/')
|
||||
|
|
|
|||
|
|
@ -11,14 +11,13 @@ classifiers = [
|
|||
"Development Status :: 5 - Production/Stable",
|
||||
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
]
|
||||
|
||||
requires-python = ">=3.7"
|
||||
requires-python = ">=3.8"
|
||||
|
||||
dependencies = [
|
||||
"requests >= 2.20",
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py3{7,8,9,10,11}, minreqs
|
||||
envlist = py3{8,9,10,11}, minreqs
|
||||
|
||||
[base]
|
||||
deps =
|
||||
|
|
|
|||
Loading…
Reference in a new issue