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

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
aedb88d
python3-pydot: add recipe
kkang-wr Mar 3, 2022
d673612
python3-crc32c: set target platform via setup.cfg
kraj Mar 4, 2022
8249c93
python3-pyruvate: Fix build on riscv32
kraj Mar 6, 2022
04edad1
python3-autobahn: upgrade 22.1.1 -> 22.2.2
wangmingyu84 Mar 7, 2022
3e45e91
python3-cheetah: upgrade 3.2.6.post1 -> 3.2.6.post2
wangmingyu84 Mar 7, 2022
161912f
python3-django: upgrade 2.2.26 -> 2.2.27
wangmingyu84 Mar 7, 2022
dd73218
python3-httplib2: upgrade 0.20.2- > 0.20.4
wangmingyu84 Mar 7, 2022
4bf51a0
python3-icu: upgrade 2.8 -> 2.8.1
wangmingyu84 Mar 7, 2022
52fecf9
python3-jsonrpcserver: upgrade 5.0.3 -> 5.0.6
wangmingyu84 Mar 7, 2022
8238410
python3-lxml: upgrade 4.7.1 -> 4.8.0
wangmingyu84 Mar 7, 2022
00cbf55
python3-pyscaffold: upgrade 4.1.4 -> 4.1.5
wangmingyu84 Mar 7, 2022
ad60130
python3-redis: upgrade 4.1.1 -> 4.1.4
wangmingyu84 Mar 7, 2022
18eb36b
python3-scrypt: upgrade 0.8.19 -> 0.8.20
wangmingyu84 Mar 7, 2022
511dea6
python3-tqdm: upgrade 4.62.3 -> 4.63.0
wangmingyu84 Mar 7, 2022
9e52c4d
python3-twisted: upgrade 22.1.0 -> 22.2.0
wangmingyu84 Mar 7, 2022
f65f0b2
python3-waitress: upgrade 2.0.0 -> 2.1.0
wangmingyu84 Mar 7, 2022
e4917da
python3-blivetgui: use setuptools_legacy
rossburton Mar 7, 2022
180bbac
python3-blivet: use setuptools_legacy
kkang-wr Mar 4, 2022
535adf1
python3-meh: fix HOMEPAGE
rossburton Mar 7, 2022
d46ef5e
python3-meh: use setuptools_legacy
rossburton Mar 7, 2022
4fc388d
python3-pyserial-asyncio: add 0.6
jsbronder Mar 7, 2022
f17bf96
python3-pymodbus: add 2.5.3
jsbronder Mar 7, 2022
98d9bd3
python3-asyncinotify: add 2.0.2
jsbronder Mar 7, 2022
c531e2e
Revert "python3-ipy: drop recipe"
kkang-wr Mar 8, 2022
c0972ae
python3-poetry-core: self-bootstrap
rossburton Mar 8, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-intelhex \
python3-intervals \
python3-ipaddress \
python3-ipy \
python3-ipython \
python3-ipython-genutils \
python3-iso3166 \
Expand Down Expand Up @@ -498,6 +499,7 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
python3-html2text-ptest \
python3-inflection-ptest \
python3-intervals-ptest \
python3-ipy-ptest \
python3-iso3166-ptest \
python3-jdcal-ptest \
python3-jinja2-ptest \
Expand Down
15 changes: 15 additions & 0 deletions meta-python/recipes-devtools/python/python3-asyncinotify_2.0.2.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SUMMARY = "A simple optionally-async python inotify library, focused on simplicity of use and operation, and leveraging modern Python features"
HOMEPAGE = "https://gitlab.com/Taywee/asyncinotify"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6ec941a1cd6616454970d03cb9c9e8f8"

SRC_URI[sha256sum] = "867cc056d88fc07aa8b3d1dc5b9c3c911cdd6130a4df5f67beb1fdecfd37b164"

inherit pypi setuptools3

