Skip to content

[FR] Add pkg_resources metadata #3037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
kloczek opened this issue Jan 20, 2022 · 4 comments
Closed
1 task done

[FR] Add pkg_resources metadata #3037

kloczek opened this issue Jan 20, 2022 · 4 comments

Comments

@kloczek
Copy link

kloczek commented Jan 20, 2022

What's the problem this feature will solve?

I think that it would be good to add build and install pkg_resources module metadata.

Describe the solution you'd like

With separated pkg_resources it would possible to add pkg_resources to build, runtime or test suite dependencies which could improve visibility what needs that module.

Alternative Solutions

Alternativelely pkg_resources could be moved to sseparated source tree and maintained as separated module.

Additional context

No response

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@kloczek kloczek added enhancement Needs Triage Issues that need to be evaluated for severity and status. labels Jan 20, 2022
@abravalheri
Copy link
Contributor

Hi @kloczek, thank you for opening this issue.

Is this FR related to #863 ?

If it is not related, what would be your request exactly? (I am afraid I don't understand what adding pkg_resources metadata means...)

@kloczek
Copy link
Author

kloczek commented Jan 22, 2022

Yes. Simple I found type A has build or run time/install time dependency on setuptools when in reality it needs is needed pkg_resources.
At the moment pkg_resources is installed with own metadata

[tkloczko@ss-desktop SPECS]$ rpm -ql python-setuptools |grep dist-info$
/usr/lib/python3.8/site-packages/setuptools-60.5.4.post20220117.dist-info

Those metadata provides module name which can be used in metadata of other modiles Requires fileds. If pkg_resources would be installed with its separated .dist-info metadata that visibility would be better.

@abravalheri
Copy link
Contributor

abravalheri commented Jan 22, 2022

Thanks for the clarification @kloczek.

Creating a separated .dist-info directory for pkg_resources require distributing it as its own separated distribution archive (i.e. package file uploaded to PyPI), which is the request in #863. So I think we can consider this issue a duplicate.

Meanwhile if you are a maintainer of this package, please consider migrating over importlib.metadata (or the backport importlib_metadata).

@abravalheri abravalheri added duplicate and removed enhancement Needs Triage Issues that need to be evaluated for severity and status. labels Jan 22, 2022
@kloczek
Copy link
Author

kloczek commented Jan 22, 2022

OK I understand.
Thank you.

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

No branches or pull requests

2 participants