|
From: <mi...@us...> - 2023-06-24 20:50:42
|
Revision: 9406
http://sourceforge.net/p/docutils/code/9406
Author: milde
Date: 2023-06-24 20:50:32 +0000 (Sat, 24 Jun 2023)
Log Message:
-----------
Drop support for Python 3.7 and 3.8.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/README.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/dev/distributing.txt
trunk/docutils/docutils/io.py
trunk/docutils/setup.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/HISTORY.txt 2023-06-24 20:50:32 UTC (rev 9406)
@@ -17,16 +17,18 @@
Changes since 0.20.1
====================
+* Drop support for Python 3.7 and 3.8.
+
* docutils/io.py
-* Simpler and more secure `input encoding`_ default behaviour:
+ - Simpler and more secure `input encoding`_ default behaviour:
- Do not use the locale encoding as fallback if Python is started in
- `UTF-8 mode`_. Stop using "latin1" as second fallback.
+ Do not use the locale encoding as fallback if Python is started in
+ `UTF-8 mode`_. Stop using "latin1" as second fallback.
- Remove BOM (U+FEFF ZWNBSP at start of data) only if the `input_encoding`_
- configuration setting is None, '', 'utf-8-sig', 'utf-16', or 'utf-32'.
- Do not remove other ZWNBSPs.
+ Remove BOM (U+FEFF ZWNBSP at start of data) only if the `input_encoding`_
+ configuration setting is None, '', 'utf-8-sig', 'utf-16', or 'utf-32'.
+ Do not remove other ZWNBSPs.
.. _input encoding: docs/api/publisher.html#encodings
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/README.txt 2023-06-24 20:50:32 UTC (rev 9406)
@@ -74,8 +74,9 @@
To run the code, Python_ must be installed.
(Python is pre-installed with most Linux distributions.)
-* Since version 0.19, Docutils requires Python 3.7 or later.
-* Docutils 0.16 to 0.18 require Python 2.7 or 3.5+.
+* Since version 0.21, Docutils requires Python 3.9 or later.
+* Docutils versions 0.19 to 0.20.1 require Python 3.7 or later.
+* Docutils versions 0.16 to 0.18 require Python 2.7 or 3.5+.
.. _Python: https://www.python.org/.
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/RELEASE-NOTES.txt 2023-06-24 20:50:32 UTC (rev 9406)
@@ -20,8 +20,6 @@
Future changes
==============
-Drop support for Python 3.7 and 3.8 in Docutils 0.21.
-
Command line interface
----------------------
@@ -214,6 +212,8 @@
Release 0.21b (unpublished)
===========================
+* Drop support for Python 3.7 and 3.8.
+
* Simpler and more secure `input encoding`_ default behaviour:
Do not use the locale encoding as fallback if Python is started in
Modified: trunk/docutils/docs/dev/distributing.txt
===================================================================
--- trunk/docutils/docs/dev/distributing.txt 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/docs/dev/distributing.txt 2023-06-24 20:50:32 UTC (rev 9406)
@@ -30,8 +30,8 @@
Docutils has the following dependencies:
-* Python 3.7 or later is required.
- Use ">= Python 3.7" in the dependencies.
+* Python 3.9 or later is required.
+ Use ">= Python 3.9" in the dependencies.
* Docutils may optionally make use of the PIL (`Python Imaging
Library`_ or Pillow_). If PIL is present, it is automatically
Modified: trunk/docutils/docutils/io.py
===================================================================
--- trunk/docutils/docutils/io.py 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/docutils/io.py 2023-06-24 20:50:32 UTC (rev 9406)
@@ -32,14 +32,6 @@
_locale_encoding = (locale.getlocale()[1]
or locale.getdefaultlocale()[1])
_locale_encoding = _locale_encoding.lower()
-except ValueError as error: # OS X may set UTF-8 without language code
- # See https://bugs.python.org/issue18378 fixed in 3.8
- # and https://sourceforge.net/p/docutils/bugs/298/.
- # Drop the special case after requiring Python >= 3.8
- if "unknown locale: UTF-8" in error.args:
- _locale_encoding = "utf-8"
- else:
- _locale_encoding = None
except: # noqa any other problems determining the locale -> use None
_locale_encoding = None
try:
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2023-06-24 20:50:08 UTC (rev 9405)
+++ trunk/docutils/setup.py 2023-06-24 20:50:32 UTC (rev 9406)
@@ -40,7 +40,7 @@
'maintainer_email': 'doc...@li...',
'license': 'public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt)',
'platforms': 'OS-independent',
- 'python_requires': '>=3.7',
+ 'python_requires': '>=3.9',
'include_package_data': True,
'exclude_package_data': {"": ["docutils.conf"]},
'package_dir': {
@@ -100,8 +100,6 @@
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
- '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',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|