pax_global_header00006660000000000000000000000064151277561460014530gustar00rootroot0000000000000052 comment=54f238d1664124e06a68c6c22fd5b1418fa5feb2 pypa-build-6eb4506/000077500000000000000000000000001512775614600141335ustar00rootroot00000000000000pypa-build-6eb4506/.dockerignore000066400000000000000000000000571512775614600166110ustar00rootroot00000000000000.tox .*_cache *.egg-info Dockerfile build dist pypa-build-6eb4506/.github/000077500000000000000000000000001512775614600154735ustar00rootroot00000000000000pypa-build-6eb4506/.github/CODEOWNERS000066400000000000000000000000561512775614600170670ustar00rootroot00000000000000* @FFY00 @gaborbernat @layday @henryiii pypa-build-6eb4506/.github/dependabot.yml000066400000000000000000000002621512775614600203230ustar00rootroot00000000000000version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "daily" groups: actions: patterns: - "*" pypa-build-6eb4506/.github/release.yml000066400000000000000000000001261512775614600176350ustar00rootroot00000000000000changelog: exclude: authors: - dependabot[bot] - pre-commit-ci[bot] pypa-build-6eb4506/.github/workflows/000077500000000000000000000000001512775614600175305ustar00rootroot00000000000000pypa-build-6eb4506/.github/workflows/cd.yml000066400000000000000000000016221512775614600206420ustar00rootroot00000000000000name: CD on: workflow_dispatch: pull_request: branches: - main release: types: - published jobs: dist: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - uses: hynek/build-and-inspect-python-package@v2 publish: needs: [dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' environment: name: pypi url: https://pypi.org/p/build permissions: id-token: write attestations: write steps: - uses: actions/download-artifact@v7 with: name: Packages path: dist - name: Generate artifact attestation for sdist and wheel uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0 with: subject-path: "dist/build-*" - uses: pypa/gh-action-pypi-publish@release/v1 pypa-build-6eb4506/.github/workflows/reusable-change-detection.yml000066400000000000000000000037561512775614600252670ustar00rootroot00000000000000name: change detection on: workflow_call: outputs: run-docs: description: Whether or not build the docs value: ${{ jobs.change-detection.outputs.run-docs || false }} run-tests: description: Whether or not run the tests value: ${{ jobs.change-detection.outputs.run-tests || false }} jobs: change-detection: name: Identify source changes runs-on: ubuntu-latest timeout-minutes: 1 outputs: run-docs: ${{ steps.docs-changes.outputs.run-docs || false }} run-tests: ${{ steps.tests-changes.outputs.run-tests || false }} steps: - uses: actions/checkout@v6 - name: Get a list of the changed runtime-related files if: github.event_name == 'pull_request' id: changed-testable-files uses: Ana06/get-changed-files@v2.3.0 with: filter: | src/** tests/** tox.ini pyproject.toml .github/workflows/test.yml .github/workflows/reusable-type.yml .github/workflows/reusable-pytest.yml - name: Set a flag for running the tests if: >- github.event_name != 'pull_request' || steps.changed-testable-files.outputs.added_modified_renamed != '' id: tests-changes run: >- echo "run-tests=true" >> "${GITHUB_OUTPUT}" - name: Get a list of the changed documentation-related files if: github.event_name == 'pull_request' id: changed-docs-files uses: Ana06/get-changed-files@v2.3.0 with: filter: | docs/** CHANGELOG.rst README.md .github/workflows/test.yml .github/workflows/reusable-check.yml - name: Set a flag for building the docs if: >- github.event_name != 'pull_request' || steps.changed-docs-files.outputs.added_modified_renamed != '' id: docs-changes run: >- echo "run-docs=true" >> "${GITHUB_OUTPUT}" pypa-build-6eb4506/.github/workflows/reusable-docs.yml000066400000000000000000000010061512775614600230000ustar00rootroot00000000000000name: check on: workflow_call: jobs: docs: runs-on: ubuntu-latest env: PY_COLORS: 1 TOX_PARALLEL_NO_SPINNER: 1 steps: - uses: actions/checkout@v6 - name: Setup Python 3.12 uses: actions/setup-python@v6 with: python-version: "3.12" - name: Install tox run: python -m pip install tox - name: Setup run environment run: tox -vv --notest -e docs - name: Run check for docs run: tox -e docs --skip-pkg-install pypa-build-6eb4506/.github/workflows/reusable-pytest.yml000066400000000000000000000050441512775614600234060ustar00rootroot00000000000000name: pytest on: workflow_call: jobs: pytest: runs-on: ${{ matrix.os }}-latest env: PYTEST_ADDOPTS: "--run-integration --showlocals -vv --durations=10 --reruns 5 --only-rerun subprocess.CalledProcessError" strategy: fail-fast: false matrix: os: - ubuntu - macos - windows py: - "pypy3.9-v7.3.14" - "pypy3.10-v7.3.19" - "pypy3.11-v7.3.19" - "3.14" - "3.13" - "3.12" - "3.11" - "3.10" - "3.9" tox-target: - "tox" - "min" continue-on-error: >- # jobs not required in branch protection ${{ ( startsWith(matrix.py, 'pypy') && matrix.os == 'windows' ) && true || false }} steps: - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup uv uses: astral-sh/setup-uv@v7 - name: Install tox (uv) run: uv tool install tox --with tox-uv - name: Setup python for test ${{ matrix.py }} uses: actions/setup-python@v6 with: python-version: ${{ matrix.py }} allow-prereleases: true - name: Pick environment to run run: | import platform import os import sys if platform.python_implementation() == "PyPy": base = f"pypy{sys.version_info.major}{sys.version_info.minor}" else: base = f"py{sys.version_info.major}{sys.version_info.minor}" env = f"BASE={base}\n" print(f"Picked:\n{env}for {sys.version}") with open(os.environ["GITHUB_ENV"], "a", encoding="utf-8") as file: file.write(env) shell: python - name: Run test suite via tox if: matrix.tox-target == 'tox' run: | tox -vv --notest -e ${{env.BASE}} tox -e ${{env.BASE}} --skip-pkg-install - name: Run minimum version test if: matrix.tox-target == 'min' run: tox -e ${{env.BASE}}-${{ matrix.tox-target }} - name: Run path test if: matrix.tox-target == 'tox' && matrix.py == '3.10' run: tox -e path - name: Combine coverage files if: always() run: tox -e coverage - uses: codecov/codecov-action@v5 if: always() env: PYTHON: ${{ matrix.python }} with: files: .tox/coverage.xml flags: tests env_vars: PYTHON name: ${{ matrix.py }} - ${{ matrix.os }} pypa-build-6eb4506/.github/workflows/reusable-type.yml000066400000000000000000000010011512775614600230240ustar00rootroot00000000000000name: type on: workflow_call: jobs: type: runs-on: ubuntu-latest env: PY_COLORS: 1 TOX_PARALLEL_NO_SPINNER: 1 steps: - uses: actions/checkout@v6 - name: Setup Python 3.9 uses: actions/setup-python@v6 with: python-version: 3.9 - name: Install tox run: python -m pip install tox - name: Setup run environment run: tox -vv --notest -e type - name: Run check for type run: tox -e type --skip-pkg-install pypa-build-6eb4506/.github/workflows/test.yml000066400000000000000000000031161512775614600212330ustar00rootroot00000000000000name: test on: push: branches: - main pull_request: branches: - main schedule: - cron: "0 8 * * 1" workflow_dispatch: concurrency: group: test-${{ github.ref }} cancel-in-progress: true jobs: change-detection: uses: ./.github/workflows/reusable-change-detection.yml check-docs: needs: change-detection if: fromJSON(needs.change-detection.outputs.run-docs) uses: ./.github/workflows/reusable-docs.yml pytest: needs: change-detection if: fromJSON(needs.change-detection.outputs.run-tests) uses: ./.github/workflows/reusable-pytest.yml type: needs: change-detection if: fromJSON(needs.change-detection.outputs.run-tests) uses: ./.github/workflows/reusable-type.yml # https://github.com/marketplace/actions/alls-green#why required-checks-pass: # This job does nothing and is only used for the branch protection if: always() needs: - change-detection # transitive - check-docs - pytest - type runs-on: ubuntu-latest steps: - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@release/v1 with: allowed-skips: >- ${{ fromJSON(needs.change-detection.outputs.run-docs) && '' || ' check-docs, ' }} ${{ fromJSON(needs.change-detection.outputs.run-tests) && '' || ' pytest, type, ' }} jobs: ${{ toJSON(needs) }} pypa-build-6eb4506/.gitignore000066400000000000000000000005231512775614600161230ustar00rootroot00000000000000# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] # Distribution / packaging build/lib/ dist/ *.egg-info/ .eggs # Testing and coverage .cache .nox/ .mypy_cache/ .pytest_cache htmlcov/ .coverage coverage.xml tests/integration/ .integration-sources .tox Dockerfile # Restore src/build in case user ignores 'build' !src/build pypa-build-6eb4506/.pre-commit-config.yaml000066400000000000000000000027021512775614600204150ustar00rootroot00000000000000ci: autofix_prs: false autoupdate_commit_msg: "pre-commit: bump repositories" repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: check-ast - id: check-builtin-literals - id: check-docstring-first - id: check-merge-conflict - id: check-yaml - id: check-toml exclude: tests/packages/test-(bad-syntax|no-permission)/pyproject.toml - id: debug-statements - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/abravalheri/validate-pyproject rev: v0.24.1 hooks: - id: validate-pyproject - repo: https://github.com/adamchainz/blacken-docs rev: 1.20.0 hooks: - id: blacken-docs additional_dependencies: [black==25.*] - repo: https://github.com/rbubley/mirrors-prettier rev: "v3.7.4" hooks: - id: prettier - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.14.10 hooks: - id: ruff-check args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/codespell-project/codespell rev: "v2.4.1" hooks: - id: codespell args: ["-L", "sur"] - repo: https://github.com/pre-commit/pygrep-hooks rev: "v1.10.0" hooks: - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/tox-dev/tox-ini-fmt rev: "1.7.1" hooks: - id: tox-ini-fmt pypa-build-6eb4506/.readthedocs.yml000066400000000000000000000004401512775614600172170ustar00rootroot00000000000000version: 2 build: os: ubuntu-22.04 tools: python: "3.12" commands: - asdf plugin add uv - asdf install uv latest - asdf global uv latest - uv run --no-dev --group docs sphinx-build -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html pypa-build-6eb4506/CHANGELOG.rst000066400000000000000000000340121512775614600161540ustar00rootroot00000000000000+++++++++ Changelog +++++++++ 1.4.0 (2026-01-08) ================== - Add ``--quiet`` flag (:pr:`947`) - Add option to dump PEP 517 metadata with ``--metadata`` (:pr:`940`, :pr:`943`) - Support ``UV`` environment variable (:pr:`971`) - Remove a workaround for 3.14b1 (:pr:`960`) - In 3.14 final release, ``color`` defaults to ``True`` already (:pr:`962`) - Pass sp-repo-review (:pr:`942`) - In pytest configuration, ``log_level`` is better than ``log_cli_level`` (:pr:`950`) - Split up typing and mypy (:pr:`944`) - Use ``types-colorama`` (:pr:`945`) - In docs, first argument for ``_has_dependency`` is a name (PR :pr:`970`) - Fix test failure when ``flit-core`` is installed (PR :pr:`921`) 1.3.0 (2025-08-01) ================== - Add ``--config-json`` (PR :pr:`916`, fixes issue :issue:`900`) - Drop Python 3.8 (PR :pr:`891`) - Test on Python 3.14, colorful help on 3.14+ (PR :pr:`895`) - Fix ``ModuleNotFoundError`` when ``pip`` is not installed (PR :pr:`898`) - Disable use of ``pip install --python`` for debundled pip (PR :pr:`861`) - Don't pass no-wheel to virtualenv if it would warn (PR :pr:`892`) - Optimize our tests to run faster (PR :pr:`871`, :pr:`872`, :pr:`738`) - Allow running our tests without virtualenv (PR :pr:`911`) - Fix issues in our tests (PR :pr:`824`, :pr:`918`, :pr:`870`, :pr:`915`, :pr:`862`, :pr:`863`, :pr:`899`, :pr:`896`, :pr:`854`) - Use SPDX identifiers for our license metadata (PR :pr:`914`) - Use dependency-groups for our development (PR :pr:`880`) - Mention conda and update uv mention in README/docs (PR :pr:`842`, :pr:`816`, :pr:`917`) 1.2.2 (2024-09-06) ================== - Add editable to ``builder.get_requries_for_build``'s static types (PR :pr:`764`, fixes issue :issue:`763`) - Include artifact attestations in our release (PR :pr:`782`) - Fix typing compatibility with typed ``pyproject-hooks`` (PR :pr:`788`) - Mark more tests with ``network`` (PR :pr:`808`) - Add more intersphinx links to docs (PR :pr:`804`) - Make ``uv`` optional for tests (PR :pr:`807` and :pr:`813`) 1.2.1 (2024-03-28) ================== - Avoid error when terminal width is undetectable on Python < 3.11 (PR :pr:`761`) 1.2.0 (2024-03-27) ================== - Add ``--installer`` option, supporting ``pip`` and ``uv``. Added ``uv`` extra. (PR :pr:`751`) - Improve console output and provide ``-v`` for dependency installation (PR :pr:`749`) - Avoid compiling unused bytecode when using ``pip`` (PR :pr:`752`) - Dropped support for Python 3.7 (PR :pr:`743`) 1.1.1 (2024-02-29) ================== - Fixed invoking outer pip from user site packages (PR :pr:`746`, fixes issue :issue:`745`) - Corrected the minimum pip version required to use an outer pip (PR :pr:`746`, fixes issue :issue:`745`) 1.1.0 (2024-02-29) ================== - Use external pip if available instead of installing, speeds up environment setup with virtualenv slightly and venv significantly. (PR :pr:`736`) - Stopped injecting ``wheel`` as a build dependency automatically, in the case of missing ``pyproject.toml`` -- by :user:`webknjaz`. (PR :pr:`716`) - Use ``importlib_metadata`` on Python <3.10.2 for bugfixes not present in those CPython standard libraries (not required when bootstrapping) -- by :user:`GianlucaFicarelli`. (PR :pr:`693`, fixes issue :issue:`692`) 1.0.3 (2023-09-06) ================== - Avoid CPython 3.8.17, 3.9.17, 3.10.12, and 3.11.4 tarfile symlink bug triggered by adding ``data_filter`` in 1.0.0. (PR :pr:`675`, fixes issue :issue:`674`) 1.0.0 (2023-09-01) ================== - Removed the ``toml`` library fallback; ``toml`` can no longer be used as a substitute for ``tomli`` (PR :pr:`567`) - Added ``runner`` parameter to ``util.project_wheel_metadata`` (PR :pr:`566`, fixes issue :issue:`553`) - Modified ``ProjectBuilder`` constructor signature, added alternative ``ProjectBuilder.from_env`` constructor, redefined ``env.IsolatedEnv`` interface, and exposed ``env.DefaultIsolatedEnv``, replacing ``env.IsolatedEnvBuilder``. The aim has been to shift responsibility for modifying the environment from the project builder to the ``IsolatedEnv`` entirely and to ensure that the builder will be initialised from an ``IsolatedEnv`` in a consistent manner. Mutating the project builder is no longer supported. (PR :pr:`537`) - ``virtualenv`` is no longer imported when using ``-n``, for faster builds (PR :pr:`636`, fixes issue :issue:`510`) - The SDist now contains the repository contents, including tests. Flit-core 3.8+ required. (PR :pr:`657`, :pr:`661`, fixes issue :issue:`656`) - The minimum version of ``importlib-metadata`` has been increased to 4.6 and Python 3.10 due to a bug in the standard library version with URL requirements in extras. This is still not required for 3.8 when bootstrapping (as long as you don't have URL requirements in extras). (PR :pr:`631`, fixes issue :issue:`630`) - Docs now built with Sphinx 7 (PR :pr:`660`) - Tests now contain a ``network`` marker (PR :pr:`649`, fixes issue :issue:`648`) - Config-settings are now passed to ``get_requires*`` hooks, fixing a long standing bug. If this affects your setuptools build, you can use ``-C--build-option= -C--build-option=