Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta python merge #538

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions meta-oe/recipes-devtools/python/python3-apt_2.3.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ SRCREV = "6145b6484d220685edfd922d364afbf065127efe"
S = "${WORKDIR}/git"

inherit setuptools3
PIP_INSTALL_PACKAGE = "python_apt"
PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-0.0.0-*.whl"

DEPENDS += "apt"
RDEPENDS:${PN} += "apt python3-core"
Expand Down
9 changes: 0 additions & 9 deletions meta-oe/recipes-devtools/python/python3-distutils-extra.bb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ SECTION = "devel/python"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4325afd396febcb659c36b49533135d4"

PV = "2.39"
SRC_URI = "https://launchpad.net/python-distutils-extra/trunk/${PV}/+download/python-distutils-extra-${PV}.tar.gz"
SRC_URI[md5sum] = "16e06db0ef73a35b4bff4b9eed5699b5"
SRC_URI[sha256sum] = "723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af"

inherit setuptools3

PIP_INSTALL_PACKAGE = "python_distutils_extra"

S = "${WORKDIR}/python-distutils-extra-${PV}"

BBCLASSEXTEND = "native"
2 changes: 1 addition & 1 deletion meta-oe/recipes-devtools/python/python3-pycups_2.0.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ DEPENDS += "cups"
# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"

inherit pypi setuptools3
inherit pypi setuptools_build_meta
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-alembic \
python3-ansi2html \
python3-ansicolors \
python3-anyjson \
python3-appdirs \
python3-apply-defaults \
python3-argcomplete \
Expand Down Expand Up @@ -437,7 +436,6 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-twine \
python3-twisted \
python3-twitter \
python3-twofish \
python3-txaio \
python3-txdbus \
python3-txws \
Expand Down Expand Up @@ -485,7 +483,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
python3-jinja2-ptest \
python3-markupsafe-ptest \
python3-ansicolors-ptest \
python3-anyjson-ptest \
python3-appdirs-ptest \
python3-backports-functools-lru-cache-ptest \
python3-bcrypt-ptest \
Expand Down
28 changes: 0 additions & 28 deletions meta-python/recipes-devtools/python/python3-anyjson_0.3.3.bb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ PYPI_PACKAGE = "backcall"
SRC_URI[md5sum] = "1f4c9a370c78743406296f48e56e8821"
SRC_URI[sha256sum] = "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"

inherit setuptools3 pypi
inherit flit_core pypi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ousret/charset_normalizer"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0974a390827087287db39928f7c524b5"

SRC_URI[sha256sum] = "876d180e9d7432c5d1dfd4c5d26b72f099d503e8fcc0feb7532c9289be60fcbd"
SRC_URI[sha256sum] = "2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"

inherit pypi setuptools3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ SRC_URI += " \

inherit pypi setuptools3_rust

PIP_INSTALL_DIST_PATH = "${S}/dist"

DEPENDS += " \
${PYTHON_PN}-asn1crypto-native \
${PYTHON_PN}-cffi-native \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/geomet/geomet.git;protocol=https;branch=release-${PV
SRCREV = "73ec5ec96cca32f2e2461d3964fc3d4ab80248f9"

inherit setuptools3
PIP_INSTALL_PACKAGE = "geomet"

RDEPENDS:${PN} += "\
${PYTHON_PN}-click \
Expand Down
2 changes: 2 additions & 0 deletions meta-python/recipes-devtools/python/python3-monotonic_1.6.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ SRC_URI = "git://github.com/atdt/monotonic.git;branch=master;protocol=https"
S = "${WORKDIR}/git"

inherit setuptools3

PIP_INSTALL_PACKAGE = "monotonic"
3 changes: 2 additions & 1 deletion meta-python/recipes-devtools/python/python3-pako_0.3.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ SRC_URI[sha256sum] = "c033a073bb818ca336ae1fccba2655bd60dfe77744f85d4517abd3160d
inherit pypi setuptools3

do_install:append() {
rm -rf ${D}/usr/share
rm -rf ${D}${prefix}/pako/LICENSE
rm -rf ${D}${prefix}/pako
}
3 changes: 3 additions & 0 deletions meta-python/recipes-devtools/python/python3-pillow_9.0.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ SRCREV ?= "82541b6dec8452cb612067fcebba1c5a1a2bfdc8"

