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

Fix #1149 Correctly expand ~ in virtualenvs path #1158

Closed
wants to merge 1 commit into from

Conversation

valignatev
Copy link
Contributor

@valignatev valignatev commented Jun 9, 2019

Fixes: #1149

I decided to extract virtualenvs path handling into the separate function so it could be easily tested.

I've tried more of an integrated approach locally, i.e., I've mocked Env.build_venv to ensure it's called with the absolute path in case of ~/ settings, but it looked clumsy and didn't give an opportunity to cover more cases.

I hope it'll help.

@valignatev valignatev changed the title (#1149) Correctly expand ~ in virtualenvs path FIX #1149 Correctly expand ~ in virtualenvs path Jul 6, 2019
@valignatev valignatev changed the title FIX #1149 Correctly expand ~ in virtualenvs path Fix #1149 Correctly expand ~ in virtualenvs path Jul 6, 2019
Fix the bug reported in python-poetry#1149
Cover virtualenvs.path setting resolving with basic tests
@valignatev
Copy link
Contributor Author

Fixed merge conflicts in test_env.py

@brycedrennan brycedrennan added the kind/bug Something isn't working as expected label Aug 16, 2019
@brycedrennan brycedrennan added kind/feature Feature requests/implementations and removed kind/bug Something isn't working as expected labels Sep 2, 2019
@brycedrennan
Copy link
Contributor

brycedrennan commented Sep 2, 2019

@sdispater for your consideration. I'm not sure whether this fits "bug" or "feature" better.

@valignatev
Copy link
Contributor Author

I personally don't think that it's a feature, but if you think it is - should I retarget my PR against develop branch then?

@brycedrennan
Copy link
Contributor

If this had ever worked before, or was documented to behave this way it would be clearly a bug. But I don't see that anywhere.

@valignatev
Copy link
Contributor Author

In this sense, I agree. I don't think that the current behavior is expected by most of the users though.
Anyway, I'll do as you decide :)

@stale
Copy link

stale bot commented Nov 13, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 13, 2019
@valignatev
Copy link
Contributor Author

Do you still interested in this PR? If so, I can fix the conflicts.

@brycedrennan
Copy link
Contributor

I've removed the bot label but inclusion is for @sdispater to decide

@finswimmer
Copy link
Member

Hey @valignatev,

do you think you can make your changes work with the current changes in the branch?

Thanks a lot for your contribution! 👍

fin swimmer

@finswimmer finswimmer requested a review from a team December 25, 2020 08:23
@valignatev
Copy link
Contributor Author

Sure, will do

@Secrus
Copy link
Member

Secrus commented May 21, 2022

Hi, are you still interested in bringing this to Poetry?

@Secrus Secrus added the status/waiting-on-response Waiting on response from author label May 21, 2022
@valignatev
Copy link
Contributor Author

valignatev commented May 22, 2022

It's been 700 years, and I'm not really writing that much python these days let alone using poetry :)

But you (or anybody else) can of course feel free to use anything form this PR for any purpose

@Secrus
Copy link
Member

Secrus commented May 22, 2022

It's been 700 years, and I'm not really writing that much python these days let alone using poetry :)

But you (or anybody else) can of course feel free to use anything form this PR for any purpose

This is understandable. Thank you for your contribution anyway. I will probably use some of your code to recreate this in new PR :D

@Secrus Secrus closed this May 22, 2022
@Secrus Secrus removed the status/waiting-on-response Waiting on response from author label May 22, 2022
Copy link

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.

@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
kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Home directory based virtualenvs path (~/directory/path) creates a ~ directory in the project root
4 participants