Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 027daaf

Browse files
CedricCabessajerome-quere
authored andcommitted
fix: keep support for python 2 (#31)
cachetools recently drop py2 support, we would like to keep for some time so simply use the latest py2 compatible cachetools when using py2. Py3 is free to use the latest and greatest.
1 parent d86367a commit 027daaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎setup.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
PACKAGE_NAME = 'scaleway-sdk'
2828

2929
DEPENDENCIES = [
30-
'cachetools >= 3.1.1',
30+
# last cachetools version supporting py2 is 3.1.1
31+
'cachetools >= 3.1.1; python_version >= "3.0"',
32+
'cachetools == 3.1.1; python_version < "3.0"',
3133
'slumber >= 0.6.2',
3234
'six']
3335

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /