python-poetry-core: bump to 2.3.2
authorAlexandru Ardelean <redacted>
Sat, 4 Apr 2026 16:35:16 +0000 (19:35 +0300)
committerAlexandru Ardelean <redacted>
Sun, 5 Apr 2026 12:04:10 +0000 (15:04 +0300)
Changelog: https://github.com/python-poetry/poetry-core/releases/tag/2.3.2

Changes include:
- Fix handling of PEP 440 post-releases in version constraints
- Minor bug fixes and internal improvements

Add test.sh to validate basic version parsing and constraint evaluation.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-poetry-core/Makefile
lang/python/python-poetry-core/test.sh [new file with mode: 0755]

index 7998f3d312427497052ff0fed0844f132051e4e9..fff768cfa0a7d05448065cfa94e02379d46f7deb 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-poetry-core
-PKG_VERSION:=2.3.1
+PKG_VERSION:=2.3.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=poetry-core
 PYPI_SOURCE_NAME:=poetry_core
-PKG_HASH:=96f791d5d7d4e040f3983d76779425cf9532690e2756a24fd5ca0f86af19ef82
+PKG_HASH:=20cb71be27b774628da9f384effd9183dfceb53bcef84063248a8672aa47031f
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
diff --git a/lang/python/python-poetry-core/test.sh b/lang/python/python-poetry-core/test.sh
new file mode 100755 (executable)
index 0000000..bab4d24
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+[ "$1" = python3-poetry-core ] || exit 0
+python3 - << 'EOF'
+import poetry.core
+assert poetry.core.__version__, "poetry.core version is empty"
+
+from poetry.core.version.version import Version
+v = Version.parse("1.2.3")
+assert str(v) == "1.2.3", f"unexpected version string: {v}"
+assert v.major == 1
+assert v.minor == 2
+assert v.patch == 3
+
+v2 = Version.parse("2.0.0")
+assert v2 > v, "version comparison failed"
+
+from poetry.core.constraints.version import parse_constraint
+c = parse_constraint(">=1.0.0,<2.0.0")
+assert c.allows(Version.parse("1.5.0")), "constraint should allow 1.5.0"
+assert not c.allows(Version.parse("2.0.0")), "constraint should not allow 2.0.0"
+EOF
git clone https://git.99rst.org/PROJECT