From a5be5a3accd35f4c5a3b3021c703030f73ba4a00 Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Oct 22 2022 17:04:38 +0000 Subject: Drop support for Python 2 from the build process Update `setup.cfg` so it does not build a Python 2 wheel and update `setup.py` so that package metadata will correctly express Python 3+ only support. Due to the way this package is written trying to install from the source tarball on Python 2 will result in an exception due to attempted import of the UTF-8 version.py file. --- diff --git a/setup.cfg b/setup.cfg index 1b14719..1fd4a05 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ distribute = register sdist bdist_wheel upload [bdist_wheel] # Build a single “universal wheel” (for Python 2 and Python 3)? -universal = true +universal = 0 [upload] diff --git a/setup.py b/setup.py index 4c0db48..bc7cc17 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ setup_kwargs = dict( # Setuptools metadata. zip_safe=False, + python_requires=">=3", setup_requires=[ "docutils", ],