diff options
author | 2020-12-11 22:05:05 +0000 | |
---|---|---|
committer | 2020-12-11 22:05:05 +0000 | |
commit | 9be2a9e2e35cc746f7154f5b165a7673b28bd2e3 (patch) | |
tree | 01b56a1ed37ec4aa5943cd23eabebdcda0079b73 | |
parent | 2020-12-11 21:05:13 UTC (diff) | |
parent | dev-lang/python-exec: call internal _python_export to avoid warning (diff) | |
download | gentoo-9be2a9e2e35cc746f7154f5b165a7673b28bd2e3.tar.gz gentoo-9be2a9e2e35cc746f7154f5b165a7673b28bd2e3.tar.bz2 gentoo-9be2a9e2e35cc746f7154f5b165a7673b28bd2e3.zip |
Merge updates from master
-rw-r--r-- | dev-lang/python-exec/python-exec-2.4.6-r2.ebuild | 2 | ||||
-rw-r--r-- | dev-lang/python-exec/python-exec-2.4.6-r3.ebuild | 2 | ||||
-rw-r--r-- | dev-python/exam/metadata.xml | 6 | ||||
-rw-r--r-- | dev-python/testfixtures/Manifest | 1 | ||||
-rw-r--r-- | dev-python/testfixtures/testfixtures-6.16.0.ebuild | 42 | ||||
-rw-r--r-- | sys-boot/raspberrypi-firmware/Manifest | 1 | ||||
-rw-r--r-- | sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20201201.ebuild | 72 |
7 files changed, 121 insertions, 5 deletions
diff --git a/dev-lang/python-exec/python-exec-2.4.6-r2.ebuild b/dev-lang/python-exec/python-exec-2.4.6-r2.ebuild index 9bd729c8519e..3a975edc8d59 100644 --- a/dev-lang/python-exec/python-exec-2.4.6-r2.ebuild +++ b/dev-lang/python-exec/python-exec-2.4.6-r2.ebuild @@ -21,7 +21,7 @@ src_configure() { local pyimpls=() i EPYTHON for i in "${_PYTHON_ALL_IMPLS[@]}"; do if use "python_targets_${i}"; then - python_export "${i}" EPYTHON + _python_export "${i}" EPYTHON pyimpls+=( "${EPYTHON}" ) fi done diff --git a/dev-lang/python-exec/python-exec-2.4.6-r3.ebuild b/dev-lang/python-exec/python-exec-2.4.6-r3.ebuild index d049c3fb76dc..6869fd24d057 100644 --- a/dev-lang/python-exec/python-exec-2.4.6-r3.ebuild +++ b/dev-lang/python-exec/python-exec-2.4.6-r3.ebuild @@ -21,7 +21,7 @@ src_configure() { local pyimpls=() i EPYTHON for i in "${_PYTHON_ALL_IMPLS[@]}"; do if use "python_targets_${i}"; then - python_export "${i}" EPYTHON + _python_export "${i}" EPYTHON pyimpls+=( "${EPYTHON}" ) fi done diff --git a/dev-python/exam/metadata.xml b/dev-python/exam/metadata.xml index 6a0cf1208102..d79043f73e5b 100644 --- a/dev-python/exam/metadata.xml +++ b/dev-python/exam/metadata.xml @@ -18,9 +18,9 @@ Exam is a Python toolkit for writing better tests. It aims to remove a lot of th Aside from the obvious "does the code work?", writings tests has many additional goals and benefits: - If written semantically, reading tests can help demonstrate how the code is supposed to work to other developers. - If quick running, tests provide feedback during development that your changes are working or not having an adverse side effects. - If they're easy to write correctly, developers will write more tests and they will be of a higher quality. + If written semantically, reading tests can help demonstrate how the code is supposed to work to other developers. + If quick running, tests provide feedback during development that your changes are working or not having an adverse side effects. + If they're easy to write correctly, developers will write more tests and they will be of a higher quality. Unfortunately, the common pattern for writing Python unit tests tends to not offer any of these advantages. Often times results in inefficient and unnecessarily obtuse testing code. Additionally, common uses of the mock library can often result in repetitive boiler-plate code or inefficiency during test runs. diff --git a/dev-python/testfixtures/Manifest b/dev-python/testfixtures/Manifest index 4ffa10d0a540..1cb836039d61 100644 --- a/dev-python/testfixtures/Manifest +++ b/dev-python/testfixtures/Manifest @@ -1 +1,2 @@ DIST testfixtures-6.15.0.tar.gz 116119 BLAKE2B cc0e351bd6778393cf061b741d7d593f56bc1b6a3d53d2e34baa006f7edd718c86f1b16c094e42cf116805a5c6652ac6827f71c1ebbb160d48c071317603c151 SHA512 34b9f1b9a5e76c5e20acf9abae2961694817de3822361cd5afc4a405ccdbcf26c617a01fbd8d2d977c2a0bc696232c2363df4a9fb7ba9187e0743cf2a6fe98e1 +DIST testfixtures-6.16.0.tar.gz 120986 BLAKE2B bb17c44091370edca55f1e273f70e454c2e74a152a228f97efba08d605e3a024c64bfc163b3aa50805f038556c76fb754825b16fdf4451760403682c06251c80 SHA512 0c519fa2d2619ad71f6b487456ea1480365aa421c14a9beaeee916e7841bd266be2c95d48c61b64e91554b37d2621358a45b124be6a6d25b3e381f966653c9b8 diff --git a/dev-python/testfixtures/testfixtures-6.16.0.ebuild b/dev-python/testfixtures/testfixtures-6.16.0.ebuild new file mode 100644 index 000000000000..d8efd8340de3 --- /dev/null +++ b/dev-python/testfixtures/testfixtures-6.16.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +DESCRIPTION="A collection of helpers and mock objects for unit tests and doc tests" +HOMEPAGE="https://pypi.org/project/testfixtures/ https://github.com/Simplistix/testfixtures" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + dev-python/django[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/sybil[${PYTHON_USEDEP}] + >=dev-python/twisted-18[${PYTHON_USEDEP}] + dev-python/zope-component[${PYTHON_USEDEP}] + )" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_prepare_all() { + # kill weird way of declaring build deps + sed -e '/build=/d' -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + PYTHONPATH="." \ + DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings \ + pytest -vv || die "Tests failed with "${EPYTHON} +} diff --git a/sys-boot/raspberrypi-firmware/Manifest b/sys-boot/raspberrypi-firmware/Manifest index 1520157a4089..982d64a04bf3 100644 --- a/sys-boot/raspberrypi-firmware/Manifest +++ b/sys-boot/raspberrypi-firmware/Manifest @@ -1,2 +1,3 @@ DIST raspberrypi-firmware-1.20190925.tar.gz 185571086 BLAKE2B c3a9b2760fa853fbd1dd09bc4048c9e78594f88da5af608c3a761554d4046a4c869db8981c64140a24e82e0a61b8dc776bb8d895df60c6424e44780f78b18cb0 SHA512 4b7b29cc6c2a33d7a37987c492034d9afbb2220364c50cf265e0adf8e5f393c2275dcffaa77c89b3f43b2e98d199741b67590cb60ff8beae8ef677852f63b4a0 DIST raspberrypi-firmware-1.20201022.tar.gz 189827375 BLAKE2B 94c38f60d688c8e3ebab830912daccbb6c04bdd3d88f6ca0d07d85be0a6b12c53f0266b4c258ed4694f30bad5db30fb6d30feabfd0b7668735a9a806b820d325 SHA512 876758179df27109984b6c3f4849fdcdc6bdcc2769495fcc83c97fc3ff4d07b9f3cd58086be877503f72c9e5417d2be6d6c33bce4cbb3b862055117c9cc26db8 +DIST raspberrypi-firmware-1.20201201.tar.gz 189332299 BLAKE2B b3ec91f07b4713d26c29be5412d018a220129eef7ddf7c5c09d85e645c2c5754a95f13be7e690ab40648a982e3974cc760aa5b33c76612da836227d38c4ee3a5 SHA512 a7f4591552718956bd7f2d0d377234277e2e6f18cc9714ea30fe13f26d5ae1164b982f39dcf72ae4a18663369ef06d0187d8182713763262371c13107aac4c65 diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20201201.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20201201.ebuild new file mode 100644 index 000000000000..55d6595f60bf --- /dev/null +++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20201201.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mount-boot readme.gentoo-r1 + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/raspberrypi/firmware" + EGIT_CLONE_TYPE="shallow" +else + SRC_URI="https://github.com/raspberrypi/firmware/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="-* ~arm ~arm64" + S="${WORKDIR}/firmware-${PV}" +fi + +DESCRIPTION="Raspberry Pi (all versions) bootloader and GPU firmware" +HOMEPAGE="https://github.com/raspberrypi/firmware" + +LICENSE="GPL-2 raspberrypi-videocore-bin" +SLOT="0" +RESTRICT="binchecks strip" + +DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt" + +src_prepare() { + default + + cp "${FILESDIR}"/${PN}-1.20201022-config.txt "${WORKDIR}" || die + + if use arm64; then + # Force selection of the 64-bit kernel8.img to match our userland + echo "arm_64bit=1" >> "${WORKDIR}"/${PN}-1.20201022-config.txt || die + fi +} + +src_install() { + insinto /boot + cd boot || die + doins bootcode.bin fixup*.dat start*elf + newins "${WORKDIR}"/${PN}-1.20201022-config.txt config.txt + newins "${FILESDIR}"/${PN}-1.20201022-cmdline.txt cmdline.txt + newenvd "${FILESDIR}"/${PN}-0_p20130711-envd 90${PN} + readme.gentoo_create_doc +} + +pkg_preinst() { + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + local msg="" + + if [[ -e "${ED}"/boot/cmdline.txt ]] && [[ -e /boot/cmdline.txt ]] ; then + msg+="/boot/cmdline.txt " + fi + + if [[ -e "${ED}"/boot/config.txt ]] && [[ -e /boot/config.txt ]] ; then + msg+="/boot/config.txt " + fi + + if [[ -n "${msg}" ]] ; then + msg="This package installs following files: ${msg}." + msg="${msg} Please remove (backup) your copies during install" + msg="${msg} and merge settings afterwards." + msg="${msg} Further updates will be CONFIG_PROTECTed." + die "${msg}" + fi + fi +} + +pkg_postinst() { + readme.gentoo_print_elog +} |