diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67d0864a5..1e3052598 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 @@ -115,7 +115,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/docs/plugins/environment/virtual.md b/docs/plugins/environment/virtual.md index 624349840..a20ebd6bc 100644 --- a/docs/plugins/environment/virtual.md +++ b/docs/plugins/environment/virtual.md @@ -68,15 +68,16 @@ The following options are recognized for internal Python resolution. | `3.10` | | `3.11` | | `3.12` | +| `3.13` | The source of distributions is the [python-build-standalone](https://github.com/indygreg/python-build-standalone) project. -Some distributions have [variants](https://gregoryszorc.com/docs/python-build-standalone/main/running.html) that may be configured with the `HATCH_PYTHON_VARIANT_` environment variable where `` is the uppercase version of one of the following: +Some distributions have [variants](https://gregoryszorc.com/docs/python-build-standalone/main/running.html) that may be configured. Options may be combined. -| Platform | Options | -| --- | --- | -| Linux | | -| Windows | | +| Option | Platforms | Allowed values | +| --- | --- | --- | +| `HATCH_PYTHON_VARIANT_CPU` | | | +| `HATCH_PYTHON_VARIANT_GIL` | | | ### PyPy diff --git a/docs/tutorials/python/manage.md b/docs/tutorials/python/manage.md index 257c69f01..43ca6c650 100644 --- a/docs/tutorials/python/manage.md +++ b/docs/tutorials/python/manage.md @@ -70,7 +70,7 @@ $ hatch python show ┏━━━━━━┳━━━━━━━━━┓ ┃ Name ┃ Version ┃ ┡━━━━━━╇━━━━━━━━━┩ -│ 3.12 │ 3.12.3 │ +│ 3.12 │ 3.12.7 │ └──────┴─────────┘ Available ┏━━━━━━━━━━┳━━━━━━━━━┓ @@ -78,13 +78,15 @@ $ hatch python show ┡━━━━━━━━━━╇━━━━━━━━━┩ │ 3.7 │ 3.7.9 │ ├──────────┼─────────┤ -│ 3.8 │ 3.8.19 │ +│ 3.8 │ 3.8.20 │ ├──────────┼─────────┤ -│ 3.9 │ 3.9.19 │ +│ 3.9 │ 3.9.20 │ ├──────────┼─────────┤ -│ 3.10 │ 3.10.14 │ +│ 3.10 │ 3.10.15 │ ├──────────┼─────────┤ -│ 3.11 │ 3.11.9 │ +│ 3.11 │ 3.11.10 │ +├──────────┼─────────┤ +│ 3.13 │ 3.13.0 │ ├──────────┼─────────┤ │ pypy2.7 │ 7.3.15 │ ├──────────┼─────────┤ diff --git a/docs/why.md b/docs/why.md index 95e7cd57c..aec67e1bc 100644 --- a/docs/why.md +++ b/docs/why.md @@ -33,7 +33,6 @@ Here we compare to both `tox` and `nox`. At a high level, there are a few common In Hatch, [environments](environment.md) are treated as isolated areas where you can execute arbitrary commands at runtime. For example, you can define a single test environment with named [scripts](config/environment/overview.md#scripts) that runs unit vs non-unit tests, each command being potentially very long but named however you wish so you get to control the interface. Since environments are treated as places where work is performed, you can also [spawn a shell](environment.md#entering-environments) into any which will execute a subprocess that automatically drops into your [shell of choice](config/hatch.md#shell). Your shell will be configured appropriately like `python` on PATH being updated and the prompt being changed to reflect the chosen environment. - **Configuration:** - - `tox` only supports INI configuration and if one desires putting that in the standard `pyproject.toml` file then [it must be](https://tox.wiki/en/4.11.4/config.html#pyproject-toml) a multi-line string containing the INI config which would preclude syntax highlighting. Hatch allows for TOML-based config just like most other tools in the Python ecosystem. - `nox` config is defined in Python which often leads to increased verbosity and makes it challenging to onboard folks compared to a standardized format with known behaviors. - **Extensibility:** - `tox` allows for [extending](https://tox.wiki/en/4.11.4/plugins_api.html) most aspects of its functionality however the API is so low-level and attached to internals that creating plugins may be challenging. For example, [here](https://github.com/DataDog/integrations-core/blob/4f4cf10613797e97e7155c75859532a0732d1dff/datadog_checks_dev/datadog_checks/dev/plugin/tox.py) is a `tox` plugin that was [migrated](https://github.com/DataDog/integrations-core/blob/4eb2a1d530bcf810542cf9e45b48fadc7057301c/datadog_checks_dev/datadog_checks/dev/plugin/hatch/environment_collector.py#L100-L148) to an equivalent Hatch [environment collector plugin](plugins/environment-collector/reference.md). diff --git a/pyproject.toml b/pyproject.toml index 5d8b689e2..4fd7e3da8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Build Tools", diff --git a/scripts/update_distributions.py b/scripts/update_distributions.py index 0767d16c0..6f3e89de9 100644 --- a/scripts/update_distributions.py +++ b/scripts/update_distributions.py @@ -11,8 +11,8 @@ OUTPUT_FILE = ROOT / 'src' / 'hatch' / 'python' / 'distributions.py' ARCHES = {('linux', 'x86'): 'i686', ('windows', 'x86_64'): 'amd64', ('windows', 'x86'): 'i386'} -# system, architecture, ABI, variant -MAX_IDENTIFIER_COMPONENTS = 4 +# system, architecture, ABI, CPU variant, GIL variant +MAX_IDENTIFIER_COMPONENTS = 5 def parse_distributions(contents: str, constant: str): @@ -34,9 +34,9 @@ def parse_distributions(contents: str, constant: str): elif os == 'macos' and arch == 'aarch64': arch = 'arm64' - # Force everything to have a variant to maintain structure + # Force everything to have the proper number of variants to maintain structure if len(data) != MAX_IDENTIFIER_COMPONENTS: - data.append('') + data.extend(('', '')) data[1] = ARCHES.get((os, arch), arch) yield identifier, tuple(data), source diff --git a/src/hatch/env/internal/test.py b/src/hatch/env/internal/test.py index da2e650aa..d507b66e5 100644 --- a/src/hatch/env/internal/test.py +++ b/src/hatch/env/internal/test.py @@ -21,5 +21,5 @@ def get_default_config() -> dict[str, Any]: 'cov-combine': 'coverage combine', 'cov-report': 'coverage report', }, - 'matrix': [{'python': ['3.12', '3.11', '3.10', '3.9', '3.8']}], + 'matrix': [{'python': ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8']}], } diff --git a/src/hatch/python/distributions.py b/src/hatch/python/distributions.py index 793bd643d..dc35dfe52 100644 --- a/src/hatch/python/distributions.py +++ b/src/hatch/python/distributions.py @@ -8,225 +8,288 @@ '3.10', '3.11', '3.12', + '3.13', 'pypy2.7', 'pypy3.9', 'pypy3.10', ) DISTRIBUTIONS: dict[str, dict[tuple[str, ...], str]] = { + '3.13': { + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'aarch64', 'gnu', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-aarch64-unknown-linux-gnu-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 'armv7', 'gnueabi', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabi', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-armv7-unknown-linux-gnueabi-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 'armv7', 'gnueabihf', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabihf', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-armv7-unknown-linux-gnueabihf-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 'ppc64le', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'ppc64le', 'gnu', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-ppc64le-unknown-linux-gnu-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 's390x', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-s390x-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 's390x', 'gnu', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-s390x-unknown-linux-gnu-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-unknown-linux-gnu-freethreaded%2Bpgo-full.tar.zst', + ('linux', 'x86_64', 'gnu', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v2', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v2-unknown-linux-gnu-freethreaded%2Bpgo-full.tar.zst', + ('linux', 'x86_64', 'gnu', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v3', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v3-unknown-linux-gnu-freethreaded%2Bpgo-full.tar.zst', + ('linux', 'x86_64', 'gnu', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v4', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v4-unknown-linux-gnu-freethreaded%2Bnoopt-full.tar.zst', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-i686-pc-windows-msvc-freethreaded%2Bpgo-full.tar.zst', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-pc-windows-msvc-freethreaded%2Bpgo-full.tar.zst', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-aarch64-apple-darwin-freethreaded%2Bpgo-full.tar.zst', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', 'freethreaded'): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.13.0%2B20241008-x86_64-apple-darwin-freethreaded%2Bpgo-full.tar.zst', + }, '3.12': { - ('linux', 'aarch64', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-aarch64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'armv7', 'gnueabi', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-armv7-unknown-linux-gnueabi-install_only.tar.gz', - ('linux', 'armv7', 'gnueabihf', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-armv7-unknown-linux-gnueabihf-install_only.tar.gz', - ('linux', 'ppc64le', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz', - ('linux', 's390x', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-s390x-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v2-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v4-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v2-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v3-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64_v4-unknown-linux-musl-install_only.tar.gz', - ('windows', 'i386', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-i686-pc-windows-msvc-install_only.tar.gz', - ('windows', 'amd64', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64-pc-windows-msvc-install_only.tar.gz', - ('macos', 'arm64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-aarch64-apple-darwin-install_only.tar.gz', - ('macos', 'x86_64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-x86_64-apple-darwin-install_only.tar.gz', + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabi', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabihf', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz', + ('linux', 'ppc64le', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 's390x', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-s390x-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.12.7%2B20241008-x86_64-apple-darwin-install_only_stripped.tar.gz', }, '3.11': { - ('linux', 'aarch64', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-aarch64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'armv7', 'gnueabi', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-armv7-unknown-linux-gnueabi-install_only.tar.gz', - ('linux', 'armv7', 'gnueabihf', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-armv7-unknown-linux-gnueabihf-install_only.tar.gz', - ('linux', 'ppc64le', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz', - ('linux', 's390x', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-s390x-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'i686', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabi', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabihf', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz', + ('linux', 'ppc64le', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 's390x', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-s390x-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.11.10%2B20241008-x86_64-apple-darwin-install_only_stripped.tar.gz', + ('linux', 'i686', 'gnu', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20230826/cpython-3.11.5%2B20230826-i686-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v2-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v4-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v2-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v3-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64_v4-unknown-linux-musl-install_only.tar.gz', - ('windows', 'i386', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-i686-pc-windows-msvc-install_only.tar.gz', - ('windows', 'amd64', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64-pc-windows-msvc-install_only.tar.gz', - ('macos', 'arm64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-aarch64-apple-darwin-install_only.tar.gz', - ('macos', 'x86_64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.11.9%2B20240415-x86_64-apple-darwin-install_only.tar.gz', }, '3.10': { - ('linux', 'aarch64', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-aarch64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'armv7', 'gnueabi', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-armv7-unknown-linux-gnueabi-install_only.tar.gz', - ('linux', 'armv7', 'gnueabihf', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-armv7-unknown-linux-gnueabihf-install_only.tar.gz', - ('linux', 'ppc64le', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz', - ('linux', 's390x', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-s390x-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'i686', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabi', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabihf', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz', + ('linux', 'ppc64le', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 's390x', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-s390x-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.10.15%2B20241008-x86_64-apple-darwin-install_only_stripped.tar.gz', + ('linux', 'i686', 'gnu', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20230826/cpython-3.10.13%2B20230826-i686-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v2-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v4-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v2-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v3-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64_v4-unknown-linux-musl-install_only.tar.gz', - ('windows', 'i386', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-i686-pc-windows-msvc-install_only.tar.gz', - ('windows', 'amd64', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64-pc-windows-msvc-install_only.tar.gz', - ('macos', 'arm64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-aarch64-apple-darwin-install_only.tar.gz', - ('macos', 'x86_64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.10.14%2B20240415-x86_64-apple-darwin-install_only.tar.gz', }, '3.9': { - ('linux', 'aarch64', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-aarch64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'armv7', 'gnueabi', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-armv7-unknown-linux-gnueabi-install_only.tar.gz', - ('linux', 'armv7', 'gnueabihf', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-armv7-unknown-linux-gnueabihf-install_only.tar.gz', - ('linux', 'ppc64le', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-ppc64le-unknown-linux-gnu-install_only.tar.gz', - ('linux', 's390x', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-s390x-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'i686', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabi', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz', + ('linux', 'armv7', 'gnueabihf', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz', + ('linux', 'ppc64le', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 's390x', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-s390x-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v2-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v4-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v2', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v2-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v3', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v3-unknown-linux-musl-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v4', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64_v4-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241008/cpython-3.9.20%2B20241008-x86_64-apple-darwin-install_only_stripped.tar.gz', + ('linux', 'i686', 'gnu', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20230826/cpython-3.9.18%2B20230826-i686-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v2-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v3-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v4-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v2'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v2-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v3'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v3-unknown-linux-musl-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v4'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64_v4-unknown-linux-musl-install_only.tar.gz', - ('windows', 'i386', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-i686-pc-windows-msvc-install_only.tar.gz', - ('windows', 'amd64', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64-pc-windows-msvc-install_only.tar.gz', - ('macos', 'arm64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-aarch64-apple-darwin-install_only.tar.gz', - ('macos', 'x86_64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.9.19%2B20240415-x86_64-apple-darwin-install_only.tar.gz', }, '3.8': { - ('linux', 'aarch64', 'gnu', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-aarch64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'i686', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'gnu', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz', + ('linux', 'x86_64', 'musl', 'v1', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-unknown-linux-musl-install_only_stripped.tar.gz', + ('windows', 'i386', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-i686-pc-windows-msvc-install_only_stripped.tar.gz', + ('windows', 'amd64', 'msvc', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-pc-windows-msvc-install_only_stripped.tar.gz', + ('macos', 'arm64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-aarch64-apple-darwin-install_only_stripped.tar.gz', + ('macos', 'x86_64', '', '', ''): + 'https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.8.20%2B20241002-x86_64-apple-darwin-install_only_stripped.tar.gz', + ('linux', 'i686', 'gnu', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20230826/cpython-3.8.17%2B20230826-i686-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'gnu', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-x86_64-unknown-linux-gnu-install_only.tar.gz', - ('linux', 'x86_64', 'musl', 'v1'): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-x86_64-unknown-linux-musl-install_only.tar.gz', - ('windows', 'i386', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-i686-pc-windows-msvc-install_only.tar.gz', - ('windows', 'amd64', 'msvc', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-x86_64-pc-windows-msvc-install_only.tar.gz', - ('macos', 'arm64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-aarch64-apple-darwin-install_only.tar.gz', - ('macos', 'x86_64', '', ''): - 'https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.8.19%2B20240415-x86_64-apple-darwin-install_only.tar.gz', }, '3.7': { - ('linux', 'x86_64', 'gnu', ''): + ('linux', 'x86_64', 'gnu', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.7.9-x86_64-unknown-linux-gnu-pgo-20200823T0036.tar.zst', - ('linux', 'x86_64', 'musl', ''): + ('linux', 'x86_64', 'musl', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.7.9-x86_64-unknown-linux-musl-noopt-20200823T0036.tar.zst', - ('windows', 'i386', 'msvc', ''): + ('windows', 'i386', 'msvc', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.7.9-i686-pc-windows-msvc-shared-pgo-20200823T0159.tar.zst', - ('windows', 'amd64', 'msvc', ''): + ('windows', 'amd64', 'msvc', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20200822/cpython-3.7.9-x86_64-pc-windows-msvc-shared-pgo-20200823T0118.tar.zst', - ('macos', 'x86_64', '', ''): + ('macos', 'x86_64', '', '', ''): 'https://github.com/indygreg/python-build-standalone/releases/download/20200823/cpython-3.7.9-x86_64-apple-darwin-pgo-20200823T2228.tar.zst', }, 'pypy3.10': { - ('linux', 'aarch64', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy3.10-v7.3.15-aarch64.tar.bz2', - ('linux', 'x86_64', 'gnu', ''): + ('linux', 'x86_64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy3.10-v7.3.15-linux64.tar.bz2', - ('windows', 'amd64', 'msvc', ''): + ('windows', 'amd64', 'msvc', '', ''): 'https://downloads.python.org/pypy/pypy3.10-v7.3.15-win64.zip', - ('macos', 'arm64', '', ''): + ('macos', 'arm64', '', '', ''): 'https://downloads.python.org/pypy/pypy3.10-v7.3.15-macos_arm64.tar.bz2', - ('macos', 'x86_64', '', ''): + ('macos', 'x86_64', '', '', ''): 'https://downloads.python.org/pypy/pypy3.10-v7.3.15-macos_x86_64.tar.bz2', }, 'pypy3.9': { - ('linux', 'aarch64', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy3.9-v7.3.15-aarch64.tar.bz2', - ('linux', 'x86_64', 'gnu', ''): + ('linux', 'x86_64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy3.9-v7.3.15-linux64.tar.bz2', - ('windows', 'amd64', 'msvc', ''): + ('windows', 'amd64', 'msvc', '', ''): 'https://downloads.python.org/pypy/pypy3.9-v7.3.15-win64.zip', - ('macos', 'arm64', '', ''): + ('macos', 'arm64', '', '', ''): 'https://downloads.python.org/pypy/pypy3.9-v7.3.15-macos_arm64.tar.bz2', - ('macos', 'x86_64', '', ''): + ('macos', 'x86_64', '', '', ''): 'https://downloads.python.org/pypy/pypy3.9-v7.3.15-macos_x86_64.tar.bz2', }, 'pypy2.7': { - ('linux', 'aarch64', 'gnu', ''): + ('linux', 'aarch64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy2.7-v7.3.15-aarch64.tar.bz2', - ('linux', 'x86_64', 'gnu', ''): + ('linux', 'x86_64', 'gnu', '', ''): 'https://downloads.python.org/pypy/pypy2.7-v7.3.15-linux64.tar.bz2', - ('windows', 'amd64', 'msvc', ''): + ('windows', 'amd64', 'msvc', '', ''): 'https://downloads.python.org/pypy/pypy2.7-v7.3.15-win64.zip', - ('macos', 'arm64', '', ''): + ('macos', 'arm64', '', '', ''): 'https://downloads.python.org/pypy/pypy2.7-v7.3.15-macos_arm64.tar.bz2', - ('macos', 'x86_64', '', ''): + ('macos', 'x86_64', '', '', ''): 'https://downloads.python.org/pypy/pypy2.7-v7.3.15-macos_x86_64.tar.bz2', }, } diff --git a/src/hatch/python/resolve.py b/src/hatch/python/resolve.py index f25002cdb..d893e6152 100644 --- a/src/hatch/python/resolve.py +++ b/src/hatch/python/resolve.py @@ -165,7 +165,7 @@ def python_path(self) -> str: return f'{directory}/bin/pypy' -def get_distribution(name: str, source: str = '', variant: str = '') -> Distribution: +def get_distribution(name: str, source: str = '', variant_cpu: str = '', variant_gil: str = '') -> Distribution: if source: return _get_distribution_class(source)(name, source) @@ -184,14 +184,17 @@ def get_distribution(name: str, source: str = '', variant: str = '') -> Distribu system = 'linux' abi = 'gnu' if any(platform.libc_ver()) else 'musl' - if not variant: - variant = _get_default_variant(name, system, arch) + if not variant_cpu: + variant_cpu = _get_default_variant_cpu(name, system, arch) - key = (system, arch, abi, variant) + if not variant_gil: + variant_gil = _get_default_variant_gil() + + key = (system, arch, abi, variant_cpu, variant_gil) keys: dict[tuple, str] = DISTRIBUTIONS[name] if key not in keys: - message = f'Could not find a default source for {name=} {system=} {arch=} {abi=} {variant=}' + message = f'Could not find a default source for {name=} {system=} {arch=} {abi=} {variant_cpu=} {variant_gil=}' raise PythonDistributionResolutionError(message) source = keys[key] @@ -211,7 +214,7 @@ def get_compatible_distributions() -> dict[str, Distribution]: return distributions -def _guess_linux_variant() -> str: +def _guess_linux_variant_cpu() -> str: # Use the highest that we know is most common when we can't parse CPU data default = 'v3' try: @@ -248,12 +251,16 @@ def _guess_linux_variant() -> str: return default -def _get_default_variant(name: str, system: str, arch: str) -> str: +def _get_default_variant_cpu(name: str, system: str, arch: str) -> str: # not PyPy if name[0].isdigit(): - # https://gregoryszorc.com/docs/python-build-standalone/main/running.html - variant = os.environ.get(f'HATCH_PYTHON_VARIANT_{system.upper()}', '').lower() + variant = os.environ.get( + 'HATCH_PYTHON_VARIANT_CPU', + # Legacy name + os.environ.get(f'HATCH_PYTHON_VARIANT_{system.upper()}', ''), + ).lower() + # https://gregoryszorc.com/docs/python-build-standalone/main/running.html if system == 'linux' and arch == 'x86_64': # Intel-specific optimizations depending on age of release if variant: @@ -263,11 +270,15 @@ def _get_default_variant(name: str, system: str, arch: str) -> str: return 'v1' if name != '3.7': - return _guess_linux_variant() + return _guess_linux_variant_cpu() return '' +def _get_default_variant_gil() -> str: + return os.environ.get('HATCH_PYTHON_VARIANT_GIL', '').lower() + + def _get_distribution_class(source: str) -> type[Distribution]: if source.startswith('https://github.com/indygreg/python-build-standalone/releases/download/'): return CPythonStandaloneDistribution diff --git a/src/hatch/template/files_feature_ci.py b/src/hatch/template/files_feature_ci.py index 8327f7640..d7dfee9d9 100644 --- a/src/hatch/template/files_feature_ci.py +++ b/src/hatch/template/files_feature_ci.py @@ -28,7 +28,7 @@ class CommandLinePackage(File): fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v3 diff --git a/tests/cli/env/test_show.py b/tests/cli/env/test_show.py index e7c3e0956..09edc8286 100644 --- a/tests/cli/env/test_show.py +++ b/tests/cli/env/test_show.py @@ -71,6 +71,7 @@ def test_default_as_json(hatch, temp_dir, config_file): 'default', 'hatch-build', 'hatch-static-analysis', + 'hatch-test.py3.13', 'hatch-test.py3.12', 'hatch-test.py3.11', 'hatch-test.py3.10', diff --git a/tests/helpers/templates/new/feature_ci.py b/tests/helpers/templates/new/feature_ci.py index 0ce2a06b3..519371cff 100644 --- a/tests/helpers/templates/new/feature_ci.py +++ b/tests/helpers/templates/new/feature_ci.py @@ -34,7 +34,7 @@ def get_files(**kwargs): fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v3 diff --git a/tests/python/test_resolve.py b/tests/python/test_resolve.py index 7af955cf7..394d324ad 100644 --- a/tests/python/test_resolve.py +++ b/tests/python/test_resolve.py @@ -19,7 +19,7 @@ def test_unknown_distribution(self): reason='No variants for this platform and architecture combination', ) def test_resolution_error(self, platform): - with EnvVars({f'HATCH_PYTHON_VARIANT_{platform.name.upper()}': 'foo'}), pytest.raises( + with EnvVars({'HATCH_PYTHON_VARIANT_CPU': 'foo'}), pytest.raises( PythonDistributionResolutionError, match=f"Could not find a default source for name='3.11' system='{platform.name}' arch=", ): @@ -76,68 +76,83 @@ def test_pypy_custom(self): assert dist.python_path == 'foo/bar/python' -@pytest.mark.parametrize( - ('system', 'variant'), - [ - ('linux', 'v1'), - ('linux', 'v2'), - ('linux', 'v3'), - ('linux', 'v4'), - ], -) -def test_variants(platform, system, variant, current_arch): - if platform.name != system: - pytest.skip(f'Skipping test for: {system}') - - with EnvVars({f'HATCH_PYTHON_VARIANT_{system.upper()}': variant}): - dist = get_distribution('3.11') - - if system == 'linux' and (current_arch != 'x86_64' or variant == 'v1'): - assert variant not in dist.source - else: - assert variant in dist.source - - -@pytest.mark.skipif( - not (sys.platform == 'linux' and machine().lower() == 'x86_64'), - reason='No variants for this platform and architecture combination', -) -@pytest.mark.parametrize( - ('variant', 'flags'), - [ - pytest.param( - 'v1', - # Just guessing here... - 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2', - id='v1', - ), - pytest.param( - 'v2', - # Intel Core i7-860 - 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp dtherm ida flush_l1d', - id='v2', - ), - pytest.param( - 'v3', - # Intel Core i5-5300U - 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d', - id='v3', - ), - pytest.param( - 'v4', - # Just guessing here... - 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d avx512f avx512bw avx512cd avx512dq avx512vl', - id='v4', - ), - ], -) -def test_guess_variant(fs, variant, flags): - fs.create_file('/proc/cpuinfo', contents=flags) - - with EnvVars({'HATCH_PYTHON_VARIANT_LINUX': ''}): - dist = get_distribution('3.11') - if variant == 'v1': - for v in ('v1', 'v2', 'v3', 'v4'): - assert v not in dist.source +@pytest.mark.requires_linux +class TestVariantCPU: + def test_legacy_option(self, current_arch): + variant = 'v4' + with EnvVars({'HATCH_PYTHON_VARIANT_LINUX': variant}): + dist = get_distribution('3.12') + + if current_arch != 'x86_64': + assert variant not in dist.source + else: + assert variant in dist.source + + @pytest.mark.parametrize('variant', ['v1', 'v2', 'v3', 'v4']) + def test_compatibility(self, variant, current_arch): + with EnvVars({'HATCH_PYTHON_VARIANT_CPU': variant}): + dist = get_distribution('3.12') + + if current_arch != 'x86_64' or variant == 'v1': + assert variant not in dist.source else: assert variant in dist.source + + @pytest.mark.skipif( + machine().lower() != 'x86_64', + reason='No variants for this platform and architecture combination', + ) + @pytest.mark.parametrize( + ('variant', 'flags'), + [ + pytest.param( + 'v1', + # Just guessing here... + 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2', + id='v1', + ), + pytest.param( + 'v2', + # Intel Core i7-860 + 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp dtherm ida flush_l1d', + id='v2', + ), + pytest.param( + 'v3', + # Intel Core i5-5300U + 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d', + id='v3', + ), + pytest.param( + 'v4', + # Just guessing here... + 'flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts vnmi md_clear flush_l1d avx512f avx512bw avx512cd avx512dq avx512vl', + id='v4', + ), + ], + ) + def test_guess_variant(self, fs, variant, flags): + fs.create_file('/proc/cpuinfo', contents=flags) + + with EnvVars({'HATCH_PYTHON_VARIANT_CPU': ''}): + dist = get_distribution('3.12') + if variant == 'v1': + for v in ('v1', 'v2', 'v3', 'v4'): + assert v not in dist.source + else: + assert variant in dist.source + + +class TestVariantGIL: + def test_compatible(self): + with EnvVars({'HATCH_PYTHON_VARIANT_GIL': 'freethreaded'}): + dist = get_distribution('3.13') + + assert 'freethreaded' in dist.source + + def test_incompatible(self, platform): + with EnvVars({'HATCH_PYTHON_VARIANT_GIL': 'freethreaded'}), pytest.raises( + PythonDistributionResolutionError, + match=f"Could not find a default source for name='3.12' system='{platform.name}' arch=", + ): + get_distribution('3.12')