public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-setuptools] rawhide: Update rpmlintrc
@ 2026-09-30 14:55 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-30 14:55 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-setuptools
            Branch : rawhide
            Commit : 27beb6f8f4c934fee89fa37e02a638c76a05eeaf
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-09-08T14:07:44+02:00
            Stats  : +6/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-setuptools/c/27beb6f8f4c934fee89fa37e02a638c76a05eeaf?branch=rawhide

            Log:
            Update rpmlintrc

This should avoid:

    python3-setuptools.noarch: E: zero-length /usr/lib/python3.15/site-packages/setuptools/_vendor/.lock
    python3-setuptools.noarch: E: unused-rpmlintrc-filter "W: files-duplicate .+__init__\.py "
    python3-setuptools.noarch: E: unused-rpmlintrc-filter "W: files-duplicate .+/(setuptools/_vendor/.+ .+/pkg_resources|pkg_resources/_vendor/.+ .+/setuptools)/_vendor/"
    python3-setuptools.noarch: E: unused-rpmlintrc-filter "E: files-duplicated-waste"
    python-setuptools.src: E: spelling-error ('distutils', '%description -l en_US distutils -> distillates')
    python-setuptools-wheel.noarch: E: spelling-error ('venv', '%description -l en_US venv -> vent, vend, even')
    python3-setuptools.noarch: W: hidden-file-or-dir /usr/lib/python3.15/site-packages/setuptools/_vendor/.lock

Not sure what the purpose of setuptools/_vendor/.lock is, so I asked upstream.

[skip changelog]

Assisted-By: Claude Sonnet 5

---
diff --git a/python-setuptools.rpmlintrc b/python-setuptools.rpmlintrc
index 0b224f8..34f2214 100644
--- a/python-setuptools.rpmlintrc
+++ b/python-setuptools.rpmlintrc
@@ -1,14 +1,8 @@
-# let's not report duplicate __init__s
-addFilter(r'W: files-duplicate .+__init__\.py ')
-
-# setuptools and pkg_resources have duplicated vendored libraries
-# we might want to de-duplicate this somehow in the future, but not yet
-# regex a bit complex to allow arbitrary order
-addFilter(r'W: files-duplicate .+/(setuptools/_vendor/.+ .+/pkg_resources|pkg_resources/_vendor/.+ .+/setuptools)/_vendor/')
-
-# When duplicate files are found, this errors is produced
-# as long as we filter out the warnings, we need to filter the error as well
-addFilter(r'E: files-duplicated-waste')
-
 # no %doc in the wheel packages
 addFilter(r'python-setuptools-wheel.noarch: (E|W): no-documentation')
+
+# https://github.com/pypa/setuptools/discussions/5326
+addFilter(r'[EW]: (zero-length|hidden-file-or-dir) /usr/lib/python3\.\d+/site-packages/setuptools/_vendor/\.lock')
+
+# terms, not spelling errors
+addFilter(r"[EW]: spelling-error .+'(distutils|venv)'")

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

only message in thread, other threads:[~2026-09-30 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 14:55 [rpms/python-setuptools] rawhide: Update rpmlintrc 

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