The author announces they will skip PyCon US for the first time since 2003 in protest of the US trade war against Canada, viewing the tariffs as an economic act of war motivated by a desire to weaken and potentially annex Canada rather than by fentanyl concerns. They emphasize they don't blame Americans who voted differently, but plan to avoid US travel for the foreseeable future and attend Python community events outside the country instead. They believe the Canada-US relationship has been damaged for at least a generation, and will only consider returning once all tariffs are completely repealed.
I normally don't talk about politics here, but as I write this the US has started a trade war with Canada (which is partially paused for a month, but that doesn't remove the threat). It is so infuriating and upsetting that I will be skipping PyCon US entirely for the first time since 2003 to avoid giving any money to the US economy as a tourist (on top of just not feeling welcome in a state that voted in Donald, let alone in the US overall when Donald won the popular vote).
We have been told this is over fentanyl, but the amount brought into the US through Canada is less than 1%. Plus we spent CAD $1.3 billion on upping our border security and appointing a fentanyl czar that has led to a 97% decrease from Dec 2024 to Jan 2025. And all of this without the US doing something equivalent to try and lower the amount of illegal guns flowing into Canada.
No, this actually seems to be about trying to cripple our economy to annex Canada (no joke). The leader of one of the world's largest, most powerful armies simply cannot stop talking about how they want to annex Canada, which is not comforting (this is why Canadians have not found the "51st state" comment a joke whenever anyone makes it). Donald also can't seem to stand calling our prime minister by his proper title which is very disrespectful (hence why I keep using "Donald" in this post; I also refuse to use their preferred pronouns since trans lives matter and I doubt Donald would use anyone's preferred pronouns if they happened to disagree with them).
Keep reading
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.
AI summaryThe article argues that reproducible builds would strengthen Python's secure supply chain by allowing third parties to verify that distributions match their source code and detect tampering, citing SolarWinds as an example. What's missing includes recording the source code location in distribution metadata and support for software bills of materials (SBOMs) in sdists, which—unlike wheels—lack a place to store such data, though build backends could theoretically record build environments automatically without extra effort from distribution producers. The author also proposes that trusted verifiers could report successful reproductions to PyPI so users could see when a distribution was independently verified, framed as a perk rather than a requirement.
AI summaryThe author announces his self-nomination for the inaugural 2026 Python Packaging Council (PPC), with support from his employer Microsoft but no employer pressure. He cites his qualifications, including over 23 years as a Python core developer, service on the first five Python Steering Councils, co-maintaining the packaging project, and authoring seven packaging PEPs such as PEP 518 and PEP 751. His goals for the PPC include drawing on his steering council experience to establish the new body, improving the developer experience for both package producers and consumers, and strengthening the secure supply chain through reproducible builds and software bills of materials (SBOMs).
AI summaryThe article outlines three relatively painless steps for securely publishing to PyPI with GitHub Actions: using the zizmor tool to fix insecure workflow defaults (broad token permissions, persisted credentials, and unpinned actions) both locally and in CI, and adopting Trusted Publishing with a GitHub environment that requires reviewer approval before any publishing workflow runs. The author stresses that the post is not meant to shame maintainers into using GitHub Actions or Trusted Publishing, and recommends keeping build and publish workflows separate. Together, these measures guard against accidental or malicious workflow triggers while letting GitHub's security team handle the PyPI communication concerns.
AI summaryThe article explains why the author wrote PEP 832, addressing the problem that tools like VS Code (or any editor or AI agent) cannot easily determine which workflow tool a Python project uses or where its virtual environments are located. It outlines key difficulties—such as discovering environments on first project open, handling environments stored outside the project or shared across projects via tools like conda—and proposes solutions including detecting .venv directories, a .python-envs file listing environment paths, and a [workflow] table in pyproject.toml paired with a workflow server protocol (WSP) for JSON-RPC communication between tools. The author's motivation is to make project setup as easy as possible for users of all experience levels by hiding environment management, while creating a general, editor-agnostic standard rather than the VS Code-specific bespoke integrations that exist today.
AI summaryThe article explains that a Python project hack involving malicious PyPI uploads could have been detected if the project used trusted publishing with digital attestations, since pylock.toml lock files record publisher details (e.g., the GitHub repo and workflow) for each file. Trusted publishing lets CD systems upload releases without exposing API keys, while attestations verify a file's origin, allowing users to compare the lock file's recorded publisher against PyPI's data to spot discrepancies. The author recommends that maintainers enable trusted publishing and attestations, and that users verify attestations in lock files via code or manual review of diffs to catch suspicious changes or deletions.