Skip to contentSkip to conversation

python3-portion: Upgrade 2.3.0 -> 2.3.1

PATCH New [email protected] 2 participants 6 messages Feb 11, 2023 – Feb 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-portion: Upgrade 2.3.0 -> 2.3.1

From: Wang Mingyu <[email protected]>

Changed
=======
Speed up lookups in IntervalDict for non-interval keys.
Speed up iterate by no longer creating singleton instances under the hood. Drop official support for Python 3.6.

Fixed
=====
Infinite recursion when a subclass of an Interval is compared using > with an Interval instance (see #75).

---
 .../{python3-portion_2.3.0.bb => python3-portion_2.3.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-portion_2.3.0.bb => python3-portion_2.3.1.bb} (80%)
meta-python/recipes-devtools/python/python3-portion_2.3.1.bb renamed from meta-python/recipes-devtools/python/python3-portion_2.3.0.bb +1 -1
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-portion_2.3.0.bb
rename to meta-python/recipes-devtools/python/python3-portion_2.3.1.bb
index 1638d64c3..d998db01d 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
 
 inherit pypi setuptools3
 
-SRC_URI[sha256sum] = "0e9d42838099263201b25517e4c1bd57042b5fe44432d6df38cef72d84d1eb1f"
+SRC_URI[sha256sum] = "247471718131d41fb82137ab7b6466cdf4b785d047e38d309ebf34c84101a3a6"
 
 RDEPENDS:${PN} = "\
     ${PYTHON_PN}-sortedcontainers \
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 python3-pykickstart: upgrade 3.34 -> 3.43

From: Wang Mingyu <[email protected]>

0001-support-authentication-for-kickstart.patch 0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch 0004-load.py-retry-to-invoke-request-with-timeout.patch refreshed for new version.

---
 ...support-authentication-for-kickstart.patch | 35 ++++++++++---------
 ...er.py-add-lock-for-readKickstart-and.patch | 17 ++++-----
 ...retry-to-invoke-request-with-timeout.patch | 18 +++++-----
 ...rt_3.34.bb => python3-pykickstart_3.43.bb} |  2 +-
 4 files changed, 38 insertions(+), 34 deletions(-)
 rename meta-python/recipes-extended/python-pykickstart/{python3-pykickstart_3.34.bb => python3-pykickstart_3.43.bb} (94%)
