Skip to content
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

Visibly flag projects that provide type details #6919

Closed
brettcannon opened this issue Oct 29, 2019 · 3 comments
Closed

Visibly flag projects that provide type details #6919

brettcannon opened this issue Oct 29, 2019 · 3 comments
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss

Comments

@brettcannon
Copy link
Contributor

brettcannon commented Oct 29, 2019

What's the problem this feature will solve?
Making it easier to identify projects that providing type details (if that's your jam and it would make a difference in which project you choose to go with).

Describe the solution you'd like
Some way to signal that a project either has a py.typed file declaring that it's typed or an appropriate -stubs project is available on PyPI. IOW whether the project has declared type support as specified by PEP 561.

Additional context
I'm not sure if a new trove classifier that can be automatically provided is best or some visible notation along with some metadata exposed through the data endpoints so that something like py3readiness.org could exist for type support.

@ewdurbin
Copy link
Member

related: #4967 and #4164

@di di added feature request needs discussion a product management/policy issue maintainers and users should discuss labels Oct 29, 2019
@dstufft
Copy link
Member

dstufft commented Nov 16, 2019

I don't think Warehouse can or should add classifiers that aren't present in the package metadata itself.

So that leaves either something completely different, or we push this down to asking for packages to add a classifier or having setuptools, flit, etc automatically apply the classifier when it's typed.

@miketheman
Copy link
Member

Type-oriented Trove Classifiers were added starting in 2020: https://github.com/pypa/trove-classifiers/blob/d4ad70c1b4c79ef2e0649c4a3b3184432f19a108/src/trove_classifiers/__init__.py#L807-L808
and can also be seen at the bottom of the supported classifiers on pypi: https://pypi.org/pypi?%3Aaction=list_classifiers

Over 4000 projects use the classifier today: https://pypi.org/search/?q=&o=&c=Typing+%3A%3A+Typed

The Typed classifier status is displayed in the Classifiers section of a given project's release (random example)

Based on these pieces in place, I recommend closing out this issue as the feature has been implemented

@dstufft dstufft closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request needs discussion a product management/policy issue maintainers and users should discuss
Projects
None yet
Development

No branches or pull requests

5 participants