Loading topic
src layout, compares it with the flat layout, and sets up the project skeleton that the rest of the tutorial builds on.5 min readpyproject.toml is for and who reads it. You should also be able to recognize the errors people hit most often.5 min readpyproject.toml, create a virtual environment, and run pip. It explains the two programs involved when you turn a source tree into distributable files, and what happens between pressing Enter on python -m build and finding files in dist/.5 min read[project] table in pyproject.toml. It assumes you can already write and import Python packages, use a virtual environment and pip, and run basic Git and command-line commands. It also assumes you have a src layout and a [build-system] table, which earlier chapters cov6 min readpyproject.toml file, you know what the [project] table holds, and you have used pip install inside a virtual environment. Here you will declare what your library needs at runtime. You will also add optional extras for features that only some users want.5 min readpyproject.toml file, have built a wheel with python -m build, and know what pip install does. You will learn which version strings PyPI accepts, how pip orders them, and how to pick a number that tells users how big a change is.6 min readpyproject.toml with a [project] table and a src layout, as in the earlier chapters. It also assumes you can create a virtual environment and run pip install. By the end you will know what the [project.scripts] table does, how pip turns it into a comman5 min readgreeter library already has type annotations. This chapter covers how to make type checkers use them in the projects that install your package. It assumes you can read basic annotations, have built a wheel with python -m build (see the earlier chapters), and have used a virtual environment.5 min readpyproject.toml with a [build-system] table and a [project] table, as in the earlier chapters. It also assumes you can create and activate a virtual environment. Here you will build the two distribution files PyPI accepts, learn what each one is for, and 5 min readpython -m build finishes, dist/ holds an sdist and a wheel. Before you upload them, check what is inside. PyPI never lets you replace a file once it is published. A missing data file, a stray secret, or broken metadata is permanent for that version. You can only yank it and ship a new versi7 min readpython -m build, that you know how to create a virtual environment, and that you have read the earlier chapters on the src layout and pyproject.toml. Here you verify that the files in dist/ install and run on their own.5 min readpython -m build, that you have inspected them with twine check, and that you have installed the wheel in a clean virtual environment. You should also be comfortable with pip, virtual environments, and the command line.6 min readgreeter project into dist/ with python -m build, and that you have installed the wheel in a clean virtual environment and checked it. It covers the upload step: accounts, tokens, twine, and what to do when an upload fails.5 min readpython -m build and twine. It also assumes you have a PyPI account, a GitHub repository, and basic familiarity with GitHub Actions workflow files.5 min readgreeter to PyPI as described in the earlier chapters. You should know how to build with python -m build, how versions follow PEP 440, and how to log in to the PyPI web interface. Publishing is not the last step. A release stays on the index permane5 min read