GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added canonicalize_name() to console/commands/init.py by evanrittenhouse · Pull Request #5076 · python-poetry/poetry

Conversation

@evanrittenhouse

@evanrittenhouse evanrittenhouse commented Jan 20, 2022 •
edited by finswimmer
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Pull Request Check List

Resolves: #5035
Resolves: #5033

  • Added tests for changed code - didn't add tests, but new code passes all existing tests.
  • Updated documentation for changed code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
finswimmer
finswimmer requested changes Jan 21, 2022
View reviewed changes

@finswimmer finswimmer left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot. Looks good to me 👍

As discussed here my suggestion for a test:

You can take the test_interactive_with_dependencies as an example and play around with adding packages to the repo, give different spelling (upper/lower cases) of the package you search and always expect to find it in the first position.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
neersighted
neersighted previously requested changes Jan 21, 2022
View reviewed changes
Comment thread src/poetry/console/commands/init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

finswimmer
finswimmer requested changes Jan 24, 2022
View reviewed changes
Comment thread src/poetry/console/commands/init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/console/commands/test_init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/utils/test_helpers.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

finswimmer
finswimmer reviewed Jan 25, 2022
View reviewed changes
Comment thread src/poetry/console/commands/init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

finswimmer
finswimmer reviewed Jan 28, 2022
View reviewed changes
Comment thread src/poetry/console/commands/init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

finswimmer
finswimmer reviewed Jan 29, 2022
View reviewed changes
Comment thread src/poetry/console/commands/init.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Evan Rittenhouse added 9 commits January 29, 2022 12:40
Evan Rittenhouse
Added canonicalize_name() to console/commands/init.py
fe6ffe6
Evan Rittenhouse
Removed unnecessary helper function calls
773b4ec
Evan Rittenhouse
Fixed capitalized package bug on poetry init
d3ffb97
Used canonicalize_name to standardize the names of all packages in
poetry init with interactive dependencies. Given its importance, added a
test_canoncalize_name() test to tests/utils/test_helpers.py
Evan Rittenhouse
Split out _get_choice_list to a separate function
9a194d9
For testing purposes
Evan Rittenhouse
Tests working with canonicalized_name assigned outside of _generate_c…
6b2b88c
…hoice_list()
Evan Rittenhouse
Changed test_generate_choice_list
a5ada29
Parameterized a _generate_choice_list_packages fixture in order to call
the test with both > 10 and < 10 cases, verifying that output is <= 10
and the package_name has the desired package first in choices
Evan Rittenhouse
Added output message if choice_list is truncated
814aede
Also added cases for truncation and non-truncation in
test_generate_choice_list to ensure the message is printed in only the
correct cases
Evan Rittenhouse
Removed info_string calls
88f3cc4
Moved info_string generation logic out of init._generate_choice_list
Evan Rittenhouse
Removed type hint for info_string
82d4b11
finswimmer
finswimmer approved these changes Jan 29, 2022
View reviewed changes

@finswimmer finswimmer left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution. Looks good to me 👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@finswimmer
finswimmer dismissed neersighted’s stale review January 29, 2022 19:51

is implemented

@finswimmer
finswimmer merged commit a17f1ba into python-poetry:master Jan 29, 2022
@finswimmer finswimmer mentioned this pull request Mar 6, 2022
Release 1.2.0b1 #5280
Merged
@mkniewallner mkniewallner mentioned this pull request May 28, 2022
poetry init - doesn't find or install a given dependency, even with the exact name #3434
Closed
3 tasks done
@github-actions

github-actions Bot commented Feb 29, 2024

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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.

Reviewers

@finswimmer finswimmer finswimmer approved these changes
@neersighted neersighted neersighted left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

poetry init does not find the package if the search string is capitalized poetry init finds 20 packages but only shows 10

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@evanrittenhouse @neersighted @finswimmer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.