diff mbox series

[meta-python] python3-portion: upgrade 2.3.1 -> 2.4.0

Message ID 1678889238-20738-3-git-send-email-wangmy@fujitsu.com
State Under Review
Headers show
Series [meta-python] python3-portion: upgrade 2.3.1 -> 2.4.0 | expand

Commit Message

Mingyu Wang (Fujitsu) March 15, 2023, 2:07 p.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

Changelog:
==========
Added
------
 An AbstractDiscreteInterval class to ease the creation of specialized discrete intervals (experimental).
 A create_api function to generate an API similar to the one of portion but configured to use a given subclass of Interval (experimental, see Specialize & customize intervals).

Changed
-------
 Speed up repr and to_string for Interval instances (see #76, adm271828).
 Some internal changes to ease subclassing:
     from_string and from_data accepts a klass parameter to specify which class should be used to create Interval instances (default is Interval).
     Add a klass parameter for open, closed, openclosed, closedopen, singleton and empty (default is Interval).
     Add a _klass class attribute in IntervalDict to specify how to create Interval instances (default is Interval).
     IntervalDict uses self.__class__ to preserve subclasses when creating new instances.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../{python3-portion_2.3.1.bb => python3-portion_2.4.0.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-portion_2.3.1.bb => python3-portion_2.4.0.bb} (80%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-portion_2.3.1.bb b/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-portion_2.3.1.bb
rename to meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
index d998db01d..942f1204c 100644
--- a/meta-python/recipes-devtools/python/python3-portion_2.3.1.bb
+++ b/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
@@ -7,7 +7,7 @@  LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
 
 inherit pypi setuptools3
 
-SRC_URI[sha256sum] = "247471718131d41fb82137ab7b6466cdf4b785d047e38d309ebf34c84101a3a6"
+SRC_URI[sha256sum] = "deb16389e844dbf9aeb654261fce5febd720e4786c6690efbb9dc11608226840"
 
 RDEPENDS:${PN} = "\
     ${PYTHON_PN}-sortedcontainers \