Skip to content
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

Upgrade and unpin python dependencies #921

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bartsanchez
Copy link
Contributor

No description provided.

@bartsanchez bartsanchez force-pushed the bart/upgrade-dependencies branch from d7fd33a to 75d083d Compare December 4, 2024 21:08
@@ -33,15 +33,15 @@ python = "^3.12"

[tool.poetry.group.dev.dependencies]
pytest = "*"
bump2version = "^1.0.0"
Copy link
Collaborator

@boriel boriel Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure about this strategy.
I.e. mypy ^1.0.0 is equivalent to 1.*. Leaving the door open that way can break many things.
And even doing that, you will have to poetry update from time to time.

In other words: I would pin the major versions (as with mypy) and do a poetry update periodically to upgrade the .lock file.

Copy link
Contributor Author

@bartsanchez bartsanchez Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you have a lockfile you can't break anything until you execute the poetry update command. The version is already pinned in the lock file. See this as an example.

I would say the purpose of the lockfile is to pin the versions, so I don't see the point of also pin them in the pyproject (unless there is version that really breaks your code and then you can pin in the pyproject until you fix the issue).

Right now, by unpinning them there are no tests failing. This does not mean that there are no bugs but, unless you pin the versions forever you will end up discovering them at some point.

However, feel free to close this PR if you think it's not helping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants