summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-02 03:11:18 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-02 03:11:18 +0100
commit60e70ec73d4c4879308c055627c1dfdb7cefeb45 (patch)
tree7831731a82e2115a048a63eaf037c69123d0ff0d
parent0dd6d46c17d2fa92ca015e95f5e278ea090578dd (diff)
downloadcherrypy-git-60e70ec73d4c4879308c055627c1dfdb7cefeb45.tar.gz
📦 Make sure that dists are tagged as `py3`
-rw-r--r--setup.cfg13
1 files changed, 9 insertions, 4 deletions
diff --git a/setup.cfg b/setup.cfg
index 3d7a7f49..b6f7e7b6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,8 +1,13 @@
-[aliases]
-dists = clean --all sdist bdist_wheel
-
[bdist_wheel]
-universal = 1
+# NOTE: "universal = 1" causes `bdist_wheel` to create a wheel that with the
+# NOTE: tag "py2.py3" which implies (and tricks pip into thinking) that this
+# NOTE: wheel contains Python 2 compatible code. This is not true and conflicts
+# NOTE: with the "Requires-Python" field in the metadata that says that we only
+# NOTE: support Python 3.6+.
+# NOTE: We need to keep it at "0" which will produce wheels tagged with "py3"
+# NOTE: when built under Python 3.
+# Ref: https://github.com/pypa/packaging.python.org/issues/726
+universal = 0
[metadata]
license_file = LICENSE.md