RDEPENDS:${PN} += " \
python3-asyncio \
python3-core \
python3-ctypes \
python3-io \
"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "http://crossbar.io/autobahn"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=97c0bda20ad1d845c6369c0e47a1cd98"

SRC_URI[sha256sum] = "17e1b58b6ae1a63ca7d926b1d71bb9e4fd6b9ac9a1a2277d8ee40e0b61f54746"
SRC_URI[sha256sum] = "60e1f4c602aacd052ffe3d46ae40b6b75f8286b3c46922c213b523162e58c17e"

inherit pypi setuptools3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ RDEPENDS:${PN}:class-native = ""

BBCLASSEXTEND = "native nativesdk"

SRC_URI[sha256sum] = "58b5d84e5fbff6cf8e117414b3ea49ef51654c02ee887d155113c5b91d761967"
SRC_URI[sha256sum] = "63157d7a00a273b59676b5be5aa817c75c37efc88478231f1a160f4cfb7f7878"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead

inherit pypi setuptools3

do_compile:prepend() {
if ! grep 'platform =' setup.cfg; then
printf "[build_ext]\nplatform = ${TARGET_ARCH}" >> setup.cfg
fi
}

RDEPENDS:${PN} += "python3-core"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ UPSTREAM_CHECK_REGEX = "/${PYPI_PACKAGE}/(?P<pver>(2\.2\.\d*)+)/"

inherit setuptools3

SRC_URI[sha256sum] = "dfa537267d52c6243a62b32855a744ca83c37c70600aacffbfd98bc5d6d8518f"
SRC_URI[sha256sum] = "1ee37046b0bf2b61e83b3a01d067323516ec3b6f2b17cd49b1326dd4ba9dc913"

RDEPENDS:${PN} += "\
${PYTHON_PN}-sqlparse \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=56e5e931172b6164b62dc7c4aba6c8cf"

SRC_URI[sha256sum] = "e404681d2fbcec7506bcb52c503f2b021e95bee0ef7d01e5c221468a2406d8dc"
SRC_URI[sha256sum] = "58a98e45b4b1a48273073f905d2961666ecf0fbac4250ea5b47aef259eb5c585"

inherit pypi setuptools3

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 8abf79f77d9151d6786da3c8e868117822bce6d4 Mon Sep 17 00:00:00 2001
From a82fea9663f0c70cf57cd06650f400e878afc5e4 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Fri, 16 Apr 2021 10:48:36 -0700
Subject: [PATCH] Fix host contamination of include files
Expand All @@ -10,12 +10,13 @@ Also, don't use icu-config
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Armin Kuster <[email protected]>
Signed-off-by: Khem Raj <[email protected]>

