Skip to content
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

Explicit setuptools dep breaks poetry export #2842

Closed
3 tasks done
AstraLuma opened this issue Aug 21, 2020 · 2 comments
Closed
3 tasks done

Explicit setuptools dep breaks poetry export #2842

AstraLuma opened this issue Aug 21, 2020 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@AstraLuma
Copy link

Issue

When setuptools is an explicit transitive dependency, the exported requirements.txt is not installable.

In this case, by zope.interface (which I believe is channels->daphne->twisted->zope.interface).

From my Dockerfile:

FROM python:3 AS builder
RUN pip install poetry
RUN mkdir /project /output
COPY . /project
WORKDIR /project
RUN poetry build -f wheel
RUN cp dist/*.whl /output
RUN poetry export -f requirements.txt -o /output/requirements.txt
WORKDIR /output
RUN pip download -r requirements.txt setuptools

The pip download fails with:

Collecting setuptools
ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    setuptools from https://files.pythonhosted.org/packages/c3/a9/5dc32465951cf4812e9e93b4ad2d314893c2fa6d5f66ce5c057af6e76d85/setuptools-49.6.0-py3-none-any.whl#sha256=4dd5bb0a0a0cff77b46ca5dd3a84857ee48c83e8223886b556613c724994073f (from zope.interface==5.1.0->-r requirements.txt (line 240))

Aside: I do not see setuptools locked in poetry.lock even though it is a run-time dependency.

The work around is to add --without-hashes to poetry export.

@AstraLuma AstraLuma added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 21, 2020
@AstraLuma
Copy link
Author

Oops, this is a duplicate of #1584

@abn abn removed the status/triage This issue needs to be triaged label Sep 25, 2020
Copy link

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants