Closed jclerman closed 2 years ago
dunno what's going on here but it's certainly some sort of misunderstanding, auth for dev dependencies is in no way different than auth for non-dev dependencies.
Also I know this sort of setup definitely works from personal experience
Perhaps the environment variables weren't making it through to tox at all, but this didn't affect other dependencies because they were being pulled from pypi without the reporter realising it? Just a guess, it's hard to say.
Absent some sort of repro, and after all this time, this probably wants closing out
Yes, it's been quite a while since I opened this and I haven't run into the issue in a long time. At the time, it seemed clearly reproducible, but whatever the cause was, it seems to have been fixed in the interim.
OK with me to close this.
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): N/A, since the error occurs only when calling the API, not when executing a poetry command.Issue
I am building/testing my project using CircleCI, but to the best of my knowledge, the problem isn't specific to CircleCI.
My
pyproject.toml
file includes (I've replaced the name of my organization with "xyz" for privacy):I also have a
tox.ini
file which includes:In my CircleCI environment, I have the proper variables set to provide authentication information (username/password) for a private github repository. That is, values are set for variables like ("XYZ" replaces private info here):
POETRY_HTTP_BASIC_XYZ_USERNAME
POETRY_HTTP_BASIC_XYZ_PASSWORD
My CircleCI config.yml file includes:
Everything (including the
poetry install
step!) succeeds up until the final "tox testing" step, which fails with:The problem goes away if I do EITHER of these:
[tool.poetry.dependencies]
instead of[tool.poetry.dev-dependencies]
tox testing
step:As far as I understand, that
poetry config http-basic
... step should not be necessary, since it's using the same environment variables that poetry is supposed to be able to use directly.