summaryrefslogtreecommitdiff
path: root/dev-python/knowit
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-04 19:14:59 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-04 19:14:59 +0000
commiteb879137397b2780739bdbeddd7ea01439186c1c (patch)
treeba318372285287dd4fa2c6661bc832810bd34b26 /dev-python/knowit
parent50a73c5441045f14bdb49aededf33cd7f23ff891 (diff)
downloadbaldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.tar.gz
baldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.tar.xz
baldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.zip
Adding metadata
Diffstat (limited to 'dev-python/knowit')
-rw-r--r--dev-python/knowit/Manifest3
-rw-r--r--dev-python/knowit/files/knowit-0.5.6-no-pint.patch209
-rw-r--r--dev-python/knowit/knowit-0.5.10.ebuild71
-rw-r--r--dev-python/knowit/knowit-0.5.6.ebuild69
-rw-r--r--dev-python/knowit/knowit-0.5.8.ebuild71
5 files changed, 0 insertions, 423 deletions
diff --git a/dev-python/knowit/Manifest b/dev-python/knowit/Manifest
index a741fac764df..c1a6a5d1ce04 100644
--- a/dev-python/knowit/Manifest
+++ b/dev-python/knowit/Manifest
@@ -1,5 +1,2 @@
-DIST knowit-0.5.10.tar.gz 59356 BLAKE2B f62baee74fb743d4032abe5ce0f4eb85ec8d803be6fde601bba2ef345bbd86c32d8416cecb25839910731ea1e30a46770c42fba432ef763efebfb7b5e425b2b9 SHA512 6ad5f8d6ea866cde285ebac5955704c888530b7ad4a3b0707b9ac2eb4a581cd7028035fa87b7e67b20b2b8d785619036463826484a0886cb8dedee585c2154f1
DIST knowit-0.5.11.tar.gz 59398 BLAKE2B c7acc010c116a36e4ee6536df2b0d1617451811208ca7fcce69275600c323c83bdbe255932ef9d2b5010335fc04a3f4589aa504cfcc45dcbdc742661b51f51b4 SHA512 b743ebb0b3298e25d42b13296728d5d42c6de0550f3d726a2c1e371d8c17de0a2000e8cc74400a551c9cbf78948b4694b24ab2f7eef0ddb8ddc1447f04b570f5
-DIST knowit-0.5.6.gh.tar.gz 79683 BLAKE2B da132883e7b4d15a2a21b22b05cb627859947f293a4611a853b2bd31341e4b317a5de42bb7ab48b64a340d96327cb579bb7722f1e875dfc58d1e26652844064c SHA512 c064c2428300f0b2ee08e514e8deea2299f0aa9a552a7ac9ea914035e4e40666a21aa8d2256605d2c86c61592955f1e6b432d2cf43b7a34a3d1235d4b9971aaf
-DIST knowit-0.5.8.tar.gz 59362 BLAKE2B 724b1f00bced9097059fbc798e75a872e347e2b00b5a9079172f7275f451d25f013afb9fd993775013a7a5181f29cdb4d7eb81eea22ff8d50a004c5f4ecd4ef0 SHA512 b6140e64f6a8295ac9fa811db1523c3a1c8aef686e3251f99bbc17e71ab9ddc9041bd4f8b8ed335691fb8fc4949da210f0bc95fbfcf7168045130f4357040b16
DIST matroska_test_w1_1.zip 184550509 BLAKE2B f111725aa08267661942072c2d4ac019d3d322c4e933aad10afb3aa6f69bb3469114c4400d161e53d8a7618b818b22465177460003804a7ac3e69fa4f4db000d SHA512 f170a8e83dab15228f992b3692330163da2402b8e436c7fa195ac1ecc06cf1eaf1a48d8c99a85c031122c158c2d4006023aae75d5b7805385ba25a6d601cb78f
diff --git a/dev-python/knowit/files/knowit-0.5.6-no-pint.patch b/dev-python/knowit/files/knowit-0.5.6-no-pint.patch
deleted file mode 100644
index cea4b8450848..000000000000
--- a/dev-python/knowit/files/knowit-0.5.6-no-pint.patch
+++ /dev/null
@@ -1,209 +0,0 @@
-https://github.com/ratoaq2/knowit/pull/199
-
-We don't have pint packaged yet, but even as of May 2025, there's upstream
-bugs in pint where it doesn't work w/ Python 3.13 anyway, e.g.
-https://github.com/hgrecco/pint/issues/2168.
-
-From e9f06b859b1dd3f9154ca6b84dbdc3c19e601294 Mon Sep 17 00:00:00 2001
-From: getzze <getzze@gmail.com>
-Date: Fri, 18 Oct 2024 12:11:49 +0100
-Subject: [PATCH 1/4] deal with pint errors at import
-
----
- knowit/units.py | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/knowit/units.py b/knowit/units.py
-index 51e6cae..c8421ca 100644
---- a/knowit/units.py
-+++ b/knowit/units.py
-@@ -1,5 +1,8 @@
-+import logging
- import typing
-
-+logger = logging.getLogger(__name__)
-+
-
- class NullRegistry:
- """A NullRegistry that masquerades as a pint.UnitRegistry."""
-@@ -30,6 +33,8 @@ def _build_unit_registry():
- return registry
- except ModuleNotFoundError:
- pass
-+ except Exception:
-+ logger.exception("Cannot import the pint package")
-
- return NullRegistry()
-
-
-From 9b57a93d8cde4b7dac30bfdba0ba89bb2db3060c Mon Sep 17 00:00:00 2001
-From: getzze <getzze@gmail.com>
-Date: Fri, 18 Oct 2024 13:11:56 +0100
-Subject: [PATCH 2/4] make pint an extra dependency
-
----
- pyproject.toml | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index d0d0c9d..aaa8cbc 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -43,7 +43,7 @@ knowit = "knowit.__main__:main"
- python = "^3.9.0"
- babelfish = "^0.6.1"
- enzyme = "^0.5.2"
--pint = ">=0.20.1,<0.25.0"
-+pint = { version = ">=0.20.1,<0.25.0", optional = true }
- pymediainfo = "^6.0.1"
- pyyaml = "^6.0"
- trakit = "^0.2.2"
-@@ -62,6 +62,9 @@ types-requests = "^2.28.11.8"
- types-mock = "^5.0.0.2"
- typing-extensions = "^4.12.2"
-
-+[tool.poetry.extras]
-+pint = ["pint"]
-+
- [build-system]
- requires = ["poetry-core"]
- build-backend = "poetry.core.masonry.api"
-
-From c938f0b7ff4b2583b66e598f59249a9065927ea2 Mon Sep 17 00:00:00 2001
-From: getzze <getzze@gmail.com>
-Date: Fri, 18 Oct 2024 14:07:15 +0100
-Subject: [PATCH 3/4] update poetry.lock
-
----
- poetry.lock | 29 ++++++++++++++++++-----------
- 1 file changed, 18 insertions(+), 11 deletions(-)
-
-diff --git a/poetry.lock b/poetry.lock
-index 4b14c3e..7cf5e25 100644
---- a/poetry.lock
-+++ b/poetry.lock
-@@ -4,7 +4,7 @@
- name = "appdirs"
- version = "1.4.4"
- description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
--optional = false
-+optional = true
- python-versions = "*"
- files = [
- {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"},
-@@ -293,7 +293,7 @@ setuptools = "*"
- name = "flexcache"
- version = "0.3"
- description = "Saves and loads to the cache a transformed versions of a source object."
--optional = false
-+optional = true
- python-versions = ">=3.9"
- files = [
- {file = "flexcache-0.3-py3-none-any.whl", hash = "sha256:d43c9fea82336af6e0115e308d9d33a185390b8346a017564611f1466dcd2e32"},
-@@ -310,7 +310,7 @@ test = ["pytest", "pytest-cov", "pytest-mpl", "pytest-subtests"]
- name = "flexparser"
- version = "0.3.1"
- description = "Parsing made fun ... using typing."
--optional = false
-+optional = true
- python-versions = ">=3.9"
- files = [
- {file = "flexparser-0.3.1-py3-none-any.whl", hash = "sha256:2e3e2936bec1f9277f777ef77297522087d96adb09624d4fe4240fd56885c013"},
-@@ -462,7 +462,7 @@ flake8 = ">=5.0.0"
- name = "pint"
- version = "0.24.3"
- description = "Physical quantities module"
--optional = false
-+optional = true
- python-versions = ">=3.9"
- files = [
- {file = "Pint-0.24.3-py3-none-any.whl", hash = "sha256:d98667e46fd03a1b94694fbfa104ec30858684d8ab26952e2a348b48059089bb"},
-@@ -693,19 +693,23 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
-
- [[package]]
- name = "setuptools"
--version = "71.0.1"
-+version = "75.2.0"
- description = "Easily download, build, install, upgrade, and uninstall Python packages"
- optional = false
- python-versions = ">=3.8"
- files = [
-- {file = "setuptools-71.0.1-py3-none-any.whl", hash = "sha256:1eb8ef012efae7f6acbc53ec0abde4bc6746c43087fd215ee09e1df48998711f"},
-- {file = "setuptools-71.0.1.tar.gz", hash = "sha256:c51d7fd29843aa18dad362d4b4ecd917022131425438251f4e3d766c964dd1ad"},
-+ {file = "setuptools-75.2.0-py3-none-any.whl", hash = "sha256:a7fcb66f68b4d9e8e66b42f9876150a3371558f98fa32222ffaa5bced76406f8"},
-+ {file = "setuptools-75.2.0.tar.gz", hash = "sha256:753bb6ebf1f465a1912e19ed1d41f403a79173a9acf66a42e7e6aec45c3c16ec"},
- ]
-
- [package.extras]
--core = ["importlib-metadata (>=6)", "importlib-resources (>=5.10.2)", "jaraco.text (>=3.7)", "more-itertools (>=8.8)", "ordered-set (>=3.1.1)", "packaging (>=24)", "platformdirs (>=2.6.2)", "tomli (>=2.0.1)", "wheel (>=0.43.0)"]
--doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (<7.4)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"]
--test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "mypy (==1.10.0)", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (<0.4)", "pytest-ruff (>=0.2.1)", "pytest-ruff (>=0.3.2)", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
-+check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)", "ruff (>=0.5.2)"]
-+core = ["importlib-metadata (>=6)", "importlib-resources (>=5.10.2)", "jaraco.collections", "jaraco.functools", "jaraco.text (>=3.7)", "more-itertools", "more-itertools (>=8.8)", "packaging", "packaging (>=24)", "platformdirs (>=2.6.2)", "tomli (>=2.0.1)", "wheel (>=0.43.0)"]
-+cover = ["pytest-cov"]
-+doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"]
-+enabler = ["pytest-enabler (>=2.2)"]
-+test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"]
-+type = ["importlib-metadata (>=7.0.2)", "jaraco.develop (>=7.21)", "mypy (==1.11.*)", "pytest-mypy"]
-
- [[package]]
- name = "snowballstemmer"
-@@ -813,7 +817,10 @@ files = [
- doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
- test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
-
-+[extras]
-+pint = ["pint"]
-+
- [metadata]
- lock-version = "2.0"
- python-versions = "^3.9.0"
--content-hash = "13770256de537cfe1e5dc84bde3dafaab61a9166f85bd2e13ffee64fe6569298"
-+content-hash = "a94a83fccf98ce20e10fece575ba4bbf07c211e6a090d56831adaf762b2575fa"
-
-From e3c9a2b02f8c7eede9227cdf9ccde054dc199c68 Mon Sep 17 00:00:00 2001
-From: getzze <getzze@gmail.com>
-Date: Fri, 18 Oct 2024 15:07:41 +0100
-Subject: [PATCH 4/4] overload NullRegistry.__call__
-
----
- knowit/units.py | 11 +++++++++++
- tests/__init__.py | 2 +-
- 2 files changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/knowit/units.py b/knowit/units.py
-index c8421ca..684658b 100644
---- a/knowit/units.py
-+++ b/knowit/units.py
-@@ -14,6 +14,17 @@ def __getattr__(self, item: typing.Any) -> int:
- """Return a Scalar 1 to simulate a unit."""
- return 1
-
-+ def __call__(self, value: str) -> float:
-+ """Try converting to int, to float and fallback to a scalar 1.0."""
-+ try:
-+ return int(value)
-+ except ValueError:
-+ try:
-+ return float(value)
-+ except ValueError:
-+ pass
-+ return 1
-+
- def __bool__(self):
- """Return False since a NullRegistry is not a pint.UnitRegistry."""
- return False
-diff --git a/tests/__init__.py b/tests/__init__.py
-index 20e0490..5c91d3b 100644
---- a/tests/__init__.py
-+++ b/tests/__init__.py
-@@ -250,7 +250,7 @@ def parse_quantity(value):
- if isinstance(value, str):
- for unit in ('pixel', 'bit', 'byte', 'FPS', 'bps', 'Hz'):
- if value.endswith(' ' + unit):
-- return units(value[:-(len(unit))] + ' * ' + unit)
-+ return units(value[:-len(unit)]) * units(unit)
-
- return value
-
-
diff --git a/dev-python/knowit/knowit-0.5.10.ebuild b/dev-python/knowit/knowit-0.5.10.ebuild
deleted file mode 100644
index 0a1f9d8b4703..000000000000
--- a/dev-python/knowit/knowit-0.5.10.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Know better your media files"
-HOMEPAGE="
- https://github.com/ratoaq2/knowit/
- https://pypi.org/project/knowit/
-"
-SRC_URI+="
- test? (
- https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip
- )
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-
-# https://github.com/ratoaq2/knowit/blob/d7135a4797440838bca94e76326fc9d4019d8f9a/README.md?plain=1#L224
-RDEPEND="
- >=dev-python/babelfish-0.6.1[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.5.2[${PYTHON_USEDEP}]
- >=dev-python/trakit-0.2.2[${PYTHON_USEDEP}]
- >=dev-python/pymediainfo-7.0.1[${PYTHON_USEDEP}]
- >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
- || (
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-BDEPEND="
- test? (
- app-arch/unzip
- >=dev-python/requests-2.32.4[${PYTHON_USEDEP}]
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-
-EPYTEST_PLUGINS=()
-distutils_enable_tests pytest
-
-src_unpack() {
- # Needed to unpack the test data
- default
-
- if [[ ${PV} == 9999 ]] ; then
- git-r3_src_unpack
- fi
-}
-
-src_prepare() {
- if use test ; then
- mkdir -p tests/data/videos || die
- ln -s "${WORKDIR}"/test*.mkv tests/data/videos/ || die
- fi
-
- distutils-r1_src_prepare
-
- # poetry, sigh
- sed -i -e 's:\^:>=:' pyproject.toml || die
-}
diff --git a/dev-python/knowit/knowit-0.5.6.ebuild b/dev-python/knowit/knowit-0.5.6.ebuild
deleted file mode 100644
index f5bc359b768a..000000000000
--- a/dev-python/knowit/knowit-0.5.6.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1
-
-DESCRIPTION="Know better your media files"
-HOMEPAGE="
- https://github.com/ratoaq2/knowit
- https://pypi.org/project/knowit/
-"
-# No tests in sdist
-SRC_URI="https://github.com/ratoaq2/knowit/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
-SRC_URI+=" test? ( https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip )"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~x86"
-
-# https://github.com/ratoaq2/knowit/blob/d7135a4797440838bca94e76326fc9d4019d8f9a/README.md?plain=1#L224
-RDEPEND="
- dev-python/babelfish[${PYTHON_USEDEP}]
- dev-python/enzyme[${PYTHON_USEDEP}]
- dev-python/trakit[${PYTHON_USEDEP}]
- dev-python/pymediainfo[${PYTHON_USEDEP}]
- dev-python/pyyaml[${PYTHON_USEDEP}]
- || (
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-BDEPEND="
- test? (
- app-arch/unzip
- dev-python/requests[${PYTHON_USEDEP}]
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.5.6-no-pint.patch
-)
-
-distutils_enable_tests pytest
-
-src_unpack() {
- # Needed to unpack the test data
- default
-
- if [[ ${PV} == 9999 ]] ; then
- git-r3_src_unpack
- fi
-}
-
-python_prepare_all() {
- if use test ; then
- mkdir -p tests/data/videos || die
- ln -s "${WORKDIR}"/test*.mkv tests/data/videos/ || die
- fi
-
- distutils-r1_python_prepare_all
-}
diff --git a/dev-python/knowit/knowit-0.5.8.ebuild b/dev-python/knowit/knowit-0.5.8.ebuild
deleted file mode 100644
index 0a1f9d8b4703..000000000000
--- a/dev-python/knowit/knowit-0.5.8.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..14} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Know better your media files"
-HOMEPAGE="
- https://github.com/ratoaq2/knowit/
- https://pypi.org/project/knowit/
-"
-SRC_URI+="
- test? (
- https://downloads.sourceforge.net/matroska/test_files/matroska_test_w1_1.zip
- )
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-
-# https://github.com/ratoaq2/knowit/blob/d7135a4797440838bca94e76326fc9d4019d8f9a/README.md?plain=1#L224
-RDEPEND="
- >=dev-python/babelfish-0.6.1[${PYTHON_USEDEP}]
- >=dev-python/enzyme-0.5.2[${PYTHON_USEDEP}]
- >=dev-python/trakit-0.2.2[${PYTHON_USEDEP}]
- >=dev-python/pymediainfo-7.0.1[${PYTHON_USEDEP}]
- >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
- || (
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-BDEPEND="
- test? (
- app-arch/unzip
- >=dev-python/requests-2.32.4[${PYTHON_USEDEP}]
- media-video/ffmpeg
- media-video/mediainfo
- media-video/mkvtoolnix
- )
-"
-
-EPYTEST_PLUGINS=()
-distutils_enable_tests pytest
-
-src_unpack() {
- # Needed to unpack the test data
- default
-
- if [[ ${PV} == 9999 ]] ; then
- git-r3_src_unpack
- fi
-}
-
-src_prepare() {
- if use test ; then
- mkdir -p tests/data/videos || die
- ln -s "${WORKDIR}"/test*.mkv tests/data/videos/ || die
- fi
-
- distutils-r1_src_prepare
-
- # poetry, sigh
- sed -i -e 's:\^:>=:' pyproject.toml || die
-}