Method for enforcing a minimum version of Poetry
See original GitHub issuePoetry 1.1 is not compatible with 1.0, so we need to enforce Poetry version for our development team one way or another.
There is this Stack Overflow question: https://stackoverflow.com/questions/64003868/how-to-enforce-a-minimum-python-poetry-version which currently is unanswered.
Is there a way of specifying a version of Poetry in pyproject.toml that will fail if the executing version of poetry does not match? What effect does [build-system] requires
have?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:29
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to enforce a minimum python poetry version
I am using python-poetry to manage dependencies in a python project. I want to enforce a minimum poetry version to avoid unnecessary changes ......
Read more >Dependency specification | Documentation | Poetry - Python ...
Tilde requirements specify a minimal version with some ability to update. If you specify a major, minor, and patch version or only a...
Read more >A Poetic Apology. Or Why Should You Use Poetry to Manage…
In this document, we'll introduce yet another tool, Poetry, and make an argument about why you should probably add it to your own...
Read more >Poetry: Dependency Management for Python - PyPI
And finally, Poetry's code is only compatible with Python 3.6+ but it can manage Python project's with previous versions without any problem. Installation....
Read more >Modern Python part 1: start a project with pyenv & poetry
Keep in mind that if a poetry.lock file is already present, the version numbers defined in it take precedence over what is defined...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would be great to make somehow sure that every team member has recent enough poetry.
In future poetry may add (more) non-backwords compatible features.
Is it possible run bash in https://python-poetry.org/docs/pyproject/#scripts ?
And if there would be some “preinstall” hooks (like in Node’s package.json) then it would be possible to create a simple bash script to do the version checking.
Or maybe just add something like
to pyproject.toml
Adding a “plus 1” to this problem. The Node world seems to have solved this problem by specifying node versions with the
engineStrict
feature.