👷 Limit max pygit2 version due to breaking changes#759
👷 Limit max pygit2 version due to breaking changes#759cjolowicz merged 9 commits intocjolowicz:mainfrom
Conversation
🔧 [pygit2] Limit pygit2 max version to <1.15 due to breaking changes [pygit2-changelog]. [pygit2-changelog]: https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md#1150-2024-05-18
For some reason (internal change on pipx?), 'constraint' parameter now requires a full path.
|
@cjolowicz, when running pipx locally I was finding the same issue that's happening on CI right now. |
|
Well, at least the error changed. I guess new errors mean progress, right? 😅 From the new error the issue is that I used a more up to date version of poetry, which created an incompatible lock file. |
b64e33f to
1a80814
Compare
1a80814 to
67b74ab
Compare
|
OK, CI is now finally passing for almost all checks. Only safety is failing now. 5 dependencies would require action, but I'm not sure how you prefer to tackle these kind of issue. |
|
Thank you for working on this! I'm fine with upgrading any dependencies that cause errors in Safety or other CI jobs. |
Drop support for python 3.7, which is EOL. This was required to allow upgrading some dependencies which were affected by CVEs. Also bump supported python versions up to the latest, which at time of writing is python 3.12.
Update pycodestyle to include a [fix][pycodestyle fix] for false positives E231 being triggered in python 3.12. In order to do so, dependency resolution required bumping minimum python version to 3.8.1 (dependency hell, is that you?). [pycodestyle fix]: PyCQA/pycodestyle#1148
B017 (assert-raises-exception) enforces treats assertRaises(Exception) and pytest.raises(Exception) like pure evil.
5e8d821 to
76775c3
Compare
This commit introduces a change that is required for typeguard to get past at least "collection" phase of pytest. However, ~20 failures still need to be fixed in order to be fully complaint with latest typeguard. Instead, let's just limit max typeguard version until a proper fix is implemented.
76775c3 to
91c9e72
Compare
|
Wow, what started as a "hey, a single line of code can fix this here" became a visit to dependency hell haha. Summary of changes:
All checks passed on my fork (bruno-fs#1) |
Limit pygit2 max version to <1.15 due to breaking changes pygit2-changelog it introduces.
At least one of the deprecations affects this codebase:
Remove deprecated oid.hex, use str(oid)(see #758).Fix #758
PS: I tried to mimick the emojis you use on commit messages, but I'm not sure if I got it it 😅 .