Skip to content

PyPI lists an unmaintained version of typeshed #3001

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

Closed
Apteryks opened this issue May 21, 2019 · 9 comments
Closed

PyPI lists an unmaintained version of typeshed #3001

Apteryks opened this issue May 21, 2019 · 9 comments
Labels
project: policy Organization of the typeshed project

Comments

@Apteryks
Copy link

I was confused to find that this package: https://pypi.org/project/typeshed doesn't correspond to this repository. It seems it was made by the original author of typeshed, but has since been abandoned.

Could it be possible to make this copy of typeshed distributable through PyPI and supersede the current "typeshed" package found on PyPI? This would reduce confusion.

Thanks!

@srittau
Copy link
Collaborator

srittau commented May 21, 2019

Distributing typeshed per pypi is quite a bit of work for not much gain, since typeshed is currently being vendored by type checkers. Since both the Python typing standards as well as the typecheckers are evolving fast, this situation is unlikely to change in the near future.

That said, there are some preliminary ideas about shipping third-party packages separately in #2491.

The typeshed project on pypi is not supported or endorsed by the typeshed maintainers, as far as I know.

@srittau srittau added the project: policy Organization of the typeshed project label May 21, 2019
@JelleZijlstra
Copy link
Member

Several of the people on the typeshed package are still active in typeshed, so presumably we can at least get control of the package if and when we need it.

@Apteryks
Copy link
Author

Apteryks commented May 22, 2019

My use case is packaging typeshed for GNU Guix, a functional package manager. It is simple and preferable in this context to refer to a single, easy to update/maintain typeshed package rather than having it bundled at many places, such as with mypy, python-jedi, etc.

The work of packaging it is already done and can be retrieved from this branch: https://github.com/graingert/typeshed. Basically, copying three files from that branch into this project should make it packageable: MANIFEST.in, setup.cfg and setup.py.

The benefit this brings is that other Python packages can now refer to typeshed as a proper dependency (with versions if the need arise) instead of having to bundle it.

The API is very simple:

import typeshed

then using the "typeshed" symbol yields the location (path) of the root of the typeshed files. It simplifies locating typeshed and removes the need of a hardcoded path from the projects referring to it. To see the simple implementation: https://github.com/graingert/typeshed/blob/master/typeshed/__init__.py

@srittau
Copy link
Collaborator

srittau commented Jun 5, 2019

For reference, there are plans to distribute stubs for third-party packages as separate packages (see #2491). It would make some sense to then distribute the stdlib stubs as their own package as well, although type checkers may still opt to vendor them. In this case a typeshed package would not make much sense anymore.

@di
Copy link
Member

di commented Feb 10, 2020

Hi folks, PyPI administrator here. We got a request to remove this project from PyPI as it's confusing for users (https://twitter.com/okapies/status/1225604759752601600, pypi/support#192).

What would you like to do here?

@JelleZijlstra
Copy link
Member

I think it makes sense to remove the package. However, we should avoid opening up the hame, because that would make the name available to squatters.

@di
Copy link
Member

di commented Feb 10, 2020

Yes, we can also put a block on the name so it cannot be registered.

@di
Copy link
Member

di commented Feb 29, 2020

I've removed the project and blocked the name from being registered, this can be closed.

@srittau
Copy link
Collaborator

srittau commented Feb 29, 2020

Thanks!

@srittau srittau closed this as completed Feb 29, 2020
NexediGitlab pushed a commit to SlapOS/slapos that referenced this issue Mar 10, 2020
This egg was not maintained and was removed from pypi
python/typeshed#3001 (comment)

I don't think we need it here, I probably added by mistake.

Interestingly when running this command it fails the first time with an
explicit error:

    Could not find a version that satisfies the requirement typeshed==0.0.1 (from -r /srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server-requirements.txt (line 22)) (from versions: )
    No matching distribution found for typeshed==0.0.1 (from -r /srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server-requirements.txt (line 22))

But when the command run again, another confusing error is displayed:

    Error: [Errno 13] Permission denied: '/srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server/bin/activate.fish'
NexediGitlab pushed a commit to SlapOS/slapos that referenced this issue Mar 10, 2020
This egg was not maintained and was removed from pypi
python/typeshed#3001 (comment)

I don't think we need it here, I probably added by mistake.

Interestingly when running this command it fails the first time with an
explicit error:

    Could not find a version that satisfies the requirement typeshed==0.0.1 (from -r /srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server-requirements.txt (line 22)) (from versions: )
    No matching distribution found for typeshed==0.0.1 (from -r /srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server-requirements.txt (line 22))

But when the command run again, another confusing error is displayed:

    Error: [Errno 13] Permission denied: '/srv/slapgrid/slappart14/srv/testnode/cqc/inst/test0-0/tmp/soft/a6a44539f462e5e342cf8c714b7c8e5b/parts/python-language-server/bin/activate.fish'

See merge request !709
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: policy Organization of the typeshed project
Projects
None yet
Development

No branches or pull requests

4 participants