@ebassi

Formal advice by #pypa is "desktop application packaging shouldn't be packaged via python packaging tools".

So don't -- use meson and forget that python dist-info or pip exists. :)

setup.py was, long ago, used as "pythonic Makefiles", but that time is long passed.

@ebassi

Gentle reminder that "python packaging tools" as governed by #pypa and distributable via #pypi are solely intended to be used for packaging importable libraries and as an extension, simple "script entrypoints".

All other asset files have been explicitly declared off limits and out of scope.

`setup.py install` used to support installing other assets, and this support was deprecated and removed by the move to *.whl as the sole supported ecosystem format.

Oh wow! @[email protected] has finally done it.. A bit nostalgic but understandable. I suppose, @[email protected] and I will be returning to the discussion of possible move of #pip-tools under the #PyPA umbrella.. jazzband.co/news/2026/03... github.com/jazzband/pip... #Python

Jazzband - News - Sunsetting J...
Jazzband - News - Sunsetting Jazzband

Oh "great", uv does the same thing, referencing the pip code: https://github.com/astral-sh/uv/blob/1723ed00d6e6961abcf05d09abe59aaee005a6af/crates/uv-client/src/linehaul.rs#L61-L63
Added after someone who seems to be a
#PyPA member filed an issue requesting it: https://github.com/astral-sh/uv/issues/1958

This seems to run deep…
#Python
uv/crates/uv-client/src/linehaul.rs at 1723ed00d6e6961abcf05d09abe59aaee005a6af · astral-sh/uv

An extremely fast Python package and project manager, written in Rust. - astral-sh/uv

GitHub

@stfn I think the #pypa #python GitHub publish action is a good place to start to see what needs to be done.
https://github.com/pypa/gh-action-pypi-publish

You'll need to use tokens instead of Trusted Publishing, as your CI is not integrated into Trusted Publishing. Twine is the usual way.
https://twine.readthedocs.io/en/stable/

You may be able to generate & include attestations.
https://docs.pypi.org/attestations/

GitHub - pypa/gh-action-pypi-publish: The blessed GitHub Action, for publishing your distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish

The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish - GitHub - pypa/gh-action-pypi-...

GitHub

i released https://pypi.org/project/setuptools-scm/9.0.0/ today - its expected to work just the same for all users
its the last release with legacy python and legacy setuptools support
its also going to be the last release thats mostly standalone

future version will require modern setuptools and vcs-versioning - all build pipelines that still need legacy setuptools and/or old python had about half a decade now to update python tooling - its time to go modern #python #packaging #setuptools #pypa

Client Challenge

it seems to either proxy large parts of pypi.org, or is an actual mirror also using fastly #python #pypa
New blog post: A 2024 update on my analysis of build backend popularity in pyproject.toml files: https://venthur.de/2025-01-12-build-backends.html
#python #pypi #PyPA
Investigating the popularity of Python build backends over time (II) | Bastian Venthur's Blog

Last year, I analyzed the popularity of build backends used in pyproject.toml files over time. This post is the update for 2024.

📢 PSA: there's an effort by @karo @ https://github.com/pypa/packaging.python.org/pull/1662 to write some PyPUG documents regarding license declaration in #Python dists and #PEP 639. I think additional feedback would be useful.

#PyPA #packaging

Update the specification with PEP 639 by befeleme · Pull Request #1662 · pypa/packaging.python.org

Changed pages: glossary pyproject.toml sdist spec wheel spec installation spec ❓ The meaning of the license key in pyproject.toml is changed. The fact that table subkeys are deprecated is mention...

GitHub

pip 24.3 has been released (*checks watch*) almost three weeks ago, but do you know what changed in this release?

If not, I have a release write-up for pip 24.3 that can fix that!

https://ichard26.github.io/blog/2024/11/whats-new-in-pip-24.3/?utm_source=Mastodon&utm_medium=socialfeed

TL;DR: pip 24.3 is a small release with a truststore bugfix, error QoL improvements, and one minor deprecation of noncompliant wheel filenames (which won't affect you).

#python #pypa

What's new in pip 24.3

pip 24.3 is a small release with a truststore bugfix, error QoL improvements, and one minor deprecation of noncompliant wheel filenames.