Ship It: Testing, Git & Sharing Your Apps / Share it with the world
Lesson 8 of 10
Packaging with pyproject.toml
A pyproject.toml file describes your project and its dependencies, so it can be installed with pip like any other package.
Key points
- [project] name, version, dependencies
- pip install . installs it
- Add a command with [project.scripts]
[project]
name = "lazo-quiz"
version = "1.0.0"
dependencies = []
[project.scripts]
lazo-quiz = "quiz:main"Your turn
Add a pyproject.toml to your quiz app and install it with pip install .
Quiz · +10 XP
What does [project.scripts] give you?
Log in to save progress and earn XP.