---
setup.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index e647db4..abed399 100644
index d308b80..56e9c74 100644
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@ Building PyICU %s for ICU %s (max ICU major version supported: %s)
Expand All @@ -27,14 +28,11 @@ index e647db4..abed399 100644
'freebsd': False, # not tested
'win32': False, # no icu-config
'sunos5': False, # not tested
@@ -267,7 +267,6 @@ setup(name="PyICU",
ext_modules=[Extension('_icu',
@@ -273,7 +273,6 @@ setup(name="PyICU",
ext_modules=[Extension('icu._icu_',
[filename for filename in sorted(os.listdir(os.curdir))
if filename.endswith('.cpp')],
- include_dirs=_includes,
extra_compile_args=_cflags,
extra_link_args=_lflags,
libraries=_libraries)],
--
2.31.1

Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ HOMEPAGE = "https://gitlab.pyicu.org/main/pyicu"
BUGTRACKER = "https://gitlab.pyicu.org/main/pyicu/-/issues"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7c4bfd81a21e3b6368bdcced992bf59"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0724597863f1581ab01429e0423e779f"

DEPENDS += "icu"

PYPI_PACKAGE = "PyICU"
SRC_URI[sha256sum] = "3d80de47045a8163db5aebc947c42b4d429eeea4f0c32af4f40b33981fa872b9"
SRC_URI[sha256sum] = "f0b9549a87f87ba7c413f13679d137271e0b37f1f39b0109ace38257d4d148d6"

SRC_URI += "file://0001-Fix-host-contamination-of-include-files.patch"

Expand Down
3 changes: 3 additions & 0 deletions meta-python/recipes-devtools/python/python3-ipy/run-ptest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
32 changes: 32 additions & 0 deletions meta-python/recipes-devtools/python/python3-ipy_1.01.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
SUMMARY = "IPy - class and tools for handling of IPv4 and IPv6 addresses and networks"
DESCRIPTION = "IPy is a Python module for handling IPv4 and IPv6 Addresses and Networks \
in a fashion similar to perl's Net::IP and friends. The IP class allows \
a comfortable parsing and handling for most notations in use for IPv4 \
and IPv6 Addresses and Networks."
SECTION = "devel/python"
HOMEPAGE = "https://github.com/autocracy/python-ipy"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=848d24919845901b4f48bae5f13252e6"

SRC_URI[md5sum] = "d6cf83e7f418ebbd23324ba1c658b907"
SRC_URI[sha256sum] = "edeca741dea2d54aca568fa23740288c3fe86c0f3ea700344571e9ef14a7cc1a"

inherit pypi setuptools3_legacy ptest

SRC_URI += " \
file://run-ptest \
"

RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
"

do_install_ptest() {
install -d ${D}${PTEST_PATH}/test/
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test
}

PYPI_PACKAGE = "IPy"

BBCLASSEXTEND = "native"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/bcb/jsonrpcserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=61b63ea9d36f6fb63ddaaaac8265304f"

SRC_URI[sha256sum] = "0cc514559596fa380bf188e31b0cdf3d9e6d9cc162fdca8a49ed511b291a9ae1"
SRC_URI[sha256sum] = "0fdd69c15e67004fb064d2254469cf82d02b7bc8a7bf7760055caa9d62d92f7c"

inherit pypi setuptools3

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \

DEPENDS += "libxml2 libxslt"

SRC_URI[sha256sum] = "a1613838aa6b89af4ba10a0f3a972836128801ed008078f8c1244e65958f1b24"
SRC_URI[sha256sum] = "f63f62fc60e6228a4ca9abae28228f35e1bd3ce675013d1dfb828688d50c6e23"

SRC_URI += " \
file://0001-setupinfo.py-check-the-return-value.patch \
"
SRC_URI += "${PYPI_SRC_URI}"
inherit pkgconfig pypi setuptools3

# {standard input}: Assembler messages:
Expand Down
15 changes: 2 additions & 13 deletions meta-python/recipes-devtools/python/python3-poetry-core_1.0.8.bb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=104d5c3c653aeededf4076773aa4c236 \

SRC_URI[sha256sum] = "951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118"

inherit pip_install_wheel python3native python3-dir pypi setuptools3-base
inherit poetry_core pypi

PIP_INSTALL_PACKAGE = "poetry_core"

RDEPENDS:${PN}:append:class-target = "\
Expand All @@ -42,16 +43,4 @@ RDEPENDS:${PN} += "\
python3-six \
"

do_configure () {
mkdir -p ${B}/dist
cat > ${B}/build-it.py << EOF
from poetry.core.masonry import api
api.build_wheel('${B}/dist')
EOF
}

do_compile () {
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${B}/build-it.py
}

BBCLASSEXTEND = "native nativesdk"
34 changes: 34 additions & 0 deletions meta-python/recipes-devtools/python/python3-pymodbus_2.5.3.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
SUMMARY = "A fully featured modbus protocol stack in python"
HOMEPAGE = "https://github.com/riptideio/pymodbus/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2c2223d66c7e674b40527b5a4c35bd76"
DEPENDS += "python3-six-native"

SRC_URI[sha256sum] = "5ef68c1a109bdb467c830ef003ef2db6494349a5248e4af946fe21c9eefe7e74"
S = "${WORKDIR}/pymodbus-${PV}"

inherit pypi setuptools3

PACKAGECONFIG ??= ""
PACKAGECONFIG[repl] = ",,,python3-aiohttp python3-click python3-prompt-toolkit python3-pygments python3-pyserial-asyncio"
PACKAGECONFIG[tornado] = ",,,python3-tornado"
PACKAGECONFIG[twisted] = ",,,python3-twisted-conch"
PACKAGECONFIG[redis] = ",,,python3-redis"
PACKAGECONFIG[sql] = ",,,python3-sqlalchemy"

RDEPENDS:${PN} += " \
python3-asyncio \
python3-core \
python3-io \
python3-json \
python3-logging \
python3-math \
python3-netserver \
"

RDEPENDS:${PN} += " \
python3-pyserial \
python3-six \
"


Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 3a3bd8475f93d54cb5bb62d239247fef2e03a733 Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Sat, 5 Mar 2022 00:37:01 -0800
Subject: [PATCH] linux.rs: Define consts for rv32 architecture

Upstream-Status: Submitted [https://github.com/nix-rust/nix/pull/1669]
Signed-off-by: Khem Raj <[email protected]>
---
src/sys/ioctl/linux.rs | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/sys/ioctl/linux.rs b/src/sys/ioctl/linux.rs
index 68ebaba..08cd0c3 100644
--- a/src/sys/ioctl/linux.rs
+++ b/src/sys/ioctl/linux.rs
@@ -34,6 +34,7 @@ mod consts {
target_arch = "s390x",
target_arch = "x86_64",
target_arch = "aarch64",
+ target_arch = "riscv32",
target_arch = "riscv64"))]
mod consts {
#[doc(hidden)]
--
2.35.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 8c1251b57827c7e757079d6e9304570643e8e80a Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Sat, 5 Mar 2022 22:18:49 -0800
Subject: [PATCH] riscv32: Define O_LARGEFILE

Some applications (e.g. nix) use this define and expect it to come from libc

Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2710]
Signed-off-by: Khem Raj <[email protected]>
---
src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs b/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs
index 4d551eb..feaa00a 100644
--- a/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs
+++ b/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs
@@ -490,6 +490,8 @@ pub const FIONREAD: ::c_ulong = 21531;
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;

+pub const O_LARGEFILE: ::c_int = 0;
+
pub const SYS_read: ::c_long = 63;
pub const SYS_write: ::c_long = 64;
pub const SYS_close: ::c_long = 57;
--
2.35.1

Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
From c711fb215de54f960a35cdc48cd506b6b5db4918 Mon Sep 17 00:00:00 2001
From a6f5bb3e7fe51733144497a3b5962b300f922a2d Mon Sep 17 00:00:00 2001
From: Khem Raj <[email protected]>
Date: Wed, 26 Jan 2022 11:50:58 -0800
Date: Mon, 7 Mar 2022 11:02:46 -0800
Subject: [PATCH] riscv64/mod.rs: Add missing error codes

These are flagged by apps e.g. python3-pyruvate

Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2656]
Upstream-Status: Backport [https://github.com/rust-lang/libc/commit/c711fb215de54f960a35cdc48cd506b6b5db4918]
Signed-off-by: Khem Raj <[email protected]>
---
src/unix/linux_like/linux/musl/b64/riscv64/mod.rs | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs b/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
index b075b4a05..6b17621c7 100644
index 48fee4e..7c88abe 100644
--- a/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
+++ b/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
@@ -548,6 +548,11 @@ pub const EHOSTUNREACH: ::c_int = 113;
@@ -551,6 +551,11 @@ pub const EHOSTUNREACH: ::c_int = 113;
pub const EALREADY: ::c_int = 114;
pub const EINPROGRESS: ::c_int = 115;
pub const ESTALE: ::c_int = 116;
Expand All @@ -28,5 +28,5 @@ index b075b4a05..6b17621c7 100644
pub const ENOMEDIUM: ::c_int = 123;
pub const EMEDIUMTYPE: ::c_int = 124;
--
2.35.0
2.35.1

Loading