source repository broken in poetry 1.0.4
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: ArchLinux
- Poetry version: 1.0.4
- Link of a Gist with the contents of your pyproject.toml file:
all you need to reproduce is to add this section
[[tool.poetry.source]]
name = "xxxxxx"
url = "https://xxxxxx.invalid"
Issue
I just updated to poetry 1.0.4 and source repositories specified in pyproject.toml doesn’t work anymore. It seems related to that issue: https://github.com/sdispater/tomlkit/issues/80
Reverting to 1.0.3 is working just fine.
here is the exception:
- Installing blahblah (0.7.13)
[ValueError]
Repository "xxxxxx" does not exist.
Traceback (most recent call last):
File "/home/mbelanger/.poetry/lib/poetry/_vendor/py3.7/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/home/mbelanger/.poetry/lib/poetry/_vendor/py3.7/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/home/mbelanger/.poetry/lib/poetry/_vendor/py3.7/clikit/api/command/command.py", line 171, in _do_handle
return getattr(handler, handler_method)(args, io, self)
File "/home/mbelanger/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py", line 92, in wrap_handle
return self.handle()
File "/home/mbelanger/.poetry/lib/poetry/console/commands/install.py", line 63, in handle
return_code = installer.run()
File "/home/mbelanger/.poetry/lib/poetry/installation/installer.py", line 74, in run
self._do_install(local_repo)
File "/home/mbelanger/.poetry/lib/poetry/installation/installer.py", line 286, in _do_install
self._execute(op)
File "/home/mbelanger/.poetry/lib/poetry/installation/installer.py", line 302, in _execute
getattr(self, '_execute_{}'.format(method))(operation)
File "/home/mbelanger/.poetry/lib/poetry/installation/installer.py", line 327, in _execute_install
self._installer.install(operation.package)
File "/home/mbelanger/.poetry/lib/poetry/installation/pip_installer.py", line 47, in install
repository = self._pool.repository(package.source_reference)
File "/home/mbelanger/.poetry/lib/poetry/repositories/pool.py", line 40, in repository
raise ValueError('Repository "{}" does not exist.'.format(name))
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
[ValueError] Repository <foo> does not exist in Docker build
When upgrading poetry locally to 1.0.4 it breaks too. I'll double check that it can't be fixed with earlier poetry in docker.
Read more >Dependency specification | Documentation | Poetry - Python ...
To depend on a library located in a git repository, the minimum information you need to specify is the location of the repository...
Read more >Integrating Python Poetry with Docker - Stack Overflow
Here's a stripped example where first a layer with the dependencies (that is only build when these changed) and then one with the...
Read more >poetry-core - PyPI
Prior to the release of version 1.1.0 , Poetry was a project management tool that included a PEP 517 build backend. This was...
Read more >Dependency Management With Python Poetry
When your Python code relies on external modules, you can say that these packages are dependencies of your project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@timothyjlaurent and @sdispater implemented a fix here: https://github.com/sdispater/tomlkit/pull/81
Please take a look a it 😃
Thanks for the quick fix @sdispater 😃