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 #515

Closed
wants to merge 12 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-colorama \
python3-coloredlogs \
python3-colorlog \
python3-colorzero \
python3-configargparse \
python3-configobj \
python3-configparser \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SECTION = "devel/python"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1"

SRC_URI[sha256sum] = "72ace9c3333e274e9248168fc4f3e300da8545af1c303bd69197027f49e2bfff"
SRC_URI[sha256sum] = "1efdf4e867d4d8ba4a9f6cf9ce07cd182c4c41de77f23814feb27ca93ca9d877"

inherit pypi setuptools3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ilanschnell/bitarray"
LICENSE = "PSF"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d"

SRC_URI[sha256sum] = "f19c62425576d3d1821ed711b94d1a4e5ede8f05ca121e99b6d978ed49c7a765"
SRC_URI[sha256sum] = "60285184cb02fdba5e1cc8605ac84e150a50f940e9383ab43564e5258d1f47bb"

inherit setuptools3 pypi

Expand Down
16 changes: 16 additions & 0 deletions meta-python/recipes-devtools/python/python3-colorzero_2.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SUMMARY = "colorzero is a color manipulation library for Python"
DESCRIPTION = "colorzero is a color manipulation library for Python \
(yes, another one) which aims to be reasonably simple to use and \
"pythonic" in nature."
HOMEPAGE = " https://github.com/waveform80/colorzero "

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ae6c62710c0646f3c60d1ad812ea9bf9"

RDEPENDS:${PN} = "python3-image"

SRC_URI[sha256sum] = "e7d5a5c26cd0dc37b164ebefc609f388de24f8593b659191e12d85f8f9d5eb58"

inherit pypi setuptools3

PYPI_PACKAGE = "colorzero"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

inherit pypi setuptools3

SRC_URI[sha256sum] = "dca67b5e369a5127ec00c8ea02de48517e39c1aad882e2e6d85da8050520cab6"
SRC_URI[sha256sum] = "c8889f45cf58deca522888ae1d39b2a25e93e7d1b019ae8cee6456d5c726a40c"

RDEPENDS:${PN} += "\
${PYTHON_PN}-asyncio \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5cac039fcc82f01141cc170b48f315d4"

PYPI_PACKAGE = "huey"

SRC_URI[sha256sum] = "20683288e27e851f786b38465784c5d0e7e2b93b8791cc826898f9555a320cb4"
SRC_URI[sha256sum] = "4fa2f6055d581778c3bcf93fc8c9ce87aecc2a345d5ff35bd955da152c02ef37"

RDEPENDS:${PN} += " \
python3-datetime \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ Upstream-Status: Inappropriate [disable feature]

Signed-off-by: Mark Hatle <[email protected]>

--- a/setupext.py.orig 2021-12-14 09:44:33.499041044 -0800
+++ a/setupext.py 2021-12-14 09:45:00.447041706 -0800
@@ -64,40 +64,7 @@
--- a/setup.py
+++ b/setup.py
@@ -317,7 +317,6 @@ setup( # Finally, pass this all along t
"certifi>=2020.06.20",
"numpy>=1.17",
"setuptools_scm>=4",
- "setuptools_scm_git_archive",
],
install_requires=[
"cycler>=0.10",
--- a/setupext.py
+++ b/setupext.py
@@ -64,40 +64,7 @@ def get_from_cache_or_download(url, sha)
BytesIO
The file loaded into memory.
"""
Expand Down Expand Up @@ -45,6 +55,6 @@ Signed-off-by: Mark Hatle <[email protected]>
-
- return BytesIO(data)
+ raise IOError(f"Automatic downloading is disabled.")


def get_and_extract_tarball(urls, sha, dirname):
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "183524e3db4e2a1fea92e0ca3662a624ba44c9f3568da15679d7535ba6

inherit pypi setuptools3

do_compile[network] = "1"

DEPENDS += "\
${PYTHON_PN}-wheel-native \
${PYTHON_PN}-pip-native \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SUMMARY = "RDFLib is a pure Python package for working with RDF"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b6cde159c801514e0e45a40cf0a9d3d9"

SRC_URI[sha256sum] = "6136ae056001474ee2aff5fc5b956e62a11c3a9c66bb0f3d9c0aaa5fbb56854e"
SRC_URI[sha256sum] = "8dbfa0af2990b98471dacbc936d6494c997ede92fd8ed693fb84ee700ef6f754"

inherit pypi setuptools3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://pypi.org/project/typeguard/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f0e423eea5c91e7aa21bdb70184b3e53"

SRC_URI[sha256sum] = "7e50071590ab997509aa0977609eb5cf9d73d84c1f416cb4fab78b77a9d15326"
SRC_URI[sha256sum] = "00edaa8da3a133674796cf5ea87d9f4b4c367d77476e185e80251cc13dfbb8c4"

inherit pypi setuptools3 ptest

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From aec3b64b0aaea0178b44ea65a204d76696e6a45e Mon Sep 17 00:00:00 2001
From: Leon Anavi <[email protected]>
Date: Mon, 10 Jan 2022 14:04:28 +0200
Subject: [PATCH] setup.py: Do not strip debugging symbols

Do not strip debugging symbols from Linux binaries to avoid
bitbake build errors related to already-stripped.

Signed-off-by: Leon Anavi <[email protected]>
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 453dc31..962c507 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from setuptools import Extension, setup
dconv_source_files = glob("./deps/double-conversion/double-conversion/*.cc")
dconv_source_files.append("./lib/dconv_wrapper.cc")

-strip_flags = ["-Wl,--strip-all"] if platform.system() == "Linux" else []
+strip_flags = []

module1 = Extension(
"ujson",
--
2.30.2

Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ DESCRIPTION = "UltraJSON is an ultra fast JSON encoder and decoder written in pu
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=10fa10456417c0252bcb8a498e498ffe"

SRC_URI[sha256sum] = "3ff7242816b1d22c08c04c4c6db0f6ba7c16cd624ce38534c1025defa011e50e"
SRC_URI[sha256sum] = "a88944d2f99db71a3ca0c63d81f37e55b660edde0b07216fb65a3e46403ef004"

inherit pypi ptest setuptools3

SRC_URI += " \
file://run-ptest \
file://0001-setup.py-Do-not-strip-debugging-symbols.patch \
"

DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/shazow/urllib3"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c2823cb995439c984fd62a973d79815c"

SRC_URI[sha256sum] = "4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece"
SRC_URI[sha256sum] = "0e7c33d9a63e7ddfcb86780aac87befc2fbddf46c58dbb487e0855f7ceec283c"

inherit pypi setuptools3

Expand Down