summaryrefslogtreecommitdiff
path: root/dev-python/logical-unification
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/logical-unification
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/logical-unification')
-rw-r--r--dev-python/logical-unification/Manifest1
-rw-r--r--dev-python/logical-unification/files/logical-unification-0.4.7-py314.patch40
-rw-r--r--dev-python/logical-unification/logical-unification-0.4.7.ebuild49
-rw-r--r--dev-python/logical-unification/metadata.xml10
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/logical-unification/Manifest b/dev-python/logical-unification/Manifest
new file mode 100644
index 000000000000..d031492dcd26
--- /dev/null
+++ b/dev-python/logical-unification/Manifest
@@ -0,0 +1 @@
+DIST logical-unification-0.4.7.gh.tar.gz 24199 BLAKE2B be69254f85cfd7ce00624bb34bcfcf888e1a9b1861fd32d0b0072cc43a133f535f4fdd495ab2635769db048ad8568dd2c94fbc3db284a7603d2fc2c1514457df SHA512 77f5633a9d78fa7320a8e23f0fe5132ac33e5ba91601e4e5477ee4b1d363e54aa238312ee0afc49393d6f1aa186b1b9be8e1bc89fbbcefa33a789255f6e67471
diff --git a/dev-python/logical-unification/files/logical-unification-0.4.7-py314.patch b/dev-python/logical-unification/files/logical-unification-0.4.7-py314.patch
new file mode 100644
index 000000000000..141e06a9863d
--- /dev/null
+++ b/dev-python/logical-unification/files/logical-unification-0.4.7-py314.patch
@@ -0,0 +1,40 @@
+From 4f2c7605a30efb1cf0b3b35e367ac56492918684 Mon Sep 17 00:00:00 2001
+From: "Brandon T. Willard" <brandonwillard@users.noreply.github.com>
+Date: Tue, 24 Feb 2026 15:30:19 -0600
+Subject: [PATCH] Update ast.Num to ast.Constant
+
+Closes #48
+---
+ tests/test_more.py | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/tests/test_more.py b/tests/test_more.py
+index 440c1be..081eaf8 100644
+--- a/tests/test_more.py
++++ b/tests/test_more.py
+@@ -33,9 +33,9 @@ def test_unify_object():
+ def test_unify_nonstandard_object():
+ _unify.add((ast.AST, ast.AST, Mapping), _unify_object)
+ x = var()
+- assert unify(ast.Num(n=1), ast.Num(n=1), {}) == {}
+- assert unify(ast.Num(n=1), ast.Num(n=2), {}) is False
+- assert unify(ast.Num(n=1), ast.Num(n=x), {}) == {x: 1}
++ assert unify(ast.Constant(n=1), ast.Constant(n=1), {}) == {}
++ assert unify(ast.Constant(n=1), ast.Constant(n=2), {}) is False
++ assert unify(ast.Constant(n=1), ast.Constant(n=x), {}) == {x: 1}
+
+
+ def test_reify_object():
+@@ -51,9 +51,9 @@ def test_reify_object():
+ def test_reify_nonstandard_object():
+ _reify.add((ast.AST, Mapping), _reify_object)
+ x = var()
+- assert reify(ast.Num(n=1), {}).n == 1
+- assert reify(ast.Num(n=x), {}).n == x
+- assert reify(ast.Num(n=x), {x: 2}).n == 2
++ assert reify(ast.Constant(n=1), {}).n == 1
++ assert reify(ast.Constant(n=x), {}).n == x
++ assert reify(ast.Constant(n=x), {x: 2}).n == 2
+
+
+ def test_reify_slots():
diff --git a/dev-python/logical-unification/logical-unification-0.4.7.ebuild b/dev-python/logical-unification/logical-unification-0.4.7.ebuild
new file mode 100644
index 000000000000..bfec6b88fd91
--- /dev/null
+++ b/dev-python/logical-unification/logical-unification-0.4.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Logical unification in Python"
+HOMEPAGE="
+ https://pypi.org/project/logical-unification/
+ https://github.com/pythological/unification/
+"
+# No tests in sdist, as of 0.4.6
+SRC_URI="
+ https://github.com/pythological/unification/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/unification-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm arm64 ~loong ~riscv x86"
+
+RDEPEND="
+ dev-python/multipledispatch[${PYTHON_USEDEP}]
+ dev-python/toolz[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/pythological/unification/commit/4f2c7605a30efb1cf0b3b35e367ac56492918684
+ "${FILESDIR}/${P}-py314.patch"
+)
+
+EPYTEST_DESELECT=(
+ tests/test_benchmarks.py
+ # weird test for testing limits of runtime
+ tests/test_core.py::test_reify_recursion_limit
+)
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
diff --git a/dev-python/logical-unification/metadata.xml b/dev-python/logical-unification/metadata.xml
new file mode 100644
index 000000000000..5e95859f915a
--- /dev/null
+++ b/dev-python/logical-unification/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches />
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>