summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@microsoft.com>2022-10-07 10:54:20 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-19 17:32:57 +0100
commitaf3beeecfbce858669065f2e9b67db597e922c15 (patch)
tree9476a309919bc731953e30feb9f6850b852dd552 /documentation
parent9dd5d8d1adfaf2d8e4b9f0221ff95a88d5279396 (diff)
downloadpoky-af3beeecfbce858669065f2e9b67db597e922c15.tar.gz
ref-manual: add pypi class
Add missing documentation for the pypi class. (From yocto-docs rev: d387ca891ad3a7d00ec3cb5f994dc5832c885d54) Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/classes.rst15
-rw-r--r--documentation/ref-manual/variables.rst8
2 files changed, 23 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index d94db03616..f6f341e104 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2005,6 +2005,21 @@ When inherited by a recipe, the ``perlnative`` class supports using the
2005native version of Perl built by the build system rather than using the 2005native version of Perl built by the build system rather than using the
2006version provided by the build host. 2006version provided by the build host.
2007 2007
2008.. _ref-classes-pypi:
2009
2010``pypi.bbclass``
2011================
2012
2013The ``pypi`` class sets variables appropriately for recipes that build
2014Python modules from `PyPI <https://pypi.org/>`__, the Python Package Index.
2015By default it determines the PyPI package name based upon :term:`BPN`
2016(stripping the "python-" or "python3-" prefix off if present), however in
2017some cases you may need to set it manually in the recipe by setting
2018:term:`PYPI_PACKAGE`.
2019
2020Variables set by the ``pypi`` class include :term:`SRC_URI`, :term:`SECTION`,
2021:term:`HOMEPAGE`, :term:`UPSTREAM_CHECK_URI`, and :term:`UPSTREAM_CHECK_REGEX`.
2022
2008.. _ref-classes-python_flit_core: 2023.. _ref-classes-python_flit_core:
2009 2024
2010``python_flit_core.bbclass`` 2025``python_flit_core.bbclass``
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 067f8eed63..2685c61219 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -6177,6 +6177,14 @@ system and gives an overview of their function and contents.
6177 6177
6178 :term:`PV` is the default value of the :term:`PKGV` variable. 6178 :term:`PV` is the default value of the :term:`PKGV` variable.
6179 6179
6180 :term:`PYPI_PACKAGE`
6181 When inheriting the :ref:`pypi <ref-classes-pypi>` class, specifies the
6182 `PyPI <https://pypi.org/>`__ package name to be built. The default value
6183 is set based upon :term:`BPN` (stripping any "python-" or "python3-"
6184 prefix off if present), however for some packages it will need to be set
6185 explicitly if that will not match the package name (e.g. where the
6186 package name has a prefix, underscores, uppercase letters etc.)
6187
6180 :term:`PYTHON_ABI` 6188 :term:`PYTHON_ABI`
6181 When used by recipes that inherit the 6189 When used by recipes that inherit the
6182 :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the 6190 :ref:`setuptools3 <ref-classes-setuptools3>` class, denotes the