-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace pep425tags w/ packaging.tags #6908
Comments
Are there any plans to add type annotations to packaging.tags? pep425tags is one of the modules in pip that is fully annotated, so it’d be nice to at least stay the same on that front.. |
Also, do you recall the date / commit hash when packaging.tags was forked from pep425tags? That would let people review the changes to pep425tags since then to make it easier to see that feature parity is being preserved. |
Another thing that's needed is being able to generate tags for a different platform/version/implementation/abi, IIUC.
And noarch, for only generating "none" tags. |
We also probably want a new release of |
@cjerdonek no specific plans for type annotations, but I personally have no issue adding them. Probably a broader question of whether 'packaging' itself wants to go down the route of adding type annotations. As for when it was forked, it was never actually forked. 😄 I wrote packaging.tags from scratch and tried to match the semantics of pep425tags as reasonable but also expand them where I thought it was falling short. But if you want a rough date, probably Dec 14, 2018 when I created the PR. But I did check earlier this week whether there were tag differences at least on Windows and I fixed the one critical case. @pradyunsg expanding the API to allow for that wouldn't be hard. First pass on the module specifically kept the API small. If you want me to start thinking about how to let @di I assumed a release would be made when pip was ready to roll up everything that has gone in at this point. For me the key point of doing this issue was to make sure folks like @cjerdonek were aware that packaging.tags existed so if something happened to pep425tags it could also get flagged down to packaging.tags. |
@brettcannon I think that would be a good idea. I don't think all of Also, in terms of behavior and features, are there any differences with pip/src/pip/_internal/pep425tags.py Lines 93 to 98 in 2985efe
but packaging.tags doesn't seem to do any logging.
PS - I added a link to |
Done! Here it is: pypa/packaging#187 |
I don't think this'd be finished before the next release cycle of pip TBH. So, the lack of a packaging release isn't a major concern to me. I'm pretty sure we'll get to it before this. ^>^ |
Now that pypa/packaging#186 is merged, I am actually hoping to do this before the next release cycle, so we can get |
I also created an issue for adding type annotations to |
I'm not opposed - I just don't know if/when folks would be putting in the time to work on this, since as you can see, there's more details to figure out, for making this replacement of pep425tags. :) |
@cjerdonek other than the logging, obviously the API, and the differences in what tags are emitted, I'm not explicitly aware of any other differences. |
I also noticed this recently, which is re: an enhancement that went into pip’s version: pypa/packaging#171 |
I think the last thing blocking this issue is pypa/packaging#221 (and the necessary work in |
Isn't pypa/packaging#187 also a blocker? |
Apologies, forgot about that. Yes. |
It's the entire reason packaging.tags was written to support Python 2.7. 😄 Plus packaging.tags has a much more thorough list of potential tags than pep425tags has, so it should lead to more wheels being flagged as supported (especially for PyPy and other alternative VMs).
Link to packaging.tags: https://github.com/pypa/packaging/blob/master/packaging/tags.py
The text was updated successfully, but these errors were encountered: