diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2023-01-02 03:11:18 +0100 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2023-01-02 03:11:18 +0100 |
commit | 60e70ec73d4c4879308c055627c1dfdb7cefeb45 (patch) | |
tree | 7831731a82e2115a048a63eaf037c69123d0ff0d | |
parent | 0dd6d46c17d2fa92ca015e95f5e278ea090578dd (diff) | |
download | cherrypy-git-60e70ec73d4c4879308c055627c1dfdb7cefeb45.tar.gz |
📦 Make sure that dists are tagged as `py3`
-rw-r--r-- | setup.cfg | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |