commit:     b935d48f49f5704e9e7a6697cc48632e638658a1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 17 07:03:45 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 17 07:04:54 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b935d48f

dev-python/agate: Bump to 1.14.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/agate/Manifest                          |  2 +
 dev-python/agate/agate-1.14.1.ebuild               | 52 ++++++++++++++++++++++
 .../agate/files/agate-1.14.1-stray-files.patch     | 34 ++++++++++++++
 3 files changed, 88 insertions(+)

diff --git a/dev-python/agate/Manifest b/dev-python/agate/Manifest
index 522451dc09f1..73775e5381cf 100644
--- a/dev-python/agate/Manifest
+++ b/dev-python/agate/Manifest
@@ -1,2 +1,4 @@
 DIST agate-1.14.0.tar.gz 204175 BLAKE2B 
859997a6f4e325a4d6ea2c6127bf2d162622ce15d3c4a2239ac213cc0182d2a37722fc91e8f5242b62a0dd0f810364dc3ebdb38e58edfafa0380ee2579df055d
 SHA512 
c6668914bded602c4b689e44b05194db775cd6b0abff4688f9465207db8369d2f94e42d7a9330d61b76f0196d72838c4dedc3b80a882727ebb6220d0d9f0e164
 DIST agate-1.14.0.tar.gz.provenance 9151 BLAKE2B 
831ec89ffc6e991624207b06a63cfe9f6f9b00088f7050de50960fd58675052e201f903f5310022acb384af27aefbea59d0a12299787308bce8f28d24b2bc6a0
 SHA512 
a43af1b073fade52c44e1e8e19f1198e260670e174ad3cd4d8ee25ac68ccf41aa0d91431d0e35698811813ca7ff7a199a621bd5a9bdfc657a698d449c54217e3
+DIST agate-1.14.1.tar.gz 204140 BLAKE2B 
5bfbf63bed15845d3cb72e8f34545908391fd9a15edc94dc783ba52eb3c877cbde9057d8695cc3ca98790871180c7b44048903ae764004e8810aa6bd42d7ba12
 SHA512 
7eb046220fdba66db25f5d832f7dc0f5a2a72a561321f5137c09b8ba28c83df794bf4f62e5484246e56d1acf709563d9414af929a9feb8ea21e9353e7fcc5507
+DIST agate-1.14.1.tar.gz.provenance 9398 BLAKE2B 
cf62dc49957c0b77dc510419332e1d0fac8ea9dede570ebc0065591c29abf6d2382a0eb48be04bdba1fad9cf920a2de4cfeca6b2c5c163510b6dbead04c463aa
 SHA512 
f416dd6f9246f14b6fcc2ce31f978dc82eafcbb37e4812ab258dc1737374ebac3b886feefd52e0058872bf1b0ff91261dacd971c8cf4b2a594ae77f953c2ccc3

diff --git a/dev-python/agate/agate-1.14.1.ebuild 
b/dev-python/agate/agate-1.14.1.ebuild
new file mode 100644
index 000000000000..0da006b1a2b2
--- /dev/null
+++ b/dev-python/agate/agate-1.14.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2021-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/wireservice/agate
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A Python data analysis library that is optimized for humans 
instead of machines"
+HOMEPAGE="
+       https://github.com/wireservice/agate/
+       https://pypi.org/project/agate/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~arm64-macos ~x64-macos"
+
+RDEPEND="
+       >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}]
+       >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}]
+       >=dev-python/babel-2.0[${PYTHON_USEDEP}]
+       >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
+       >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}]
+       >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}]
+       >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               >=dev-python/cssselect-0.9.1[${PYTHON_USEDEP}]
+               dev-python/lxml[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+       dev-python/furo
+
+EPYTEST_DESELECT=(
+       # require specific locales
+       tests/test_data_types.py::TestDate::test_cast_format_locale
+       tests/test_data_types.py::TestDateTime::test_cast_format_locale
+)
+
+PATCHES=(
+       # https://github.com/wireservice/agate/pull/796
+       "${FILESDIR}/${P}-stray-files.patch"
+)

diff --git a/dev-python/agate/files/agate-1.14.1-stray-files.patch 
b/dev-python/agate/files/agate-1.14.1-stray-files.patch
new file mode 100644
index 000000000000..40fdaf4e8417
--- /dev/null
+++ b/dev-python/agate/files/agate-1.14.1-stray-files.patch
@@ -0,0 +1,34 @@
+From d45b6fbd0aa54f433b28119368c990b56d121cb6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]>
+Date: Sat, 17 Jan 2026 07:56:57 +0100
+Subject: [PATCH] build: Use automatic package discovery to fix stray files
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Switch to using the setuptools automatic package discovery [1] over the
+legacy `find_packages()` logic, in order to avoid installing stray files
+into `site-packages`.  This fixes a regression whereas `agate` started
+installing `docs` and `examples` as top-level Python packages.
+
+Alternative, this could be fixed via extending the `exclude` list to
+include all variations of `docs` and `examples`, but it seems
+unnecessary given that the automatic discovery logic already covers
+excluding these directories and raises an exception if more than one
+top-level package is included in the wheel, therefore reducing the risk
+of future regressions.
+
+[1] 
https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#automatic-discovery
+
+Signed-off-by: Michał Górny <[email protected]>
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -51,8 +51,5 @@ test = [
+     "pytest-cov",
+ ]
+ 
+-[tool.setuptools.packages.find]
+-exclude = ["benchmarks", "tests", "tests.*"]
+-
+ [tool.isort]
+ line_length = 119

Reply via email to