-
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
Dependency issue when poetry used in private dependency, 'install_requires' must be a string or list of strings #1101
Comments
I wondered if there was an issue with using a commit as a reference with GIT so switched to a TAG and no luck there either
still showing empty hash in poetry lock
|
I have the exact same issue. I managed to open the setup.py that's created by the poetry install command. package_data = \
{'': ['*']}
install_requires = \
['jsons>=0.8.9,<0.9.0',
'repo @ ' # <- This line is missing a comma
'git+git@github.com:user/repo.git@master']
setup_kwargs = {
'name': 'test-package', Seems like there is a bug in whatever script is generating this file |
This is a blocking issue if you're using dependencies from github repositories. Can't upgrade past On my laptop had to |
I was able to solve this issue for myself with help from #835 . Instead of |
Thanks @Heliozoa your solution worked for me, weirdly I was not seeing this issue even with a git dependency without the ssh:// format, renamed my project/module and started to see it it locally but at the same time my CI build which is also running poetry 0.12.17 was not having any issue 🤷♂️ |
This issue 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. |
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one. |
I can confirm that the problem still persists with version 1.0.0 and the solution of @Heliozoa is still a valid workaround (thanks!). Maybe a hint in the documentation is the quickest approach to prevent users to run into this problem (as |
This should be specified in the documentation! Thanks @Heliozoa |
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. |
-vvv
option).Issue
Poetry error when private dependency (gist here https://gist.github.com/vancouverwill/490daeb4c7acec58af00396ae0f13702) . I have spent the last few hours reading poetry and pip issues but can't find the same bug.
Steps Attempted to solve it
[build-system]
section ofpyproject.toml
Feels like it could be similar to #997, #1049 or #826 but the error messages presented there are quite different with no refernce to the error message I am seeing
Invalid url given
UPDATE:
I have confirmed that if I remove the dependency from git section of project file and project lock that the error does not come up and also tried in CI cloning the git package to verify not permissions issue
Relevant section of
pyproject.toml
Relevant section of
poetry.lock
(note empty community models)The text was updated successfully, but these errors were encountered: