question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method for enforcing a minimum version of Poetry

See original GitHub issue

Poetry 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:open
  • Created 3 years ago
  • Reactions:29
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

15reactions
kimmoaholacommented, Nov 25, 2020

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

[tool.poetry.checks]
poetry-version="^1.1"

to pyproject.toml

10reactions
cpvandeheycommented, Dec 28, 2020

Adding a “plus 1” to this problem. The Node world seems to have solved this problem by specifying node versions with the engineStrict feature.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found