GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #898

New issue
Copy link
New issue
Copy link
Closed
Closed
GitPython wheel includes "py2" in filename, but doesn't support Python 2#898
Copy link
Assignees
Byron
Labels
acknowledged
Milestone
v3.0.0 - Remove Python 2

Description

@toddmowen
toddmowen
opened on Jul 22, 2019
Issue body actions

I'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?

Activity

  1. olivierlefloch commented on Jul 23, 2019

    @olivierlefloch
    olivierlefloch
    on Jul 23, 2019
    More actions

    2.1.12 specifies

    Requires-Python: >=3.0, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
    

    2.1.11 specifies

    Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
    

    The changelog however does not mention removal of 2.7 support:

    https://github.com/gitpython-developers/GitPython/blob/master/doc/source/changes.rst#2112---bugfixes-and-features

    Python 2.7 support was dropped in #312

    Perhaps doing this in a patch version was a bit heavy handed?

  2. stsewd commented on Jul 27, 2019

    @stsewd
    stsewd
    on Jul 27, 2019
    Contributor
    More actions

    BTW, python 2 support was kind of dropped in 2.1.11 7f08b77#diff-c276fc3c4df38382ec884e59657b869dR125 (when using a unicode branch/tag name that will fail)

  3. Byron commented on Jul 29, 2019

    @Byron
    Byron
    on Jul 29, 2019
    Member
    More actions

    @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
  4. Byron
    added
    acknowledged
    on Jul 29, 2019
  5. Byron
    self-assigned this
    on Jul 29, 2019
  6. dstine commented on Jul 29, 2019

    @dstine
    dstine
    on Jul 29, 2019
    More actions

    @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.

  7. ghost added a commit that references this issue on Aug 11, 2019

    Avoid creating python 2 release

    acbd5c0
  8. Byron
    added this to the v3.0.0 - Remove Python 2 milestone on Aug 11, 2019
  9. Byron commented on Aug 11, 2019

    @Byron
    Byron
    on Aug 11, 2019
    Member
    More actions

    Perfect, this works. Thanks so much, @dstine

    Reacted by Dan Stine
  10. Byron
    closed this as completedon Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Byron
    Byron

Labels

acknowledged

Type

No type

Projects

No projects

    Milestone

    • v3.0.0 - Remove Python 2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.