Skip to main content
Loading page…
Python Mastery
Chapter 52
Lesson 1 of 5
Packaging with pyproject.toml
Contents
Notes
Tutor
Concept
Why pyproject.toml Replaced setup.py
Loading activity…
Previous
1 / 7
Continue
Contents
Notes
Discussion
Tutor
28 min
7 activities
0 of 7 done
In this lesson
1
Why pyproject.toml Replaced setup.py
2
Optional Dependencies & Entry-Point Scripts
3
Building a Wheel and Source Distribution
4
Build System Check
5
Write a Complete pyproject.toml Reader
6
Pitfall: Version in Two Places
7
Entry Points Explained
Objectives
Create a standards-compliant pyproject.toml that fully describes a Python package
Build a distributable wheel and sdist with the build tool
Install a package in editable mode and expose CLI entry-point scripts
Describe the TestPyPI publishing workflow
Further reading
Writing your pyproject.toml
pyproject.toml specification
Chapter 52 · Professional, Production-Ready Python
Packaging with pyproject.toml
Dependency Management with uv, Lockfiles & Ruff
Git & GitHub Workflow
Clean Code, Refactoring & Architecture
Security Basics & Production Practices
Previous: Application Security & Common Vulns
Next: Dependency Management with uv, Lockfiles & Ruff