plone / plone/meta

Script: remove `pkg_resources` namespace declarations

Open
#183 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

04 type: enhancement 12 prio: high 43 lvl: complex
Dominant language
Python
Stars
6
Forks
7
Avg merge
2d 19h
Merged PRs (30d)
5

Description

At some point, Plone 7(?), we should remove the already deprecated pkg_resources on __init__.py files to switch to native namespaces:

https://packaging.python.org/en/latest/guides/packaging-namespace-packages#native-namespace-packages

As that's meant to be a coordinated effort that has to happen on a 0-day, having a script to try apply that to the plone namespace would be critical.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue description and the linked Python Packaging User Guide section on native namespace packages. Inspect how pkg_resources declarations appear in plone namespace init.py files and determine the repositories the script must cover. Done means a script can consistently identify and remove those declarations for the coordinated change; no specific test file is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.