3 ms·
I haven't listened to the interview but are they going to add namespaces? That's the only good solution I can see to the current unfixed dependency confusion is
by IshKebab 3y ago
I haven't listened to the interview but are they going to add namespaces? That's the only good solution I can see to the current unfixed dependency confusion issue.
By that I mean, you want to use a private pip repo in your company, you upload `yourcompany_secretproject` to it and tell people to install it. Now the only way to prevent yourself being hacked is to publicly register an empty package `yourcompany_secretproject` on pypi.org. Oh and also hope the admins don't notice it and remove it because it's empty (which they have said they will).
Insane situation.
- kjok 3y agoWhy can’t you ask people to directly install from GitHub repo and skip publishing on PyPI? Curious to know.
- IshKebab 3y agoYou can, but it's not nearly as nice and it also builds the package from source instead of installing a pre-built binary which can be a lot slower.
- kjok 3y agoBuilding from source will be slower, but GitHub allows you to publish a package as a well.
- IshKebab 3y agoDoes pip support installing that? Can you specify dependencies in `pyproject.toml` to be binaries from GitHub? Genuinely asking.
- miketheman 3y agoCheck out https://chrisholdgraf.com/blog/2022/install-github-from-pyproject/ https://chrisholdgraf.com/blog/2022/install-github-from-pypr... which breaks down a few ways to to this.