Skip to content

Commit 5ba232f

Browse files
author
mvaught
committed
drop python2 and legacy support
1 parent ec7d172 commit 5ba232f

File tree

17 files changed

+608
-965
lines changed

17 files changed

+608
-965
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Install Python
7070
uses: actions/setup-python@v1
7171
with:
72-
python-version: "3.9"
72+
python-version: "3.14"
7373

7474
- name: Install Tox
7575
run: pip install tox;
@@ -93,7 +93,7 @@ jobs:
9393
- name: Install Python
9494
uses: actions/setup-python@v1
9595
with:
96-
python-version: "3.9"
96+
python-version: "3.14"
9797

9898
- name: Install Tox
9999
run: pip install tox;
@@ -116,7 +116,7 @@ jobs:
116116
- name: Install Python
117117
uses: actions/setup-python@v1
118118
with:
119-
python-version: "3.9"
119+
python-version: "3.14"
120120

121121
- name: Install Tox
122122
run: pip install tox;
@@ -140,7 +140,7 @@ jobs:
140140
- name: Install Python
141141
uses: actions/setup-python@v1
142142
with:
143-
python-version: "3.9"
143+
python-version: "3.14"
144144

145145
- name: Install Tox
146146
run: pip install tox;
@@ -163,7 +163,7 @@ jobs:
163163
- name: Install Python
164164
uses: actions/setup-python@v1
165165
with:
166-
python-version: "3.9"
166+
python-version: "3.14"
167167

168168
- name: Install Tox
169169
run: pip install tox;
@@ -181,7 +181,7 @@ jobs:
181181
timeout-minutes: 30
182182
strategy:
183183
matrix:
184-
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy2", "pypy3"]
184+
python: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3"]
185185

186186
steps:
187187

docs/design.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ constructed, instances are not changed. Methods like
6464
all return new URL objects. This enables URLs to be used in sets, as
6565
well as dictionary keys.
6666

67-
.. _immutable: https://docs.python.org/2/glossary.html#term-immutable
67+
.. _immutable: https://docs.python.org/3/glossary.html#term-immutable
6868
.. _multidict: https://en.wikipedia.org/wiki/Multimap
6969
.. _query string: https://en.wikipedia.org/wiki/Query_string
7070
.. _GET parameters: http://php.net/manual/en/reserved.variables.get.php

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hyperlink
1010
URLs. Based on `RFC 3986`_ and `RFC 3987`_, the Hyperlink URL balances
1111
simplicity and correctness for both :ref:`URIs and IRIs <uris_and_iris>`.
1212

13-
Hyperlink is tested against Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, and PyPy.
13+
Hyperlink is tested against Python 3.10, 3.11, 3.12, 3.13, 3.14, and PyPy.
1414

1515
For an introduction to the hyperlink library, its background, and URLs
1616
in general, see `this talk from PyConWeb 2017`_ (and `the accompanying

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ build-backend = "setuptools.build_meta"
77
[tool.black]
88

99
line-length = 80
10-
target-version = ["py27"]
10+
target-version = ["py310"]

setup.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,19 @@
3131
zip_safe=False,
3232
license=__license__,
3333
platforms="any",
34-
install_requires=["idna>=2.5", 'typing ; python_version<"3.5"'],
35-
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
34+
install_requires=["idna>=3.0"],
35+
python_requires=">=3.10",
3636
classifiers=[
3737
"Topic :: Utilities",
3838
"Intended Audience :: Developers",
3939
"Topic :: Software Development :: Libraries",
4040
"Development Status :: 5 - Production/Stable",
41-
"Programming Language :: Python :: 2",
42-
"Programming Language :: Python :: 2.6",
43-
"Programming Language :: Python :: 2.7",
4441
"Programming Language :: Python :: 3",
45-
"Programming Language :: Python :: 3.4",
46-
"Programming Language :: Python :: 3.5",
47-
"Programming Language :: Python :: 3.6",
48-
"Programming Language :: Python :: 3.7",
49-
"Programming Language :: Python :: 3.8",
50-
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
43+
"Programming Language :: Python :: 3.11",
44+
"Programming Language :: Python :: 3.12",
45+
"Programming Language :: Python :: 3.13",
46+
"Programming Language :: Python :: 3.14",
5147
"Programming Language :: Python :: Implementation :: PyPy",
5248
"License :: OSI Approved :: MIT License",
5349
],

src/hyperlink/_socket.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)