meta-python/recipes-extended/python-pykickstart/files/0001-support-authentication-for-kickstart.patch +18 -17
index 5f95d74bf..23a06bf62 100644
@@ -12,15 +12,14 @@ which the invoker could parse this specific error.
 Upstream-Status: inappropriate [oe specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
-
 ---
  pykickstart/errors.py | 17 +++++++++++++++++
- pykickstart/load.py   | 34 ++++++++++++++++++++++++++++------
+ pykickstart/load.py   | 32 +++++++++++++++++++++++++++-----
  pykickstart/parser.py |  4 ++--
- 3 files changed, 47 insertions(+), 8 deletions(-)
+ 3 files changed, 46 insertions(+), 7 deletions(-)
 
 diff --git a/pykickstart/errors.py b/pykickstart/errors.py
-index 8294f59a..3d20bf82 100644
+index 8294f59..3d20bf8 100644
 --- a/pykickstart/errors.py
 +++ b/pykickstart/errors.py
 @@ -32,6 +32,9 @@ This module exports several exception classes:
@@ -52,16 +51,15 @@ index 8294f59a..3d20bf82 100644
 +    def __str__(self):
 +        return self.value
 diff --git a/pykickstart/load.py b/pykickstart/load.py
-index 30e2fcfa..b984876d 100644
+index eb76b65..f51cf08 100644
 --- a/pykickstart/load.py
 +++ b/pykickstart/load.py
-@@ -18,9 +18,12 @@
+@@ -18,9 +18,11 @@
  # with the express permission of Red Hat, Inc.
  #
  import requests
 +from requests.auth import HTTPDigestAuth
 +from requests.auth import HTTPBasicAuth
-+
  import shutil
  
 -from pykickstart.errors import KickstartError
@@ -69,7 +67,7 @@ index 30e2fcfa..b984876d 100644
  from pykickstart.i18n import _
  from requests.exceptions import SSLError, RequestException
  
-@@ -28,7 +31,7 @@ _is_url = lambda location: '://' in location  # RFC 3986
+@@ -28,7 +30,7 @@ is_url = lambda location: '://' in location  # RFC 3986
  
  SSL_VERIFY = True
  
@@ -78,21 +76,20 @@ index 30e2fcfa..b984876d 100644
      '''Load a destination URL or file into a string.
      Type of input is inferred automatically.
  
-@@ -39,7 +42,7 @@ def load_to_str(location):
+@@ -39,7 +41,7 @@ def load_to_str(location):
      Raises: KickstartError on error reading'''
  
-     if _is_url(location):
+     if is_url(location):
 -        return _load_url(location)
 +        return _load_url(location, user=user, passwd=passwd)
      else:
          return _load_file(location)
  
-@@ -69,11 +72,30 @@ def load_to_file(location, destination):
+@@ -69,11 +71,31 @@ def load_to_file(location, destination):
          _copy_file(location, destination)
          return destination
  
 -def _load_url(location):
--    '''Load a location (URL or filename) and return contents as string'''
 +def _get_auth(location, user=None, passwd=None):
 +
 +    auth = None
@@ -101,7 +98,7 @@ index 30e2fcfa..b984876d 100644
 +        if user is None or passwd is None:
 +            log.info("Require Authentication")
 +            raise KickstartAuthError("Require Authentication.\nAppend 'ksuser=<username> kspasswd=<password>' to boot command")
- 
++
 +        reasons = request.headers.get("WWW-Authenticate", "").split()
 +        if reasons:
 +            auth_type = reasons[0]
@@ -113,8 +110,9 @@ index 30e2fcfa..b984876d 100644
 +    return auth
 +
 +def _load_url(location, user=None, passwd=None):
-+    '''Load a location (URL or filename) and return contents as string'''
+     '''Load a location (URL or filename) and return contents as string'''
 +    auth = _get_auth(location, user=user, passwd=passwd)
+ 
      try:
 -        request = requests.get(location, verify=SSL_VERIFY)
 +        request = requests.get(location, verify=SSL_VERIFY, auth=auth)
@@ -122,10 +120,10 @@ index 30e2fcfa..b984876d 100644
          raise KickstartError(_('Error securely accessing URL "%s"') % location + ': {e}'.format(e=str(e)))
      except RequestException as e:
 diff --git a/pykickstart/parser.py b/pykickstart/parser.py
-index b23e54f1..e10f06b5 100644
+index 7edf8aa..46c5299 100644
 --- a/pykickstart/parser.py
 +++ b/pykickstart/parser.py
-@@ -796,7 +796,7 @@ class KickstartParser(object):
+@@ -790,7 +790,7 @@ class KickstartParser(object):
          i = PutBackIterator(s.splitlines(True) + [""])
          self._stateMachine(i)
  
@@ -134,7 +132,7 @@ index b23e54f1..e10f06b5 100644
          """Process a kickstart file, given by the filename f."""
          if reset:
              self._reset()
-@@ -817,7 +817,7 @@ class KickstartParser(object):
+@@ -811,7 +811,7 @@ class KickstartParser(object):
          self.currentdir[self._includeDepth] = cd
  
          try:
@@ -143,3 +141,6 @@ index b23e54f1..e10f06b5 100644
          except KickstartError as e:
              raise KickstartError(_("Unable to open input kickstart file: %s") % str(e), lineno=0)
  
+-- 
+2.34.1
+
meta-python/recipes-extended/python-pykickstart/files/0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch +9 -8
index 4a001f338..5e0d6166f 100644
@@ -1,7 +1,7 @@
 From 62fdead139edb0f29b2f222efcb8f39be15b057e Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Mon, 30 Jul 2018 15:47:13 +0800
-Subject: [PATCH 2/4] pykickstart/parser.py: add lock for readKickstart and 
+Subject: [PATCH 2/4] pykickstart/parser.py: add lock for readKickstart and
  support https without certification
 
 - Add lock for readKickstart to fix race issue
@@ -9,18 +9,19 @@ Subject: [PATCH 2/4] pykickstart/parser.py: add lock for readKickstart and
 - Support to download kickstart file through https without certification
 
 Signed-off-by: Hongxu Jia <[email protected]>
+Signed-off-by: Wang Mingyu <[email protected]>
 ---
  pykickstart/load.py   |  2 +-
  pykickstart/parser.py | 18 ++++++++++++++++++
  2 files changed, 19 insertions(+), 1 deletion(-)
 
 diff --git a/pykickstart/load.py b/pykickstart/load.py
-index c6f013f..7adb751 100644
+index 8da8051..e856c8d 100644
 --- a/pykickstart/load.py
 +++ b/pykickstart/load.py
-@@ -30,7 +30,7 @@ from requests.exceptions import SSLError, RequestException
+@@ -32,7 +32,7 @@ log = logging.getLogger("anaconda.main")
  
- _is_url = lambda location: '://' in location  # RFC 3986
+ is_url = lambda location: '://' in location  # RFC 3986
  
 -SSL_VERIFY = True
 +SSL_VERIFY = False
@@ -28,10 +29,10 @@ index c6f013f..7adb751 100644
  def load_to_str(location, user=None, passwd=None):
      '''Load a destination URL or file into a string.
 diff --git a/pykickstart/parser.py b/pykickstart/parser.py
-index e44099b..e68174d 100644
+index b95ba90..a55a9a3 100644
 --- a/pykickstart/parser.py
 +++ b/pykickstart/parser.py
-@@ -55,6 +55,20 @@ from pykickstart.i18n import _
+@@ -51,6 +51,20 @@ from pykickstart.i18n import _
  STATE_END = "end"
  STATE_COMMANDS = "commands"
  
@@ -52,7 +53,7 @@ index e44099b..e68174d 100644
  def _preprocessStateMachine(lineIter):
      l = None
      lineno = 0
-@@ -788,6 +802,10 @@ class KickstartParser(object):
+@@ -791,6 +805,10 @@ class KickstartParser(object):
          self._stateMachine(i)
  
      def readKickstart(self, f, reset=True, username=None, password=None):
@@ -64,5 +65,5 @@ index e44099b..e68174d 100644
          if reset:
              self._reset()
 -- 
-2.7.4
+2.34.1
 
meta-python/recipes-extended/python-pykickstart/files/0004-load.py-retry-to-invoke-request-with-timeout.patch +10 -8
index bf5a19723..b09bb74df 100644
@@ -11,19 +11,18 @@ network is up, the fetch works.
 Upstream-Status: inappropriate [oe specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
-
 ---
  pykickstart/load.py | 31 +++++++++++++++++++++++++++++++
  1 file changed, 31 insertions(+)
 
 diff --git a/pykickstart/load.py b/pykickstart/load.py
-index f75fe5d3..a8f3ed1d 100644
+index 58faba6..e856c8d 100644
 --- a/pykickstart/load.py
 +++ b/pykickstart/load.py
-@@ -21,12 +21,16 @@ import requests
+@@ -20,12 +20,16 @@
+ import requests
  from requests.auth import HTTPDigestAuth
  from requests.auth import HTTPBasicAuth
- 
 +import time
  import shutil
  
@@ -34,10 +33,10 @@ index f75fe5d3..a8f3ed1d 100644
 +import logging
 +log = logging.getLogger("anaconda.main")
 +
- _is_url = lambda location: '://' in location  # RFC 3986
+ is_url = lambda location: '://' in location  # RFC 3986
  
  SSL_VERIFY = False
-@@ -72,6 +76,29 @@ def load_to_file(location, destination):
+@@ -71,6 +75,29 @@ def load_to_file(location, destination):
          _copy_file(location, destination)
          return destination
  
@@ -67,7 +66,7 @@ index f75fe5d3..a8f3ed1d 100644
  def _get_auth(location, user=None, passwd=None):
  
      auth = None
-@@ -93,6 +120,10 @@ def _get_auth(location, user=None, passwd=None):
+@@ -92,6 +119,10 @@ def _get_auth(location, user=None, passwd=None):
  
  def _load_url(location, user=None, passwd=None):
      '''Load a location (URL or filename) and return contents as string'''
@@ -76,5 +75,8 @@ index f75fe5d3..a8f3ed1d 100644
 +        raise KickstartError(_("Connection %s failed" % location))
 +
      auth = _get_auth(location, user=user, passwd=passwd)
+ 
      try:
-         request = requests.get(location, verify=SSL_VERIFY, auth=auth)
+-- 
+2.34.1
+
meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.43.bb renamed from meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.34.bb +1 -1
similarity index 94%
rename from meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.34.bb
rename to meta-python/recipes-extended/python-pykickstart/python3-pykickstart_3.43.bb
index 6bf9ada58..6f2edf224 100644
@@ -18,7 +18,7 @@ SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=ma
            file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
            file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
            "
-SRCREV = "bfd836cfdd8439d984595aca015811ed5c6be733"
+SRCREV = "6d488a0120f4da40aa0b04e29f37d7bb3297247f"
 
 UPSTREAM_CHECK_GITTAGREGEX = "r(?P<pver>\d+(\.\d+)+(-\d+)*)"
 
Signature · 1 line
2.34.1
#2 lore raw

PATCH 1/1 python3-pylint: upgrade 2.14.5 -> 2.16.1

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Changelog:
=========
-Fix a crash happening for python interpreter < 3.9 following a failed typing
update.
-The accept-no-raise-doc option related to missing-raises-doc will now
be correctly taken into account all the time.
-Add a keyword-only compare_constants argument to safe_infer. -Sort --generated-rcfile output.

---
 .../{python3-pylint_2.14.5.bb => python3-pylint_2.16.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pylint_2.14.5.bb => python3-pylint_2.16.1.bb} (86%)
meta-python/recipes-devtools/python/python3-pylint_2.16.1.bb renamed from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb +1 -1
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
rename to meta-python/recipes-devtools/python/python3-pylint_2.16.1.bb
index 738b9250c..7096e3b36 100644
@@ -3,7 +3,7 @@ HOMEPAGE= "http://www.pylint.org/"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRC_URI[sha256sum] = "487ce2192eee48211269a0e976421f334cf94de1806ca9d0a99449adcdf0285e"
+SRC_URI[sha256sum] = "ffe7fa536bb38ba35006a7c8a6d2efbfdd3d95bbf21199cad31f76b1c50aaf30"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [oe] [meta-python] [PATCH] python3-pylint: upgrade 2.14.5 -> 2.16.1

This fails to build

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/2457/steps/14/logs/stdio

Quoted 46 lines · wangmy

From: Wang Mingyu <[email protected]>

Changelog:
=========

(quoted diff) +0 -4
-Fix a crash happening for python interpreter < 3.9 following a failed typing
 update.
-The accept-no-raise-doc option related to missing-raises-doc will now
 be correctly taken into account all the time.
-Add a keyword-only compare_constants argument to safe_infer.
-Sort --generated-rcfile output.
---
 .../{python3-pylint_2.14.5.bb => python3-pylint_2.16.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pylint_2.14.5.bb => python3-pylint_2.16.1.bb} (86%)
meta-python/recipes-devtools/python/python3-pylint_2.16.1.bb renamed from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb +1 -2
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
rename to meta-python/recipes-devtools/python/python3-pylint_2.16.1.bb
index 738b9250c..7096e3b36 100644
@@ -3,7 +3,7 @@ HOMEPAGE= "http://www.pylint.org/"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
 
-SRC_URI[sha256sum] = "487ce2192eee48211269a0e976421f334cf94de1806ca9d0a99449adcdf0285e"
+SRC_URI[sha256sum] = "ffe7fa536bb38ba35006a7c8a6d2efbfdd3d95bbf21199cad31f76b1c50aaf30"
 
 inherit pypi setuptools3
 
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#101024): https://lists.openembedded.org/g/openembedded-devel/message/101024
Mute This Topic: https://lists.openembedded.org/mt/96896324/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

PATCH 1/1 python3-pymisp: upgrade 2.4.167 -> 2.4.168

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Fix
========
- Set relationship_type default in MISPTag to empty string.
- Another typo in readme.
- Typo in readme.
- Update whl files.
- Nvm, readthedocs requires python 3.8 at most.

New
======
- Add relationship_type in Tag entries for feeds.

---
 .../{python3-pymisp_2.4.167.bb => python3-pymisp_2.4.168.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pymisp_2.4.167.bb => python3-pymisp_2.4.168.bb} (92%)
meta-python/recipes-devtools/python/python3-pymisp_2.4.168.bb renamed from meta-python/recipes-devtools/python/python3-pymisp_2.4.167.bb +1 -1
similarity index 92%
rename from meta-python/recipes-devtools/python/python3-pymisp_2.4.167.bb
rename to meta-python/recipes-devtools/python/python3-pymisp_2.4.168.bb
index b4680e35d..2beff5c33 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a3639cf5780f71b125d3e9d1dc127c20"
 
 SRC_URI = "git://github.com/MISP/PyMISP.git;protocol=https;branch=main"
-SRCREV = "29dc2d6d1aa7919f50db256525bf66aa52b585ec"
+SRCREV = "9a7adb2e0d60d2edee9f541db808652875bae20e"
 S = "${WORKDIR}/git"
 
 inherit python_poetry_core
Signature · 1 line
2.34.1
#5 lore raw

PATCH 1/1 python3-pymodbus: upgrade 3.1.0 -> 3.1.3

In reply to [email protected]

From: Wang Mingyu <[email protected]>

Changelog:
=========
Solve log problem in payload.
Fix register type check for size bigger than 3 registers (6 bytes) (#1323) Re-add SQL tests. (#1329)
Central logging. (#1324)
Skip sqlAlchemy test. (#1325)
Solve 1319 (#1320)
Update README.rst
Correct README link. (#1316)
More direct readme links for REPL (#1314)
Add classifier for 3.11 (#1312)
Update README.rst (#1313)
Delete ModbusCommonBlock.png (#1311)
Add modbus standard to README. (#1308)
fix no auto reconnect after close/connect in TCPclient (#1298) Update examples.rst (#1307)
var name clarification (#1304)
Bump external libraries. (#1302)
Reorganize documentation to make it easier accessible (#1299) Simulator documentation (first version). (#1296)
Updated datastore Simulator. (#1255)
Update links to pydmodbus-dev (#1291)
Change riptideio to pymodbus-dev. (#1292)
#1258 Avoid showing unit as a seperate command line argument (#1288) Solve docker cache problem. (#1287)
add missing server.start() (#1282)
small performance improvement on debug log (#1279)
Fix Unix sockets parsing (#1281)
client: Allow unix domain socket. (#1274)
transfer timeout to protocol object. (#1275)
Add ModbusUnixServer / StartAsyncUnixServer. (#1273)
Added return in AsyncModbusSerialClient.connect (#1271)
add connect() to the very first example (#1270)
Solve docker problem. (#1268)
Test stop of server task. (#1256)

Thanks to:

---
 .../{python3-pymodbus_3.1.0.bb => python3-pymodbus_3.1.3.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pymodbus_3.1.0.bb => python3-pymodbus_3.1.3.bb} (91%)
meta-python/recipes-devtools/python/python3-pymodbus_3.1.3.bb renamed from meta-python/recipes-devtools/python/python3-pymodbus_3.1.0.bb +1 -1
similarity index 91%
rename from meta-python/recipes-devtools/python/python3-pymodbus_3.1.0.bb
rename to meta-python/recipes-devtools/python/python3-pymodbus_3.1.3.bb
index b58c62218..3750f5781 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2c2223d66c7e674b40527b5a4c35bd76"
 DEPENDS += "python3-six-native"
 
-SRC_URI[sha256sum] = "eeba02c86b13b1f885c0acc50adf4611df24ab85066ff54daa37c2d883c32525"
+SRC_URI[sha256sum] = "714e5d6b7e28c4016a94346e73033aff276b6ce8bd22e470ba4fd8b982e08a98"
 S = "${WORKDIR}/pymodbus-${PV}"
 
 inherit pypi setuptools3
Signature · 1 line
2.34.1