-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update poetry to 1.2.2 and regenerate lockfile #55
Update poetry to 1.2.2 and regenerate lockfile #55
Conversation
It now correctly includes setuptools as a sub-dependency of gunicorn.
Mmh, this might actually be caused by the lock file being written with poetry 1.2, while the inboard base image is still supplying poetry 1.1. Let me try updating that and let's see what happens. |
Deployment failed with the following error:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a7ab345
to
0a03737
Compare
Ok, seems like updating poetry does the trick. I have updated the PR title accordingly. |
Thanks for taking a look into this problem. This looks like a Poetry 1.2 issue, and I think a more pragmatic solution is just to not update to Poetry 1.2. Updating to Poetry 1.2 would be a breaking change for this project. If inboard updates to Poetry 1.2, every downstream project that uses inboard also has to update to Poetry 1.2. Otherwise, if downstream projects are still using Poetry 1.1 lockfiles, Updating the lockfile to the Poetry 1.2 format also apparently creates the converse problem - installing a Poetry 1.2 lockfile with Poetry 1.1 results in Poetry 1.1 uninstalling Example terminal session (expand)
Also note that, in the terminal session above, pip and Poetry report opposite information about Poetry has been helpful by putting dependency management and packaging together in one tool using I'm considering switching to Hatch. Please see the GitHub discussion I created for context: #56. Regarding the original post:
That would only happen if mixing Poetry 1.1 and 1.2 in downstream projects. The Docker images come with Poetry 1.1 installed, so the SuggestionsIf you have a downstream project using the inboard Docker images with Poetry 1.2, you can add If you would like to install inboard outside of Docker for local development, but you have Poetry 1.2 installed on your system, you can use
If you would like to move this PR forward, there are a couple of changes related to Poetry 1.1 that could help:
|
Thanks for the in-depth response and sorry that I don't have much more time to put in here currently. I hope I find some time to look into hatch and what you wrote in your comparison with poetry. |
Sounds great, thanks for reporting back! I closed this off for now, because PR #58 migrated the project to Hatch instead, so there's no Note that Poetry 1.1 is still installed in the Docker images for backwards compatibility. You can continue using the suggestions I provided in my previous comment (running Thanks again for looking into Poetry 1.2. I would welcome other contributions from you in the future. |
inboard depends on gunicorn, which in turn depends on setuptools for
pkg_resources
.Unfortunately this sub-dependency is not mentioned in the
poetry.lock
file.That means when building a docker file as described in the docs,
RUN poetry install
will actually uninstall setuptools.That in turn breaks guincorn.
All I did for this PR is run
poetry lock
in the repository. It added setuptools in line 199 of poetry.lock as well as in the[metadata.files]
section.