Skip to content
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

[6.5.x] Packages containing dots are renamed to use dashes #1599

Closed
Jorricks opened this issue Mar 11, 2022 · 2 comments
Closed

[6.5.x] Packages containing dots are renamed to use dashes #1599

Jorricks opened this issue Mar 11, 2022 · 2 comments

Comments

@Jorricks
Copy link

Jorricks commented Mar 11, 2022

Environment Versions

  1. OS Type: MacOs
  2. Python version: Python 3.8.11
  3. pip version: pip 22.0.3
  4. pip-tools version: pip-compile, version 6.5.1

Steps to replicate

  1. Create a file requirements file containing zope.event
  2. pip-compile
  3. Output contains zope-event

Expected result

The compiled file should contain zope.event as zope-event does not exist.

Actual result

It contains zope.event

Why is this an issue?

When you have a setup.py pointing to your compiled requirements file, you can not use console_scripts anymore.
Because when you try to run my entry_point console_scripts, you will get an error similar to:

pkg_resources.DistributionNotFound: The 'zope-event==4.5.0' distribution was not found and is required by my_package
@Jorricks Jorricks changed the title [6.5.0] Packages containing dots are renamed to use dashes [6.5.x] Packages containing dots are renamed to use dashes Mar 11, 2022
@AndydeCleyre
Copy link
Contributor

I'd like to close this in favor of centralizing this discussion at #1576

See also: pypa/setuptools#3157

@Jorricks
Copy link
Author

I completely missed that one. Thank you

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

No branches or pull requests

2 participants