-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
specifications: add build-details.json (PEP 739)
Signed-off-by: Filipe Laíns <[email protected]>
- Loading branch information
Showing
9 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
source/guides/github-actions-ci-cd-sample/* @webknjaz | ||
source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst @webknjaz | ||
|
||
# build-details.json | ||
source/specifications/build-details/ @FFY00 | ||
source/specifications/specs/build-details-*.json @FFY00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
source/specifications/build-details/examples/build-details-v1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"schema_version": "1.0", | ||
"base_prefix": "/usr", | ||
"base_interpreter": "/usr/bin/python", | ||
"platform": "linux-x86_64", | ||
"language": { | ||
"version": "3.14", | ||
"version_info": { | ||
"major": 3, | ||
"minor": 14, | ||
"micro": 0, | ||
"releaselevel": "alpha", | ||
"serial": 0 | ||
} | ||
}, | ||
"implementation": { | ||
"name": "cpython", | ||
"version": { | ||
"major": 3, | ||
"minor": 14, | ||
"micro": 0, | ||
"releaselevel": "alpha", | ||
"serial": 0 | ||
}, | ||
"hexversion": 51249312, | ||
"cache_tag": "cpython-314", | ||
"_multiarch": "x86_64-linux-gnu" | ||
}, | ||
"abi": { | ||
"flags": ["t", "d"], | ||
"extension_suffix": ".cpython-314-x86_64-linux-gnu.so", | ||
"stable_abi_suffix": ".abi3.so" | ||
}, | ||
"suffixes": { | ||
"source": [".py"], | ||
"bytecode": [".pyc"], | ||
"optimized_bytecode": [".pyc"], | ||
"debug_bytecode": [".pyc"], | ||
"extensions": [".cpython-314-x86_64-linux-gnu.so", ".abi3.so", ".so"] | ||
}, | ||
"libpython": { | ||
"dynamic": "/usr/lib/libpython3.14.so.1.0", | ||
"dynamic_stableabi": "/usr/lib/libpython3.so", | ||
"static": "/usr/lib/python3.14/config-3.14-x86_64-linux-gnu/libpython3.14.a", | ||
"link_extensions": true | ||
}, | ||
"c_api": { | ||
"headers": "/usr/include/python3.14", | ||
"pkgconfig_path": "/usr/lib/pkgconfig" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _build-details: | ||
|
||
====================== | ||
``build-details.json`` | ||
====================== | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
v1.0 <v1.0> | ||
|
||
|
||
The ``build-details.json`` file is a standardized file format that provides | ||
build-specfic information of a Python installation, such as its version, | ||
extension ABI details, and other information that is specific to that particular | ||
build of Python. | ||
|
||
Starting from Python 3.14, a ``build-details.json`` file is installed in the | ||
platform-independent standard library directory (``stdlib``, eg. | ||
``/usr/lib/python3.14/build-details.json``). | ||
|
||
Please refer to the :ref:`latest version <build-details-v1.0>` for its | ||
specification. | ||
|
||
.. | ||
Update to point to the latest version! | ||
.. literalinclude:: examples/build-details-v1.0.json | ||
:caption: Example | ||
:language: json | ||
:linenos: | ||
|
||
|
||
Changelog | ||
--------- | ||
|
||
.. | ||
Order in decreasing order. | ||
v1.0 | ||
~~~~ | ||
|
||
.. list-table:: | ||
|
||
* - Specification | ||
- :ref:`build-details-v1.0` | ||
|
||
* - Schema | ||
- https://packaging.pypa.io/specifications/schemas/build-details-v1.0.schema.json | ||
|
||
|
||
- Initial version, introduced by :pep:`739`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _build-details-v1.0: | ||
|
||
=========================== | ||
``build-details.json`` v1.0 | ||
=========================== | ||
|
||
|
||
Specification | ||
------------- | ||
|
||
.. jsonschema:: ../schemas/build-details-v1.0.schema.json | ||
:lift_title: false | ||
|
||
|
||
Example | ||
------- | ||
|
||
.. literalinclude:: examples/build-details-v1.0.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.