Live data from Hacker News

99% of top Python packages are now wheels

pythonwheels.com

21–30 of 79 posts

Re: 99% of top Python packages are now wheels

#21
post #19

Is it possible to publish Python code for others to use simply by putting a repo on a webserver? In other words, can someone put a line like this into their requirements.txt file? https://somewhere.com/some/git/repo.git

Yes, you can do this: https://pip.pypa.io/en/stable/topics/vcs-support/

Re: 99% of top Python packages are now wheels

#23
post #19

Is it possible to publish Python code for others to use simply by putting a repo on a webserver? In other words, can someone put a line like this into their requirements.txt file? https://somewhere.com/some/git/repo.git

Yes, you just need to add `git+` before the URL, see the pip documentation: https://pip.pypa.io/en/stable/topics/vcs-support/

Re: 99% of top Python packages are now wheels

#25
post #19

Is it possible to publish Python code for others to use simply by putting a repo on a webserver? In other words, can someone put a line like this into their requirements.txt file? https://somewhere.com/some/git/repo.git

Yes

https://github.com/iree-org/iree-samples/blob/main/requireme...

You can do even better using GitHub releases: the GET for a releases page with assets (ie use inspector) functions as an index url. So you can have a repo that publishes wheels to a release called eg `latest` that can function as the index for that package/wheel. You can even have multiple repos that publish to a single such wheel repo release repo (using the ncipollo/release-action GHA).

Re: 99% of top Python packages are now wheels

#26
post #7

Packages are wheels? lolwut? > Wheels are the new standard of Python distribution and are intended to replace eggs. Ahhh... ???

Packages are a language-level concept in Python. A package may be a collection of source files on the filesystem, it's still a package, except that doesn't lend itself well to distribution. Moreover, from the language standpoint, the usage of a package (like "import numpy") is the same on all architectures, but the files needed for distribution (native extension module binaries) may differ.

Python is rife with Monty Python references, such as "spam and eggs" in place of "foo and bar", so "egg" was a natural choice.

Re: 99% of top Python packages are now wheels

#27
post #20
post #4

30 years later I still love programming but people given authority opting for cutesy names for critically important terms in the ecosystem should be severely limited in their options. Flakes, pills, wheels, eggs... Come on, people. I am willing to bet good money that it won't hurt you physically if you just call them "packages".

> I am willing to bet good money that it won't hurt you physically if you just call them "packages". So, "Packages are the new standard of distributing packages, and replace packages" is clearer to you?

EDIT: Reduced my original comment to this:

This only outlines that the article is very niche and not very interesting to be posted for non-Python audience.

--- ORIGINAL COMMENT:

Need I explain that if you arrive at such a title you would have to reevaluate if it's worth posting at all? Apparently I need to explain it. ;)

This article is more or less pointless anyhow. Using better terminology would have made that clearer much earlier in the process IMO.

Re: 99% of top Python packages are now wheels

#28
post #17
post #8

Earlier quoted context omitted.

Which would make the article completely redundant, and that works for me. :D But let's be serious, they could have just said "99% of the top Python packages upgraded to our new packaging system" which would be much more informative and interesting title and would make me read it in full, as opposed to now when I just facepalmed.

But the Python ecosystem reinvents package systems every few years, so that headline is also not very useful.

True, that's why I question the value of those articles in the first place.

Re: 99% of top Python packages are now wheels

#29
post #21
post #19

Is it possible to publish Python code for others to use simply by putting a repo on a webserver? In other words, can someone put a line like this into their requirements.txt file? https://somewhere.com/some/git/repo.git

Yes, you can do this: https://pip.pypa.io/en/stable/topics/vcs-support/

That is pretty awesome!

Why is all the "wheels", "eggs", "PyPi" ... stuff needed then?

Re: 99% of top Python packages are now wheels

#30
post #16

Earlier quoted context omitted.

Well these are at least more or less known and widely used (though I agree if you never worked with Java that .JAR and .WAR will be confusing). But when a language ecosystem opts for cutesy niche names then they just end up confusing everybody, including some of their own users.

I think JAR (Java Archive) and WAR (Web Archive) make sense. But wheel? It's a wheel of cheese, because pypi used to be called cheeseshop? I mean sure, but doesn't it feel a bit like that 20-year-old tatoo that you got during your teens that you got mixed feelings about today? My suggestion: Call them pypacks -- extension: .pyp

JAR itself is a cutesy reference. You put your code in a jar, get it? WAR is perhaps not a cute reference, but it hints at what you'll be facing...
Post reply on HN