summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbr/util.py3
-rw-r--r--releasenotes/notes/use_2to3-removal-ac48bf9fbfa049b1.yaml9
2 files changed, 10 insertions, 2 deletions
diff --git a/pbr/util.py b/pbr/util.py
index 89f5088..6e8d231 100644
--- a/pbr/util.py
+++ b/pbr/util.py
@@ -128,7 +128,6 @@ D1_D2_SETUP_ARGS = {
"cmdclass": ("global", "commands"),
# Not supported in distutils2, but provided for
# backwards compatibility with setuptools
- "use_2to3": ("backwards_compat", "use_2to3"),
"zip_safe": ("backwards_compat", "zip_safe"),
"tests_require": ("backwards_compat", "tests_require"),
"dependency_links": ("backwards_compat",),
@@ -158,7 +157,7 @@ MULTI_FIELDS = ("classifiers",
MAP_FIELDS = ("project_urls",)
# setup() arguments that contain boolean values
-BOOL_FIELDS = ("use_2to3", "zip_safe", "include_package_data")
+BOOL_FIELDS = ("zip_safe", "include_package_data")
CSV_FIELDS = ()
diff --git a/releasenotes/notes/use_2to3-removal-ac48bf9fbfa049b1.yaml b/releasenotes/notes/use_2to3-removal-ac48bf9fbfa049b1.yaml
new file mode 100644
index 0000000..e0e34ca
--- /dev/null
+++ b/releasenotes/notes/use_2to3-removal-ac48bf9fbfa049b1.yaml
@@ -0,0 +1,9 @@
+---
+other:
+ - |
+ The 2to3 conversion utility has been long discouraged in favor of writing
+ multi-version-capable scripts. As of Setuptools 46.2.0 it's deprecated and
+ slated for removal from the Python 3.10 standard library. Projects which
+ still need it are encouraged to perform conversion prior to packaging. See
+ https://bugs.python.org/issue40360 and
+ https://github.com/pypa/setuptools/issues/2086 for more details.