Merge ~cjwatson/lazr.restful:drop-py2 into lazr.restful:main

Proposed by Colin Watson
Status: Merged
Merged at revision: 0cd284372fa57df10f5b79f89d98e4c8c456b8ff
Proposed branch: ~cjwatson/lazr.restful:drop-py2
Merge into: lazr.restful:main
Prerequisite: ~cjwatson/lazr.restful:rst-include
Diff against target: 44 lines (+2/-3)
3 files modified
NEWS.rst (+1/-0)
setup.py (+1/-2)
tox.ini (+0/-1)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Review via email: mp+413598@code.launchpad.net

Commit message

Drop Python 2 support

Description of the change

This just updates metadata. There's a lot of code to update or remove, but I'll do that separately, allowing pyupgrade to do the bulk of the work.

To post a comment you must log in.
Revision history for this message
Jürgen Gmach (jugmac00) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/NEWS.rst b/NEWS.rst
2index 74ee44e..c9dff29 100644
3--- a/NEWS.rst
4+++ b/NEWS.rst
5@@ -19,6 +19,7 @@ NEWS for lazr.restful
6 ``lazr.restful.testing.webservice.DummyRootResourceURL``
7 => ``lazr.restful.testing.webservice.StubRootResourceURL``
8 - Apply black code formatter via pre-commit.
9+- Drop Python 2 support.
10
11 1.1.0 (2021-10-07)
12 ==================
13diff --git a/setup.py b/setup.py
14index 71f4fd8..7f0ed89 100755
15--- a/setup.py
16+++ b/setup.py
17@@ -88,8 +88,6 @@ setup(
18 "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", # noqa: E501
19 "Operating System :: OS Independent",
20 "Programming Language :: Python",
21- "Programming Language :: Python :: 2",
22- "Programming Language :: Python :: 2.7",
23 "Programming Language :: Python :: 3",
24 "Programming Language :: Python :: 3.5",
25 "Programming Language :: Python :: 3.6",
26@@ -105,5 +103,6 @@ setup(
27 "lxml",
28 ], # requiring this of normal users is too much
29 ),
30+ python_requires=">=3.5",
31 test_suite="lazr.restful.tests",
32 )
33diff --git a/tox.ini b/tox.ini
34index 4030fe5..c191378 100644
35--- a/tox.ini
36+++ b/tox.ini
37@@ -1,7 +1,6 @@
38 [tox]
39 envlist =
40 lint
41- py27
42 py35
43 py36
44 py37

Subscribers

People subscribed via source and target branches