pyproject.toml make dependencies list static for production #8925
Unanswered
david-nano
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Isn't this what the lockfile allows for? I am not sure what the value of doing this is. You could do this. poetry add internal-package==1.2.3 Regarding the import errors, you might have a broken install. Can you provide the output of running the command with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our
pyproject.toml
we have some packages with>=
, for example:To prepare the package for production we want to make it stable with what test during the CI, hence during the build we want to change the version of each package to be static, but in this case
>=
we want to use the latest one, in this example,internal-package
latest version is1.2.3
, I want to have a new pyproject.toml which looks like:What do you think the right way is to do it?
I've looked on
poetry export
and thenpoetry add
but got a lot of errors during the process. (For example one of them:cannot import name 'Pool' from 'poetry.repositories'
)Beta Was this translation helpful? Give feedback.
All reactions