public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/codespell] f44: Update to 2.4.2 - Closes rhbz#2444866
@ 2026-06-22  8:48 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-06-22  8:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/codespell
Branch : f44
Commit : f4ad8a2bb5a260eac431128ed7df4495a63bd024
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date   : 2026-06-22T10:33:32+02:00
Stats  : +68/-2 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/codespell/c/f4ad8a2bb5a260eac431128ed7df4495a63bd024?branch=f44

Log:
Update to 2.4.2 - Closes rhbz#2444866

---
diff --git a/.gitignore b/.gitignore
index 36517a5..127c003 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
 /codespell-2.3.0.tar.gz
 /codespell-2.4.0.tar.gz
 /codespell-2.4.1.tar.gz
+/codespell-2.4.2.tar.gz

diff --git a/aca223e2ec3ddc25f52089653c8f9ef8bfda0d9b.patch b/aca223e2ec3ddc25f52089653c8f9ef8bfda0d9b.patch
new file mode 100644
index 0000000..6ef8f73
--- /dev/null
+++ b/aca223e2ec3ddc25f52089653c8f9ef8bfda0d9b.patch
@@ -0,0 +1,63 @@
+From aca223e2ec3ddc25f52089653c8f9ef8bfda0d9b Mon Sep 17 00:00:00 2001
+From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+Date: Sun, 12 Apr 2026 18:41:00 +0200
+Subject: [PATCH] fix(packaging): prevent unwanted files and tests from being
+ installed
+
+Refine package discovery and manifest exclusions to clean up both
+wheels and source distributions (sdists):
+
+- Dev-only paths like `tools/` and `example/` are not installed in
+wheels.
+- The `codespell_lib.tests` subpackage is excluded from the wheel.
+- Only files explicitly listed in `package-data` are bundled in wheels.
+- Dev metadata (.github, .devcontainer, .gitignore, .mailmap) is pruned
+from sdists.
+
+Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
+---
+ MANIFEST.in    | 10 +++++++---
+ pyproject.toml |  7 +++++++
+ 2 files changed, 14 insertions(+), 3 deletions(-)
+
+diff --git a/MANIFEST.in b/MANIFEST.in
+index 36e8cf9628..90c44a95a9 100644
+--- a/MANIFEST.in
++++ b/MANIFEST.in
+@@ -1,7 +1,11 @@
+-exclude *.yml *.yaml
++exclude *.yml
+ exclude .coveragerc
+ exclude .git-blame-ignore-revs
+-exclude example example/* snap snap/*
+-exclude Makefile
++prune example
++prune snap
++prune .devcontainer
++prune .github
++exclude .gitignore
++exclude .mailmap
+ exclude codespell.1.include
+ exclude pyproject-codespell.precommit-toml
+diff --git a/pyproject.toml b/pyproject.toml
+index 58bc385343..efc9eaf104 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -70,10 +70,17 @@ requires = ["setuptools>=77", "setuptools_scm[toml]>=6.2, != 8.0.0"]
+ [tool.setuptools_scm]
+ write_to = "codespell_lib/_version.py"
+ 
++[tool.setuptools]
++include-package-data = false
++
+ [tool.setuptools.packages.find]
++include = ["codespell_lib", "codespell_lib.*"]
+ exclude = [
+     "dist",
+     "snap",
++    "tools",
++    "example",
++    "codespell_lib.tests*",
+ ]
+ 
+ [tool.setuptools.package-data]

diff --git a/codespell.spec b/codespell.spec
index c3e1180..fcbc9da 100644
--- a/codespell.spec
+++ b/codespell.spec
@@ -1,11 +1,13 @@
 Name:           codespell
-Version:        2.4.1
+Version:        2.4.2
 Release:        %autorelease
 Summary:        Fix common misspellings in text files
 
 License:        GPL-2.0-only AND CC-BY-SA-3.0
 URL:            https://github.com/codespell-project/codespell/
 Source0:        %{pypi_source}
+# https://github.com/codespell-project/codespell/pull/3911
+Patch:          aca223e2ec3ddc25f52089653c8f9ef8bfda0d9b.patch
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

diff --git a/sources b/sources
index 008d003..dd207f0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (codespell-2.4.1.tar.gz) = 744543ee9565130248928390404076ae43f89425a61461809e5fa157ab16cbe2ae361a53f6997e48e93dce8b46ee5f3a8a63bcbc8f62c7efffb3fec3e01ded6b
+SHA512 (codespell-2.4.2.tar.gz) = ff67f3b0e6630cb95bd804fd9b0732add500a06c6fd4d50a796b9b5f944b3ea6fc3b8408c7cbc8cf4ff4d7673c023b9346fdbfd0fe3c193b64e7b94637019706

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-22  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22  8:48 [rpms/codespell] f44: Update to 2.4.2 - Closes rhbz#2444866 Mikel Olasagasti Uranga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox