Fix dependencies for Python 3.7 or drop support for it #784

Closed
opened 2023-11-07 14:47:54 +00:00 by kaechele · 3 comments
Contributor

What I'm trying to do and why

Currently, Python 3.7 will fail because some dependencies have dropped support for it.
We'd either need to drop support for it as well or pin dependencies to functioning versions just for Python 3.7.

Steps to reproduce

tox

Actual behavior

In the py37 environment:

ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=2.7, <3; 0.0.2 Requires-Python >=2.7, <3; 0.0.3 Requires-Python >=2.7, <3; 2.2.6 Requires-Python >=3.8; 6.0.0 Requires-Python >=3.8.1; 6.1.0 Requires-Python >=3.8.1; 7.3.0 Requires-Python >=3.8; 7.3.1 Requires-Python >=3.8; 7.3.2 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement flake8==6.0.0 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.3.1, 1.4, 1.5, 1.6, 1.6.1, 1.6.2, 1.7.0, 2.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6.0, 2.6.1, 2.6.2, 3.0.0b1, 3.0.0b2, 3.0.0, 3.0.1, 3.0.2.dev0, 3.0.2.dev1, 3.0.2, 3.0.3, 3.0.4, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0.dev0, 3.3.0, 3.4.0, 3.4.1, 3.5.0, 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.8.0a1, 3.8.0a2, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.9.0, 3.9.1, 3.9.2, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4)
ERROR: No matching distribution found for flake8==6.0.0

Expected behavior

Tests run without errors on all environments.

Other notes / implementation ideas

Drop Python 3.7. It's been EOL for over 3 years.

borgmatic version

12b75f9075

borgmatic installation method

No response

Borg version

No response

Python version

No response

Database version (if applicable)

No response

Operating system and version

No response

### What I'm trying to do and why Currently, Python 3.7 will fail because some dependencies have dropped support for it. We'd either need to drop support for it as well or pin dependencies to functioning versions just for Python 3.7. ### Steps to reproduce `tox` ### Actual behavior In the `py37` environment: ``` ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=2.7, <3; 0.0.2 Requires-Python >=2.7, <3; 0.0.3 Requires-Python >=2.7, <3; 2.2.6 Requires-Python >=3.8; 6.0.0 Requires-Python >=3.8.1; 6.1.0 Requires-Python >=3.8.1; 7.3.0 Requires-Python >=3.8; 7.3.1 Requires-Python >=3.8; 7.3.2 Requires-Python >=3.8 ERROR: Could not find a version that satisfies the requirement flake8==6.0.0 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.3.1, 1.4, 1.5, 1.6, 1.6.1, 1.6.2, 1.7.0, 2.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6.0, 2.6.1, 2.6.2, 3.0.0b1, 3.0.0b2, 3.0.0, 3.0.1, 3.0.2.dev0, 3.0.2.dev1, 3.0.2, 3.0.3, 3.0.4, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.3.0.dev0, 3.3.0, 3.4.0, 3.4.1, 3.5.0, 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.8.0a1, 3.8.0a2, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.9.0, 3.9.1, 3.9.2, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4) ERROR: No matching distribution found for flake8==6.0.0 ``` ### Expected behavior Tests run without errors on all environments. ### Other notes / implementation ideas Drop Python 3.7. It's been EOL for over 3 years. ### borgmatic version 12b75f90750ebc19c607e855b5149861ae37dd25 ### borgmatic installation method _No response_ ### Borg version _No response_ ### Python version _No response_ ### Database version (if applicable) _No response_ ### Operating system and version _No response_
Owner

Thanks for taking the time to file this one! I've actually been itching for an excuse to drop support for Python 3.7, and this is as good as any. I'll note that that 3.7 security support has only been EOL for a few months at this point. But that's good enough for me! We don't have infinite resources to support all versions of Python for all time.

Thanks for taking the time to file this one! I've actually been itching for an excuse to drop support for Python 3.7, and this is as good as any. I'll note that that 3.7 _security_ support has only been EOL for a few months at this point. But that's good enough for me! We don't have infinite resources to support all versions of Python for all time.
Owner

Implemented in main. Will be part of the next release. Thanks again!

Implemented in main. Will be part of the next release. Thanks again!
Owner

Just released with borgmatic 1.8.5!

Just released with borgmatic 1.8.5!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#784
No description provided.