python установка стихов из частного репо с использованием файла pyproject.toml - PullRequest
0 голосов
/ 12 февраля 2020

Привет, я пытаюсь использовать поэзию для установки пакета с моим личным репозиторием, но, похоже, он не работает. Есть идеи, что я делаю не так?

[tool.poetry]
name = "aa"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "^3.7"
package = {version = "0.1.3", source = "abc"}


[[tool.poetry.source]]
name = "abc"
url = "url"
default = true

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Я получаю сообщение об ошибке, потому что package1 зависит от package2, который не соответствует ни одной версии, решение проблемы не удалось, но я могу установить пакет, используя pip из моего личного репозитория

Traceback (most recent call last):
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/console_application.py", line 131, in run
    status_code = command.handle(parsed_args, io)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/api/command/command.py", line 120, in handle
    status_code = self._do_handle(args, io)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/clikit/api/command/command.py", line 171, in _do_handle
    return getattr(handler, handler_method)(args, io, self)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/cleo/commands/command.py", line 92, in wrap_handle
    return self.handle()
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/console/commands/install.py", line 63, in handle
    return_code = installer.run()
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/installation/installer.py", line 74, in run
    self._do_install(local_repo)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/installation/installer.py", line 225, in _do_install
    ops = solver.solve(use_latest=whitelist)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/puzzle/solver.py", line 36, in solve
    packages, depths = self._solve(use_latest=use_latest)
  File "/Users/abc/poetry_test/test/lib/python3.8/site-packages/poetry/puzzle/solver.py", line 190, in _solve
    raise SolverProblemError(e)
...