~/talk

Modernizing Your Python Package with pyproject and hatch

TalkinSpanishat PyCon US 2023 · 2023-04-19..04-27· [python, developer-experience]
links:none on file
slides:none on file

Shows migrating a legacy setup.py to pyproject.toml using Hatch’s new --init command, then creating isolated Hatch environments with per-environment dependencies (pytest, sphinx, coverage) and per-env scripts. Demonstrates using hatch run and a matrix to test across multiple Python versions (citing PEPs 517, 518, 621, 631, 660), building sdist and wheel artifacts, and uploading them to Test PyPI — a live demo that produces distribution files and completes the end-to-end workflow.

AI-written summary · about

  1. 0:00Welcome
  2. 1:03Python packaging today
  3. 3:08Packaging challenges
  4. 6:15PEP history
  5. 9:23Hatch intro
  6. 12:53Virtual envs with Hatch
  7. 15:19Setup.py to pyproject.toml
  8. 21:52pyproject.toml scripts
  9. 24:38Python version matrix
  10. 26:27Build and test demo
  11. 28:23Distribute and publish
  12. 29:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.