summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
AgeCommit message (Collapse)Author
2022-02-27python3-git: upgrade 3.1.26 -> 3.1.27wangmy
Changelog: ========= -Reduced startup time due to optimized imports. -Fix a vulenerability that could cause great slowdowns when encountering long remote path names when pulling/fetching. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-markupsafe: upgrade 2.0.1 -> 2.1.0wangmy
Changelog: ========== Drop support for Python 3.6. :pr:'262' Remove soft_unicode, which was previously deprecated. Use soft_str instead. :pr:'261' Raise error on missing single placeholder during string interpolation. :issue:'225' Disable speedups module for GraalPython. :issue:'277' Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-hypothesis: upgrade 6.36.2 -> 6.37.2wangmy
This patch fixes a bug in stateful testing, where returning a single value wrapped in :func:'~hypothesis.stateful.multiple' would be printed such that the assigned variable was a tuple rather than the single element Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-nose: drop recipeTim Orling
The code has not been touched since 2016 and numerous files still have Python2 syntax code in them. This causes do_compile errors when packaging a wheel (PEP-517 packaging). Nothing in oe-core depends on python3-nose. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-packaging: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-mako: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-dbusmock: set PIP_INSTALL_PACKAGETim Orling
The name of the wheel as built by bdist_wheel is "python_dbusmock", set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-numpy: Fix pyc determinism issueRichard Purdie
Using frozenset causes problems for pyc file determinism. For now remove the problematic pyc file as we do in the main python3 recipe. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-numpy: set PIP_INSTALL_PACKAGETim Orling
The recipe does not inherit pypi so we need to manually set PIP_INSTALL_PACKAGE appropriately. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-magic: set PIP_INSTALL_PACKAGETim Orling
The wheel built by bdist_wheel has the name "python_magic-*.whl" so set PIP_INSTALL_PACKAGE accordingly. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-subunit: merge inc; set PIP_INSTALL_PACKAGETim Orling
We have not supported python2 for some time now, so there is no reason to maintain a separate python-subunit.inc file. The wheel built by bdist_wheel is named 'python_subunit-*.whl', so set PIP_INSALL_PACKAGE appropriately. Add patch to use vendored _distutils from setuptools. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-scons: merge -native recipeTim Orling
The native recipe simply calls create_wrapper to add a host script. Do this via do_install:append:class-native() The scons*.1 man pages are being installed in ${prefix}, move them to ${mandir} (previously installed in ${datadir}). [YOCTO #14638] Drop from maintainers.inc Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-smartypants: patch hash bang to python3Tim Orling
Change hash bang in smartypants and smartypants.py to be /usr/bin/env python3 [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-libarchive-c: set PIP_INSTALL_PACKAGETim Orling
Set PIP_INSTALL_PACKAGE to libarchive_c to match the name of the wheel built by bdist_wheel. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-more-itertools: set PIP_INSTALL_PACKAGETim Orling
Define PIP_INSTALL_PACKAGE as more_itertools to match the name of the wheel. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-setuptools: inherit setuptools_base_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pluggy: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which while it does not declare the setuptools.build_meta backend is compatible with it. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-py: inherit setuptools_build_metaTim Orling
Upstreama provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-iniconfig: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which decalres the setuptools.build_meta backend for PEP-517 packaging. DEPENDS on python3-setuptools-scm-native (as declared in the pyproject.toml build-system.requires). [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-zipp: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-setuptools-scm: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pytest: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-git: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-attrs: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pip: Improve reproducibilityRichard Purdie
Pip installed wheels are not reproducible currently. The direct_url files encode an installation path and the installed wheels compile the python files at their location, not their final install location which is incorrect. To fix this, simply disable the direct_urls and pass the "root" to the python compile function to strip that path out of the compiled files. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pip-native: install scripts in ${bindir}Tim Orling
The naïve approach of simply unzipping the built wheel is not sufficient. 'pip install' would normally have created the [console_scripts] from entry-points.txt in ${D}${bindir}. For bootstrapping purposes, hardcode the scripts and install them into ${D}${bindir}. Skip the ${bindir}/pip variant. [YOCTO #14739] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pip: Don't change shebangRichard Purdie
Patch pip to disable shebang mangling and also force the python executable to be python3 from the environment when building anything for the target (or nativesdk). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-pip: inherit setuptools_build_metaTim Orling
Upstream provides a pyproject.toml which declares setuptools.build_meta as the backend for PEP-517 packaging. We bootstrap the -native installation by simply unzipping the wheel to PYTHON_SITEPACKAGES_DIR, so that all other recipes can use pip to install wheels (as intended by upstream). Check for presence of ${D}${bindir}/pip and remove if found (this was originally to make sure Python2 pip was the default). [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-wheel-native: install ${bindir}/wheelTim Orling
pip install would normally install [project.scripts] to ${D}${bindir} but our naïve bootstrapping only unzipps the wheel to ${D}${PYTHON_SITEPACKAGES_DIR}. Correct this by creating the equivalent script in do_install:class-native [YOCTO #14739] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-wheel: inherit flit_coreTim Orling
Backport pyproject.toml from flit-backend branch. Inherit flit_core class to build Inherit pip_install_wheel to install wheels for target We need to bootstrap python3-wheel-native in order to have bdist_wheel available to python3-setuptools-native and the refactored setuptools3.bbclass. Simply unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-flit-core: inherit pip_install_wheelTim Orling
Keep the pip install logic, especially --root in one place to ensure that we fix e.g. reproducible issues in one place. Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-flit-core: SUMMARY DESCRIPTION HOMEPAGETim Orling
Add SUMMARY DESCRIPTION HOMEPAGE and BUGTRACKER definitions. Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-flit-core: add recipe for 3.6.0Tim Orling
This is the core of one of the "new build system" tools--hosted officially as part of the pypa (Python Packaging Authority) repositories--it is an increasingly common build tool (e.g. typing_extensions and tomli) as declared in pyproject.toml for said packages. This package provides a very simple bootstrapping method that builds the source tarball (build_sdist) and a wheel (build_wheel). Bootstrap -native by simply unzipping the wheel to PYTHON_SITEPACKAGES_DIR. Use pip to install the wheel for class-target. Wheels are the official vehicle for delivering Python packages now. Eggs (egg-info) are deprecated and will increasingly go away. [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25python3-wheel: move 0.37.1 from meta-pythonTim Orling
This is one of the "new build tools" which are part of pypa (Python Packaging Authority) toolchain. Wheels are the official delivery mechanism for Python packages, replacing the now deprecated Eggs (egg-info). [YOCTO #14638] Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-21meta/scripts: Automated conversion of OE renamed variablesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-20meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie
license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-17python3-pytest: upgrade 7.0.0 -> 7.0.1Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-17python3-dtschema: upgrade 2021.12 -> 2022.1Alexander Kanavin
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-17python3-tomli: upgrade 2.0.0 -> 2.0.1Alexander Kanavin
sources moved to src/tomli Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-16python3-ruamel-yaml: upgrade 0.17.20 -> 0.17.21wangmy
Changelog: ========= - fix bug in calling '.compose()' method with 'pathlib.Path' instance. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-16python3-pbr: upgrade 5.8.0 -> 5.8.1wangmy
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-16python3-pathlib2: upgrade 2.3.6 -> 2.3.7wangmy
Changelog: ========= This version will be the last release to support Python 2.7. Fix bug in samefile on Windows when file does not exist. Add newline parameter for write_text (see issue #64). Add many more type annotations. Continuous integration migrated to github actions. Project migrated to jazzband. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-16python3-hypothesis: upgrade 6.36.1 -> 6.36.2wangmy
Changelog: ========= Updates vendored list of top-level domains, which is used by the provisional domains() strategy. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10python3-pyelftools: upgrade 0.27 -> 0.28wangmy
Changelog: ========= - Added a method for returning the index of a section by name (#331) - Allow filtering by section types in iter_sections (#345) - Support Android compressed rel/rela sections (#357) - Initial support for PPC64LE (#360) - Initial DWARF v5 support (#363 with several follow-ups) - Fixed parsing for structures containing uids or gids in core dumps (#354) - Allow filtering by segment types in iter_segments (#375) - Add support for .note.gnu.property (#386) - Update readelf tests to work with more recent version of readelf (#387) - Add support for note GNU_PROPERTY_X86_FEATURE_1_AND (#388) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10python3-pip: upgrade 22.0.2 -> 22.0.3wangmy
Changelog: ========= Features ------- Print the exception via rich.traceback, when running with --debug. (#10791) Bug Fixes --------- Only calculate topological installation order, for packages that are going to be installed/upgraded. This fixes an AssertionError that occured when determining installation order, for a very specific combination of upgrading-already-installed-package + change of dependencies + fetching some packages from a package index. This combination was especially common in Read the Docs' builds. (#10851) Use html.parser by default, instead of falling back to html5lib when --use-deprecated=html5lib is not passed. (#10869) Improved Documentation ---------------------- Clarify that using per-requirement overrides disables the usage of wheels. (#9674) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10python3-pytest: upgrade 6.2.5 -> 7.0.0wangmy
License-Update: year from "2004-2020" changed to "2004". Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10python3-pycryptodome: upgrade 3.14.0 -> 3.14.1wangmy
Changelog: ========= GH#595: Fixed memory leak for GMP integers. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10python3-magic: upgrade 0.4.24 -> 0.4.25wangmy
Changelog: ========= - Support os.PathLike values in Magic.from_file and magic.from_file - Handle some versions of libmagic that return mime string without charset - Fix tests for file 5.41 - Include typing stub in package Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-08python3-numpy: update 1.22.1 -> 1.22.2Alexander Kanavin
Replace an ad hoc fix via patch with an upstream one. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05python3-pip: upgrade 21.3.1 -> 22.0.2Alexander Kanavin
License-Update: copyright years Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>