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 — Improve environment management by sdispater · Pull Request #1477 · python-poetry/poetry

Conversation

@sdispater

@sdispater sdispater commented Oct 17, 2019

Copy link
Copy Markdown
Member

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

This PR should fix or at least alleviate issues that users face when trying to setup a project with a python requirement that is not compatible with the currently used Python version (see #536).

The environment manager will now try to find a compatible Python version in the current path and use/activate it accordingly. Note that it will still fail if none can be found but with, hopefully, a better error message with some pointers as to how the user can solve the problem.

Sorry, something went wrong.

Uh oh!

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

All reactions
@sdispater
Refactor the environment management code
e62f5a1
@sdispater sdispater added area/cli Related to the command line kind/feature Feature requests/implementations labels Oct 17, 2019
@sdispater sdispater added this to the 1.0 milestone Oct 17, 2019
@sdispater
Improve executable selection when current Python is incompatible
0f9eaed
@sdispater
sdispater force-pushed the improve-env-management branch from c5b5279 to 0f9eaed Compare October 17, 2019 21:34
@pspeter

pspeter commented Oct 18, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

This seems to fix #1417 + #1425 and makes #1469 obsolete.

All reactions

Sorry, something went wrong.

Uh oh!

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

@sdispater
sdispater merged commit 7f5acc3 into master Oct 18, 2019
@sdispater
sdispater deleted the improve-env-management branch October 18, 2019 08:41
This was referenced Oct 18, 2019
Fix #1417 - poetry env commands are not using correct package name #1469
Closed
Various issues when package name differs from directory name. #1417
Closed
poetry env use and poetry env remove are based on the directory name instead of tool.poetry.name #1425
Closed
@thomasmansencal

thomasmansencal commented Oct 18, 2019

Copy link
Copy Markdown

That's great thanks @sdispater !

All reactions

Sorry, something went wrong.

Uh oh!

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

michielboekhoff pushed a commit to michielboekhoff/poetry that referenced this pull request Oct 29, 2019
@sdispater @michielboekhoff
Improve environment management (python-poetry#1477)
2715663
* Refactor the environment management code

* Improve executable selection when current Python is incompatible
michielboekhoff pushed a commit to michielboekhoff/poetry that referenced this pull request Oct 29, 2019
@sdispater @michielboekhoff
Improve environment management (python-poetry#1477)
0d69dce
* Refactor the environment management code

* Improve executable selection when current Python is incompatible
This was referenced Oct 31, 2019
No method to control the python version used #522
Closed
Poetry 0.12.3 uses Python 2.7.10 despite specifying 3.7.0 #536
Closed
Congee
Congee reviewed Nov 1, 2019
View reviewed changes
Comment thread poetry/utils/env.py
)
)

for python_to_try in reversed(

@Congee Congee Nov 1, 2019

Copy link
Copy Markdown

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.

why not sorted(arg, arg, reverse=True)

Sorry, something went wrong.

Uh oh!

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

All reactions
@sdispater sdispater mentioned this pull request Nov 1, 2019
Poetry using the wrong Python version (not related to pyenv) #655
Closed
2 tasks done
@sdispater sdispater mentioned this pull request Nov 17, 2019
Use non-default python when creating virtualenv #988
Closed
2 tasks done
@matthijskooijman matthijskooijman mentioned this pull request Nov 17, 2019
Create an implicit virtual environment based on pyproject.toml and following PEP 394 #1386
Closed
@geryogam geryogam mentioned this pull request Nov 17, 2019
Include installation instructions for python3 #721
Closed
1 task done
@StephenBrown2 StephenBrown2 mentioned this pull request Jan 10, 2020
Poetry env using different python than specified? #1869
Closed
3 tasks done
@rarkins rarkins mentioned this pull request Mar 31, 2020
Publish images for different builds of python renovatebot/docker-poetry#6
Closed
@HassanAbouelela HassanAbouelela mentioned this pull request Apr 11, 2021
Pipenv to poetry python-discord/sir-lancebot#623
Merged
@joooeey joooeey mentioned this pull request May 25, 2021
Poetry uses wrong Python version #4101
Closed
3 tasks done
@github-actions

github-actions Bot commented Mar 1, 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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@Congee Congee Congee left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

area/cli Related to the command line kind/feature Feature requests/implementations

Projects

None yet

Milestone

1.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

4 participants

@sdispater @pspeter @thomasmansencal @Congee
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.