diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pydiffx | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pydiffx')
| -rw-r--r-- | dev-python/pydiffx/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pydiffx/files/pydiffx-1.1-fix-py3.12.patch | 14 | ||||
| -rw-r--r-- | dev-python/pydiffx/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/pydiffx/pydiffx-1.1.ebuild | 47 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/pydiffx/Manifest b/dev-python/pydiffx/Manifest new file mode 100644 index 000000000000..da088a44fe9b --- /dev/null +++ b/dev-python/pydiffx/Manifest @@ -0,0 +1 @@ +DIST diffx-pydiffx-release-1.1.gh.tar.gz 83721 BLAKE2B fb38b40f4385e00bd8ac45111ac6308b8a5ba7148e74c020c9e7c6b5480466b2301e580f93c98d761087f443339394c124eee061edafd454f0d71839103a6caf SHA512 596d9d70134cadcbdb8fbdd10fe22f8922276d1a822c60430e765b70b0fba9cd16578c94743aef4afaae7ab8409cc2e171028a154cd1231ad6c54dbe229b93e3 diff --git a/dev-python/pydiffx/files/pydiffx-1.1-fix-py3.12.patch b/dev-python/pydiffx/files/pydiffx-1.1-fix-py3.12.patch new file mode 100644 index 000000000000..1be51cdb6c93 --- /dev/null +++ b/dev-python/pydiffx/files/pydiffx-1.1-fix-py3.12.patch @@ -0,0 +1,14 @@ +https://github.com/beanbaginc/diffx/pull/5 +From: Arthur Zamarin <arthurzam@gentoo.org> +Date: Tue, 6 Jun 2023 20:32:44 +0300 +Subject: [PATCH] fix usage of deprecated assertRaisesRegex + +--- a/pydiffx/tests/testcases.py ++++ b/pydiffx/tests/testcases.py +@@ -65,5 +65,5 @@ def assertMultiLineBytesEqual(self, first, second, line_endings='unix'): + + @contextmanager + def assertRaisesMessage(self, exception, message): +- with self.assertRaisesRegexp(exception, re.escape(message)): ++ with self.assertRaises(exception, msg=message): + yield diff --git a/dev-python/pydiffx/metadata.xml b/dev-python/pydiffx/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/pydiffx/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> diff --git a/dev-python/pydiffx/pydiffx-1.1.ebuild b/dev-python/pydiffx/pydiffx-1.1.ebuild new file mode 100644 index 000000000000..ea35a4d2b4f4 --- /dev/null +++ b/dev-python/pydiffx/pydiffx-1.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022-2025 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 + +MY_P=diffx-pydiffx-release-${PV} +DESCRIPTION="Python module for reading and writing DiffX files" +HOMEPAGE=" + https://diffx.org/pydiffx/ + https://github.com/beanbaginc/diffx/ + https://pypi.org/project/pydiffx/ +" +SRC_URI=" + https://github.com/beanbaginc/diffx/archive/pydiffx/release-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P}/python + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm64 x86" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/kgb[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-py3.12.patch +) + +distutils_enable_tests unittest + +src_prepare() { + # remove .dev tag that breaks revdeps + sed -e '/tag_build/d' -i setup.cfg || die + distutils-r1_src_prepare +} |
