On the recordRead 9 Oct 202619 facts
Flit
On the record
- Automated publishing
- Flit supports configuring upload servers and credentials through environment variables for automated releases, while warning that environment variables can expose passwords to other scripts and libraries in the environment.flit.pypa.io · read 9 Oct 2026
- Build
- The `flit build` command builds wheel and source distribution files.flit.pypa.io · read 8 Oct 2026
- Builds
- The `flit build` command builds a wheel and source distribution, with an option to build either format alone.flit.pypa.io · read 9 Oct 2026
- Credential handling
- Flit tries to store upload passwords securely using the keyring library; without keyring, it prompts for a password for each upload.flit.pypa.io · read 9 Oct 2026
- Integrations
- Flit uses pip for installation and supports uploading to PyPI, TestPyPI, or another configured package index.flit.pypa.io · read 9 Oct 2026
- Intended use
- Flit focuses on pure Python packages with no build steps, such as compiling C code or bundling JavaScript.flit.pypa.io · read 9 Oct 2026
- Limit: build steps
- Flit cannot be used for packages that require a build step.flit.pypa.io · read 8 Oct 2026
- Limit: dependencies
- Flit does not manage dependencies, which must be added to `pyproject.toml` by hand.flit.pypa.io · read 8 Oct 2026
- Notable limitation
- Flit cannot be used for packages that need a build step and does not manage dependencies automatically; dependencies must be added to `pyproject.toml` by hand.flit.pypa.io · read 9 Oct 2026
- Package contents
- Flit automatically includes subpackages and data files within a package.flit.pypa.io · read 8 Oct 2026
- Packaging
- Flit packages one importable module or package at a time and automatically includes its subpackages and package data files.flit.pypa.io · read 9 Oct 2026
- Publishing
- The `flit publish` command builds and uploads packages to PyPI or another configured package repository.flit.pypa.io · read 9 Oct 2026
- Purpose
- Flit is a simple way to put Python packages and modules on PyPI, aiming to reduce packaging effort and common mistakes.flit.pypa.io · read 9 Oct 2026
- Python requirement
- The Flit command line tool requires Python 3.flit.pypa.io · read 9 Oct 2026
- Reproducible builds
- Flit says wheels built from the same source code can be byte-for-byte identical, with file timestamps noted as a caveat that can be overridden using `SOURCE_DATE_EPOCH`.flit.pypa.io · read 9 Oct 2026
- Setup
- The `flit init` command helps set up package information in a `pyproject.toml` file.flit.pypa.io · read 9 Oct 2026
- Target packages
- Flit focuses on pure Python packages that have no build steps.flit.pypa.io · read 8 Oct 2026
- Version metadata
- Flit can obtain a package’s version from its `__version__` attribute.flit.pypa.io · read 9 Oct 2026