Skip to content

Tq remove dist info - #30503

Open
jan-kardell wants to merge 2 commits into
openwrt:masterfrom
jan-kardell:TQ_remove_dist-info
Open

Tq remove dist info#30503
jan-kardell wants to merge 2 commits into
openwrt:masterfrom
jan-kardell:TQ_remove_dist-info

Conversation

@jan-kardell

Copy link
Copy Markdown

📦 Package Details

Maintainer: @commodo

Description:
By default remove the .dist-info files


🧪 Run Testing Details

  • OpenWrt Version: 25.12.5
  • OpenWrt Target/Subtarget: omap
  • OpenWrt Device: custom

✅ Formalities

  • [ x] I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@openwrt

openwrt Bot commented Sep 11, 2026

Copy link
Copy Markdown

Formality Check: Failed

We checked this pull request against the contribution guidelines. Here is what needs your attention:

🛑 CRITICAL ERRORS

Commit fe1fea4 - python: add optional remove operator to filespec install script:

  • Commit author email 'jan.kardell@telliq.com' is not linked to any registered GitHub account. Please add and verify this email in your GitHub profile settings.
  • No Signed-off-by matches commit author (Jan Kardell <jan.kardell@telliq.com>). Please add a 'Signed-off-by: Jan Kardell jan.kardell@telliq.com' line that matches this name and email exactly.

Commit 0faafd4 - python: remove the .dist-info files by default:

  • Commit author email 'jan.kardell@telliq.com' is not linked to any registered GitHub account. Please add and verify this email in your GitHub profile settings.
  • No Signed-off-by matches commit author (Jan Kardell <jan.kardell@telliq.com>). Please add a 'Signed-off-by: Jan Kardell jan.kardell@telliq.com' line that matches this name and email exactly.

Tip

Do not close this pull request to make corrections. Instead, modify your existing commits (e.g. git commit --amend) and update the branch using git push --force-with-lease --force-if-includes. The checks will re-run automatically.


Something broken? Consider reporting an issue.
Running version 059e3de deployed on 2026-09-09 11:53:18 CEST

@jan-kardell

Copy link
Copy Markdown
Author

Not sure whether this actually breaks some OSS license? I'm not a lawyer... It does saves a small amount of space on our devices, which for us is crucial.

Jan Kardell added 2 commits September 11, 2026 11:26
Add -? operator to filespec, to delete a file if present, and do not
fail if not present.

Rationale: sometimes it's hard to know if the file really exists, e.g.
when writing a default filespec.

Signed-off-by: Jan Kardell <jan.kardell@kramnet.se>
The .dist-info files are not actually used, and take up some unnecessary
space on space constricted devices.

Signed-off-by: Jan Kardell <jan.kardell@kramnet.se>
@jan-kardell

Copy link
Copy Markdown
Author

Since I'm retiring, I have hanged my e-mail from jan.kardell@telliq.com to jan.kardell@kramnet.se. Github still picks up the old address somewhere and complains about the signed-off.

@BKPepe
BKPepe requested a review from commodo September 11, 2026 13:30

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 commits.


Generated by Claude Code


define Py3Package/filespec/Default
+|$(PYTHON3_PKG_DIR)
-?|$(PYTHON3_PKG_DIR)/*.dist-info

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.dist-info is what importlib.metadata reads, so this is not dead weight: five in-tree runtime tests query it, e.g. lang/python/python-pytest/test.sh:8 (also python-pyopenssl, python-flask-socketio, django-restframework, utils/mpremote), and they will now fail with PackageNotFoundError — none of those packages override the default filespec. Entry-point discovery (importlib.metadata.entry_points(), used by pytest plugins and similar) breaks the same way, and a package cannot opt back in without replacing the whole default filespec. Please make this opt-in (a PYTHON3_PKG_* switch a package sets) rather than the default.


Generated by Claude Code

rm -fR -- "$dest"/$path
;;

-\?)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the filespec operators are documented in lang/python/README.md:300-309 — the format line still reads <one of: +-=> and there is a bullet per operator. Add -? there in the same commit.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants