Closed ihsaan-ullah closed 4 months ago
For the question I'll let @bbearce answer.
I am asking these because I am updating a package bpython in pyproject.toml and I am rebuilding the django container which gives me this error
Are you using the updated version of the Dockerfile.flower
? #1520
Are you using the updated version of the
Dockerfile.flower
? #1520
No, but I have already built the flower from the dockerfile in #1520. I am just trying to build django by deleting the image and then running docker-compose up -d
Question 1: "When I want to update a package, I should update pyproject.toml right?"
Yes for both. We need to edit the toml file and then we need to recreate the lock file. It is a little complex but here is a quick way to do it:
When services are running, make change to pyproject.toml, as it is mounted in with -v flag. Then regenerate lock with:
docker compose exec django poetry lock
because it is mounted in, it should be available in the codabench directory.
It gets a little more complex if you change the python version of Dockerfile. In that case, build docker image with new python and use new image with above command.
Question 2: Inconsistent and should be 3.9 or something more speccific.
Question 3: No, poetry install
will install the lock packages exactly as they are. To regenerate lock file we need poetry lock
.
@Didayolo, @bbearce
Question 1
In the project we have these two files:
pyproject.toml
poetry.lock
When I want to update a package, I should update
pyproject.toml
right?Question 2
In the
Dockerfile
the specified python version is3.9
but inpyproject.toml
it is ^3.10. Is this inconsistent or on purpose?Question 3
In the
Dockerfile
we have these lines:This means we are copying
pyproject.toml
andpoetry.lock
. WillRUN poetry install
regenerate the lock file?I am asking these because I am updating a package
bpython
inpyproject.toml
and I am rebuilding the django container which gives me this error: