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

Can't install Dependencies with extras that contain - #7287

Closed
1 task
ilkersigirci opened this issue Jan 3, 2023 · 3 comments
Closed
1 task

Can't install Dependencies with extras that contain - #7287

ilkersigirci opened this issue Jan 3, 2023 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@ilkersigirci
Copy link

  • Poetry version: Poetry (version 1.3.1)
  • Python version: 3.8.15
  • OS version and name: Ubuntu 22.04
  • pyproject.toml: pyproject.toml link
  • pip version: 22.3.1
  • [ x ] I am on the latest stable Poetry version, installed using a recommended method.
  • [ x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ x ] I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

BUG

If a dependency contains - in its extras field, they can't be installed if the package is built with poetry build and then pip install <package>. It gives a warning and doesn't install those extra packages

Steps

  • I have added my dependency to pyproject.toml with poetry add sktime[all_extras,dl]==0.15.0
    which added to toml as: sktime = {version = "0.15.0", extras = ["all-extras", "dl"]}
  • I have built the project with poetry build
  • I have installed the built package with pip install <my_built_package.tar.gz>
  • Here I got the error that says:
    WARNING: sktime 0.15.0 does not provide the extra 'all-extras'
  • And those extra packages didn't installed at the end.

Notes

  • I can successfully install pip install sktime[all_extras, dl]
  • In the built package, PKG-INFO has the following content:
    • Requires-Dist: sktime[all-extras,dl] (==0.15.0)
    • I have changed it to Requires-Dist: sktime[all_extras,dl] (==0.15.0). But it gave the same warning again.
@ilkersigirci ilkersigirci added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 3, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Jan 3, 2023

#6819

@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 3, 2023
@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@ilkersigirci
Copy link
Author

#6819

Sorry to the duplication, I have searched possible issues but didn't see that.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants