PackagingCon event

Reposted here so folks are aware of it: https://twitter.com/packagingcon/status/1418544419687518209

4 Likes

Iā€™m thinking of submitting something along the lines of ā€˜Changes in Python packaging - what downstream packagers need to knowā€™, to talk about PEPs 517, 518 & 621, and tools like build and installer.

I have the impression that various ā€˜downstreamā€™ ecosystems that repackage code from PyPI either still rely on setup.py, or write specific build instructions for packages to use Poetry or Flit. So I think it would be useful to spread the word about how we - the people who make packaging tools & standards for Python - envisage things working.

Is anyone already planning something like this? I donā€™t want to duplicate effort if someone else has already had the idea. @brettcannon @pf_moore @pradyunsg @uranusjr @dustin @pganssle @sdispater @njs (or anyone else :-)?

6 Likes

Iā€™ve submitted a proposal, with the following abstract:

Python packaging has changed a lot in the last few years. New tools such as Poetry and Flit allow creating packages without the traditional setup.py file, and new standards mean that pyproject.toml files are now the linchpin for building and installing Python modules. The wheel package format, which is somewhat older, has also gained a more central role.

Iā€™ll explain what has changed, including a brief summary of what motivated these changes. Then Iā€™ll discuss how you can use the new standard interfaces and formats, with a focus on people re-packaging Python packages into other distribution systems such as Conda, Spack, or Linux distribution repositories. Iā€™ll introduce the low-level ā€˜buildā€™ and ā€˜installerā€™ tools, and compare them to the more widely used ā€˜pip installā€™.

9 Likes

Iā€™ve been pondering on giving an overview on Python packaging, focusing on why we end up where we are and the different approaches Python takes from some other ecosystems. Each topic takes roughly the form of:

  1. Raises of question why we do something different from everyone else.
  2. Historical reasons behind the difference.
  3. The advantage (to Python) of the approach chosen.
  4. If itā€™s possible to overcome the disadvantage, and how.

Currently I have 3+1 topics:

Per-artifact metadata (instead of per-version)

  1. Why is metadata distributed with each artifact (distribution) and can differ within the same version?
  2. Python packages predate indexes. PEP 508 direct URL is a thing.
  3. A user does not need a package server to host Python packages.
  4. Sort of. The community is gradually forming consensus some metadata shouldnā€™t differ. PEP 658.

Pull-based platform declaration

  1. Why does PyPI not automatically builds wheels for every project (besides the cost issue)?
  2. Python does not have a ā€œsupport tierā€ concept like many platforms.
  3. A platform is ā€œsupportedā€ if you can manage to build a Python interpreter on it. Very good for the community to grow.
  4. Feature detection, but there are always edge cases.

Installation metadata and installed files side-by-side

  1. Why are Python package metadata stored directly beside the package installation, instead of living in a central location?
  2. Thatā€™s the only ā€œofficialā€ place for third-party tools to store stuff, and all Python packaging tools are third-party.
  3. Easy discovery, especially easy to write tools to find them and guarantee the result is correct (if you find the code, you find the metadata).
  4. Are there real technical downsidesā€¦?

Meta question (conclusion-ish)

  1. Why does Python packaging do things weird?
  2. Python packaging contributors and Python contributors have surprisingly little overlap and historically receive relatively little effort.
  3. Packaging contributors have more freedom doing what we want.
  4. Overhead when discussing changes in the interpreter. Focus more on standards instead of specific tools to gather more people.

I have not submitted the proposal and honestly am still not entirely sure I want to. Update: Iā€™ve submitted this with the title Python Packaging: Why Donā€™t You Justā€¦? This page shows the proposal publicly if Iā€™m not mistaken.

If you have a topic along a similar line that I do not cover, feel free to suggest one. I anticipate the conference will probably gather people interested in packaging from all sorts of communities, so the attendee may be interested in hearing why another community doesnā€™t do things like they do. Iā€™ll also avoid sounding snobby to other communities (e.g. why are Python packages so difficult to compile? Actually they arenā€™t, but Python is more widely used on more things than most language so you see more exotic stuff).

7 Likes

I am pleased to announce that the talk introducing the floating cheeses (IPFS :heart: Python Wheels: Efficient, Secure and Reproducible Repository) has been accepted for PackagingCon. The list of accepted & confirmed talks so far can be viewed on the conferenceā€™s website.

I am a bit unhappy that it is using Eventbright, which shares participants data to third parties, to manage participation though.

2 Likes

5 posts were split to a new topic: Setuptools entry points in @uranusjrā€™s PackingCon talk

FYI: Iā€™ve flagged the recent posts as off topic, to request a moderator to move them into a separate topic.

While related to packaging-con, the specific discussion about what should be in TPā€™s talk isnā€™t relevant to everyone whoā€™d likely attend packaging-con and is watching this thread for potential updates related to that.

1 Like