summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-03-15 22:07:16 +0800
committerKhem Raj <raj.khem@gmail.com>2023-03-17 07:06:55 -0700
commitb416f3454843f7555636bfb1a1b4f81f39b5e360 (patch)
tree4473e0850fad57bf801dc99f2f79cdba81a2b658 /meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
parent1bcf30de0a5e11a3e5a9fe1f472bb53f6695b523 (diff)
downloadmeta-openembedded-b416f3454843f7555636bfb1a1b4f81f39b5e360.tar.gz
python3-portion: upgrade 2.3.1 -> 2.4.0
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> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-portion_2.4.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-portion_2.4.0.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb b/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
new file mode 100644
index 0000000000..942f1204c0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-portion_2.4.0.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "Python data structure and operations for intervals"
2HOMEPAGE = "https://github.com/AlexandreDecan/portion"
3SECTION = "devel/python"
4
5LICENSE = "LGPL-3.0-only"
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=05f1e16a8e59ce3e9a979e881816c2ab"
7
8inherit pypi setuptools3
9
10SRC_URI[sha256sum] = "deb16389e844dbf9aeb654261fce5febd720e4786c6690efbb9dc11608226840"
11
12RDEPENDS:${PN} = "\
13 ${PYTHON_PN}-sortedcontainers \
14"
15
16BBCLASSEXTEND = "native"