-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
add develop
option for git dependencies
#1816
Comments
It would be helpful as i plan to use contents of virtualenv's site-packages folder to vendor dependendencies. Also it look like |
so |
Isn't poetry virtual environments ephemeric? If so I don't mind it should be called "develop", it look like internal optimization and development mode should not be enabled when installing from commit/tag at all. Tags would change but it is publisher's responsibility. |
My further meditation lead me to that git branch dependency is something would harm, environment will not be reproducible if branch tip changes. |
I also hit this issue in the sense that git dependencies do not trigger any of their build processes. Moreover, it seems that they are cloned without the |
I ran into this problem because our current pipeline first creates the |
Apparently this was fixed already in python-poetry/poetry-core#23 and released in an earlier 1.0.0 alpha, but it doesn't seem to work in release
Can this feature get a rollout for a |
@dazza-codes that's what I think, too. the poetry-core already fixed it. However, when would it be merged with poetry? I think this is a quite big issue for some people like me who uses private git repo as a private python package registry. |
Is there any update to this? The pyproject.toml of poetry implies that poetry is currently using poetry-core 1.0.0a9 which should have this feature but it still is not working as of 1.0.10. Is there something missing that needs to be done for this feature to become available? Im willing to make PR if required. |
@ahobsonsayers |
@abn Thanks for pointing this out, I updated poetry to the latest preview version and the develop flag now works perfectly 😁 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
It would be nice to add
develop
option for git dependencies.So it would work in the similar way as path dependencies.
Rationale
Currently there's no way to specify that git dependencies should be installed in non-editable mode (
develop=false
). So all git dependencies are installed in develop / editable (pip -e ...
) mode.Now imagine a situation that you are e.g. installing the dependency from your private repository using a tag (always points to the same commit). In this case you don't want that dependency to be installed in develop mode (the source directory is not going to change). You want to use
install
instead ofdevelop
.The text was updated successfully, but these errors were encountered: