-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/cliRelated to the command lineRelated to the command linearea/uxFeatures and improvements related to the user experienceFeatures and improvements related to the user experiencekind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: Pop OS 21.04
- Poetry version: 1.1.12
- Link of a Gist with the contents of your pyproject.toml file:
Issue
In the package selection part of the poetry init wizard, package selection only works reliably if you use a fully lowercase search string. If you capitalize the search string, a package matching that string will not show up in the results.
Say I want to add Flask as a dependency. The package name on this project is capitalized on PyPI. If I search for flask, the package will show up in the results. If I search for Flask, it will not.
$ poetry init -vvv
This command will guide you through creating your pyproject.toml config.
Package name [notes]:
Version [0.1.0]:
Description []:
Author [<censored>, n to skip]:
License []:
Compatible Python versions [^3.9]:
Would you like to define your main dependencies interactively? (yes/no) [yes]
You can specify a package in the following forms:
- A single name (requests)
- A name and a constraint (requests@^2.23.0)
- A git url (git+https://github.com/python-poetry/poetry.git)
- A git url with a revision (git+https://github.com/python-poetry/poetry.git#develop)
- A file path (../my-package/my-package.whl)
- A directory (../my-package/)
- A url (https://example.com/packages/my-package-0.1.0.tar.gz)
Search for package to add (or leave blank to continue): Flask
Found 20 packages matching Flask
Enter package # to add, or the complete package name if it is not listed:
[0] Flask-Zipper
[1] Flask-DB
[2] flask-beans
[3] Flask-Sessions
[4] Flask-SimpleACL
[5] flask-blacklist
[6] Flask-Shelve
[7] flask_wifiqr
[8] Flask-Account
[9] Flask-OpenID
>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/cliRelated to the command lineRelated to the command linearea/uxFeatures and improvements related to the user experienceFeatures and improvements related to the user experiencekind/bugSomething isn't working as expectedSomething isn't working as expected