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

Respect develop when installing from git #1986

Closed
wants to merge 1 commit into from

Conversation

fantix
Copy link

@fantix fantix commented Feb 6, 2020

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

@lambdalisue
Copy link

So why this PR has not been reviewed or merged for a month? I've been facing an issue which is not resolved without this PR so if any help is required, I'm really welcome to do.

Copy link
Member

@sdispater sdispater left a comment

Choose a reason for hiding this comment

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

Could you rebase your branch on develop?

I addressed some points that need changing but overall it looks good.

Also, some of the changes of you PR have been ported over to python-poetry/poetry-core#23 since some of the files modified by your PR have been moved to poetry-core.

@@ -169,6 +169,7 @@ def search_for_vcs(self, dependency): # type: (VCSDependency) -> List[Package]
dependency.source,
dependency.reference,
name=dependency.name,
develop=dependency.develop,
Copy link
Member

Choose a reason for hiding this comment

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

This is not the right place to put this, get_package_from_vcs should not have any notion of develop.

So, similarly to what is done in search_for_directory, we can do:

package.develop = dependency.develop

Comment on lines +186 to +187
cls, vcs, url, reference=None, name=None, develop=True,
): # type: (str, str, Optional[str], Optional[str], Optional[bool]) -> Package
Copy link
Member

Choose a reason for hiding this comment

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

See my comment above.

@@ -206,6 +207,7 @@ def get_package_from_vcs(
package.source_type = "git"
package.source_url = url
package.source_reference = revision
package.develop = develop
Copy link
Member

Choose a reason for hiding this comment

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

See my comment above.

@neersighted
Copy link
Member

Closing this as this is long stale and the issue has been solved in master/Poetry 1.2 beta for a long time. Please open a new issue/PR if you still observe broken behavior.

@neersighted neersighted closed this Jun 4, 2022
@tomoyaY
Copy link

tomoyaY commented Sep 22, 2022

@neersighted which commits the issue was addressed?

@neersighted
Copy link
Member

neersighted commented Sep 22, 2022

f0855d9 and python-poetry/poetry-core@fc4ae2d

If you are having trouble with this functionality, please open a new Discussion or join Discord. If you think you are experiencing a bug with it, please open an issue with steps for reproduction/your project files.

@tomoyaY
Copy link

tomoyaY commented Sep 22, 2022

Thank you for your quick reply!!

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.

Poetry does not respect the develop = false option when installing from git/http
6 participants