inherit setuptools3

PIP_INSTALL_PACKAGE = "Pillow"
PIP_INSTALL_DIST_PATH = "${S}/dist"

DEPENDS += " \
zlib \
jpeg \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "http://code.google.com/p/prettytable"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=c9a6829fcd174d9535b46211917c7671"

SRC_URI[sha256sum] = "18e56447f636b447096977d468849c1e2d3cfa0af8e7b5acfcf83a64790c0aca"
SRC_URI[sha256sum] = "43c9e23272ca253d038ae76fe3adde89794e92e7fcab2ddf5b94b38642ef4f21"

do_install:append() {
perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SRCNAME = "ptyprocess"

SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"

inherit pypi setuptools3
inherit pypi flit_core

UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/ptyprocess"

Expand Down
2 changes: 2 additions & 0 deletions meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ S = "${WORKDIR}/pyruvate-${PV}"

inherit pypi setuptools3_rust

PIP_INSTALL_DIST_PATH = "${S}/dist"

# crossbeam-* -> std::sync::atomic AtomicI64, AtomicU64
# not supported on mips/powerpc with 32-bit pointers
# https://doc.rust-lang.org/std/sync/atomic/#portability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inherit pypi setuptools3 ptest
do_install:append() {
rm -f ${D}${bindir}/pyserial-miniterm
rm -f ${D}${bindir}/pyserial-ports
rm -rf ${D}${bindir}/__pycache__
rmdir ${D}${bindir}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=011cd92e702dd9e6b1a26157b6fd53f5"
SRC_URI = "https://files.pythonhosted.org/packages/67/08/e1aa2c582c62ac76e4d60f8e454bd3bba933781a06a88b4e38797445822a/setuptools-rust-${PV}.tar.gz"
SRC_URI[sha256sum] = "a0adb9b503c0ffc4e8fe80b7c617898cefa78049983aaaea7f747e153a3e65d1"

# While this has a pyproject.toml and declares that setuptools_build_meta should work
# it results in a wheel named UNKNOWN-0.0.0-py3-none-any.whl so stay with setuptools3
# until that can be resolved
inherit cargo pypi setuptools3 native

# For some reason the wheel is built in ${S} not ${B}
PIP_INSTALL_DIST_PATH = "${S}/dist"


DEPENDS += "python3-setuptools-scm-native python3-wheel-native"

RDEPENDS:${PN}:class-native += " \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=baac7be1f4c17620df74188e23da6d47"

inherit pypi setuptools3

SRC_URI[sha256sum] = "b0385975a842e885c1a55c719d2f90164471665794d39d51f9eb3f11e1d9c8ac"
SRC_URI[sha256sum] = "7b20d32906ea4d60ee6f6c1f5dc9c9f178802425c5b155213eb0f25c277f04e4"

RDEPENDS:${PN} += "python3-six python3-logging"
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ RDEPENDS:${PN}-flow += "${PN}-core"
RDEPENDS:${PN}-pair += "${PN}-core"
RDEPENDS:${PN}-dbg = "${PN}"

ALLOW_EMPTY:${PN} = "1"
FILES:${PN} = ""
FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*"

FILES:${PN}-test = " \
${libdir}/${PYTHON_DIR}/site-packages/twisted/test \
Expand Down

This file was deleted.

15 changes: 0 additions & 15 deletions meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb

This file was deleted.

2 changes: 2 additions & 0 deletions meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ SRCREV = "b8d573e11ec149da695d695c81a156232b89a949"
S = "${WORKDIR}/git"

inherit ptest setuptools3
PIP_INSTALL_PACKAGE = "xlrd"
PIP_INSTALL_DIST_PATH = "${S}/dist"

RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io ${PYTHON_PN}-pprint ${PYTHON_PN}-shell"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ SRCREV = "bfd836cfdd8439d984595aca015811ed5c6be733"
UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"

inherit setuptools3
PIP_INSTALL_PACKAGE = "pykickstart"
PIP_INSTALL_DIST_PATH = "${S}/dist"