diff --git a/python/private/py_cc_toolchain_info.bzl b/python/private/py_cc_toolchain_info.bzl index fcf407516c..85f2508885 100644 --- a/python/private/py_cc_toolchain_info.bzl +++ b/python/private/py_cc_toolchain_info.bzl @@ -21,11 +21,19 @@ PyCcToolchainInfo = provider( :type: str The runtime's ABI flags, i.e. `sys.abiflags` (e.g. 't' for free-threaded builds). + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, "abi_tag": """\ :type: str -The ABI tag for extension modules, e.g. 'cpython-311' or 'cpython-313t'. +The ABI tag for extension modules, equivalent to the `SOABI` sysconfig var +(see [PEP 3149](https://peps.python.org/pep-3149/)), e.g. 'cpython-311' or +'cpython-313t'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, "headers": """\ :type: struct @@ -107,12 +115,18 @@ If available, information about C libraries, struct with fields: The [PEP 508](https://peps.python.org/pep-0508/) `platform_machine` marker value for the target architecture, e.g. 'x86_64', 'aarch64'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, "platform_tag": """\ :type: str | None The PEP 3149 / PEP 425 platform tag for extension modules, e.g. 'x86_64-linux-gnu', 'darwin', or 'win_amd64'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, "python_version": """ :type: str @@ -124,6 +138,9 @@ The Python Major.Minor version. The [PEP 508](https://peps.python.org/pep-0508/) `sys_platform` marker value for the target OS, e.g. 'linux', 'darwin', 'win32'. + +:::{versionadded} 2.2.0 +::: """, }, ) diff --git a/python/private/py_cc_toolchain_rule.bzl b/python/private/py_cc_toolchain_rule.bzl index 194ce7be78..fd3f430874 100644 --- a/python/private/py_cc_toolchain_rule.bzl +++ b/python/private/py_cc_toolchain_rule.bzl @@ -144,10 +144,20 @@ The runtime's ABI flags, i.e. `sys.abiflags`. If not set, or set to ``, the ABI flags are automatically derived from `--//python/config_settings:py_freethreaded` (e.g., `'t'` when free-threaded is enabled, or `''` otherwise). + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, ), "abi_tag": attr.string( - doc = "The ABI tag for extension modules, e.g. 'cpython-311'", + doc = """\ +The ABI tag for extension modules, equivalent to the `SOABI` sysconfig var +(see [PEP 3149](https://peps.python.org/pep-3149/)), e.g. 'cpython-311' or +'cpython-313t'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: +""", default = "", ), "headers": attr.label( @@ -171,7 +181,12 @@ attribute is available or not. providers = [[SentinelInfo], [CcInfo]], ), "libc": attr.string( - doc = "Target C library variant, e.g. 'glibc', 'musl'", + doc = """\ +Target C library variant, e.g. 'glibc', 'musl'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: +""", default = "", ), "libs": attr.label( @@ -182,6 +197,9 @@ attribute is available or not. "platform_machine": attr.string( doc = """ Target architecture as a PEP 508 `platform_machine` marker, e.g. 'x86_64', 'aarch64', 'x86_32'. + +:::{versionadded} VERSION_NEXT_FEATURE +::: """, default = "", ), @@ -192,6 +210,9 @@ Target architecture as a PEP 508 `platform_machine` marker, e.g. 'x86_64', 'aarc "sys_platform": attr.string( doc = """ Target OS as a PEP 508 `sys_platform` marker, e.g. 'linux', 'darwin', 'win32'. + +:::{versionadded} 2.2.0 +::: """, default = "", ), diff --git a/python/private/pypi/BUILD.bazel b/python/private/pypi/BUILD.bazel index 775aa0d9d2..bb84ff9280 100644 --- a/python/private/pypi/BUILD.bazel +++ b/python/private/pypi/BUILD.bazel @@ -522,6 +522,12 @@ bzl_library( deps = ["//python/private:envsubst"], ) +bzl_library( + name = "index_sources", + srcs = ["index_sources.bzl"], + deps = [":hash"], +) + bzl_library( name = "argparse", srcs = ["argparse.bzl"], @@ -542,12 +548,6 @@ bzl_library( srcs = ["hash.bzl"], ) -bzl_library( - name = "index_sources", - srcs = ["index_sources.bzl"], - deps = [":hash"], -) - bzl_library( name = "labels", srcs = ["labels.bzl"],