GeezerVison is showing github.com — GitPython wheel includes "py2" in filename, but doesn't support Python 2 · Issue #898 · gitpython-developers/GitPython
GitPython wheel includes "py2" in filename, but doesn't support Python 2 #898DescriptionI'm not sure the proper conventions for using wheel to distribute packages, but the current artifact on PyPI is called GitPython-2.1.12-py2.py3-none-any.whl, implying support for Python 2. Although it's true that the "Meta" section on PyPI specifies Python >=3.0.
Is it possible to configure wheel to name it just with py3 instead? Activityolivierlefloch commented on Jul 23, 2019 stsewd commented on Jul 27, 2019 Byron commented on Jul 29, 2019 @olivierlefloch I absolutely agree, and apologies, and I have just released v2.1.13 which returns python 2 support.
I am trying to cut a new release v3.0.0 which removes python 2 support, if I can manage to figure out all the places to edit to make that happen. For now I don't know how to turn off the py2. part in the whl filename, but I will keep trying 😅. Reacted by Santos Gallegos dstine commented on Jul 29, 2019 @Byron
I did a quick experiment on the tip of master, and it appears that if you update setup.cfg to
[bdist_wheel]
universal=0
then the python tag will be just py3 instead of py2.py3 and the resulting wheel filename is GitPython-2.1.13-py3-none-any.whl. Assuming you are building with Python 3.
You would still want to update setup.py as you did before, to change python_requires and classifiers. Byron commented on Aug 11, 2019 Perfect, this works. Thanks so much, @dstine
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|