pax_global_header00006660000000000000000000000064146012134020014503gustar00rootroot0000000000000052 comment=1e67c062e9d1b1a6d5ffed621f4b29902bb764e5 build-1.2.1/000077500000000000000000000000001460121340200126035ustar00rootroot00000000000000build-1.2.1/.dockerignore000066400000000000000000000000571460121340200152610ustar00rootroot00000000000000.tox .*_cache *.egg-info Dockerfile build dist build-1.2.1/.github/000077500000000000000000000000001460121340200141435ustar00rootroot00000000000000build-1.2.1/.github/CODEOWNERS000066400000000000000000000000561460121340200155370ustar00rootroot00000000000000* @FFY00 @gaborbernat @layday @henryiii build-1.2.1/.github/dependabot.yml000066400000000000000000000002621460121340200167730ustar00rootroot00000000000000version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "daily" groups: actions: patterns: - "*" build-1.2.1/.github/workflows/000077500000000000000000000000001460121340200162005ustar00rootroot00000000000000build-1.2.1/.github/workflows/cd.yml000066400000000000000000000004051460121340200173100ustar00rootroot00000000000000name: CD on: workflow_dispatch: pull_request: branches: - main release: types: - published jobs: dist: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: hynek/build-and-inspect-python-package@v2 build-1.2.1/.github/workflows/reusable-change-detection.yml000066400000000000000000000037561460121340200237370ustar00rootroot00000000000000name: 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@v4 - 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}" build-1.2.1/.github/workflows/reusable-docs.yml000066400000000000000000000010061460121340200214500ustar00rootroot00000000000000name: check on: workflow_call: jobs: docs: runs-on: ubuntu-latest env: PY_COLORS: 1 TOX_PARALLEL_NO_SPINNER: 1 steps: - uses: actions/checkout@v4 - name: Setup Python 3.10 uses: actions/setup-python@v5 with: python-version: "3.10" - 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 build-1.2.1/.github/workflows/reusable-pytest.yml000066400000000000000000000050511460121340200220540ustar00rootroot00000000000000name: 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: - "pypy-3.8" - "pypy-3.9" - "pypy-3.10" - "3.12" - "3.11" - "3.10" - "3.9" - "3.8" 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@v4 with: fetch-depth: 0 - name: Setup python for test ${{ matrix.py }} uses: actions/setup-python@v5 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: Setup python for tox uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install tox run: python -m pip install tox - 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@v4 if: always() env: PYTHON: ${{ matrix.python }} with: file: ./.tox/coverage.xml flags: tests env_vars: PYTHON name: ${{ matrix.py }} - ${{ matrix.os }} build-1.2.1/.github/workflows/reusable-type.yml000066400000000000000000000010011460121340200214740ustar00rootroot00000000000000name: type on: workflow_call: jobs: type: runs-on: ubuntu-latest env: PY_COLORS: 1 TOX_PARALLEL_NO_SPINNER: 1 steps: - uses: actions/checkout@v4 - name: Setup Python 3.9 uses: actions/setup-python@v5 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 build-1.2.1/.github/workflows/test.yml000066400000000000000000000031161460121340200177030ustar00rootroot00000000000000name: 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) }} build-1.2.1/.gitignore000066400000000000000000000005231460121340200145730ustar00rootroot00000000000000# 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 build-1.2.1/.pre-commit-config.yaml000066400000000000000000000027011460121340200170640ustar00rootroot00000000000000ci: autofix_prs: false autoupdate_commit_msg: "pre-commit: bump repositories" repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.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.16 hooks: - id: validate-pyproject - repo: https://github.com/asottile/blacken-docs rev: 1.16.0 hooks: - id: blacken-docs additional_dependencies: [black==23.*] - repo: https://github.com/pre-commit/mirrors-prettier rev: "v4.0.0-alpha.8" hooks: - id: prettier - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.4 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/codespell-project/codespell rev: "v2.2.6" 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.3.1" hooks: - id: tox-ini-fmt build-1.2.1/.readthedocs.yml000066400000000000000000000002271460121340200156720ustar00rootroot00000000000000version: 2 build: os: ubuntu-20.04 tools: python: "3.10" python: install: - method: pip path: . extra_requirements: [docs] build-1.2.1/CHANGELOG.rst000066400000000000000000000277751460121340200146460ustar00rootroot00000000000000+++++++++ Changelog +++++++++ 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=