File tree 9 files changed +18
-14
lines changed 9 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ Required Dependencies
222
222
Dependencies for python 2
223
223
^^^^^^^^^^^^^^^^^^^^^^^^^
224
224
225
- `functools32 <https://pypi.python.org/pypi/functools32 >`_
225
+ `backports.functools_lru_cache <https://pypi.python.org/pypi/backports.functools_lru_cache >`_
226
226
Required for compatibility if running on Python 2.7.
227
227
228
228
`subprocess32 <https://pypi.python.org/pypi/subprocess32/>`_
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ conda install pyqt
27
27
# this package is only available in the conda-forge channel
28
28
conda install -c conda-forge msinttypes
29
29
# for python 2.7
30
- conda install -c conda-forge functools32
30
+ conda install -c conda-forge backports.functools_lru_cache
31
31
32
32
# copy the libs which have "wrong" names
33
33
set LIBRARY_LIB=%CONDA_DEFAULT_ENV%\L ibrary\l ib
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ install:
94
94
mock sphinx
95
95
- activate test-environment
96
96
- cmd : echo %PYTHON_VERSION% %TARGET_ARCH%
97
- - cmd : IF %PYTHON_VERSION% == 2.7 conda install -q functools32
97
+ - cmd : IF %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
98
98
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
99
99
- conda install -q pytest "pytest-cov>=2.3.1" pytest-timeout pytest-xdist
100
100
Original file line number Diff line number Diff line change 7
7
:: # this package is only available in the conda-forge channel
8
8
:: conda install -c conda-forge msinttypes
9
9
:: if you build on py2.7:
10
- :: conda install -c conda-forge functools32
10
+ :: conda install -c conda-forge backports.functools_lru_cache
11
11
12
12
set TARGET = bdist_wheel
13
13
IF [%1 ]== [] (
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ requirements:
39
39
- zlib 1.2* # [win]
40
40
- pyqt # [not osx]
41
41
- tk 8.5* # [linux]
42
- - functools32 # [py2k]
42
+ - backports.functools_lru_cache # [py2k]
43
43
44
44
run :
45
45
- python
@@ -54,7 +54,7 @@ requirements:
54
54
- libpng >=1.6.21,<1.7
55
55
- pyqt # [not osx]
56
56
- tk 8.5* # [linux and win]
57
- - functools32 # [py2k]
57
+ - backports.functools_lru_cache # [py2k]
58
58
59
59
test :
60
60
imports :
Original file line number Diff line number Diff line change
1
+ Use backports.functools_lru_cache instead of functools32
2
+ ````````````````````````````````````````````````````````
3
+
4
+ It's better maintained and more widely used (by pylint, jaraco, etc).
Original file line number Diff line number Diff line change 64
64
try :
65
65
from functools import lru_cache
66
66
except ImportError :
67
- from functools32 import lru_cache
67
+ from backports . functools_lru_cache import lru_cache
68
68
69
69
70
70
USE_FONTCONFIG = False
Original file line number Diff line number Diff line change 69
69
setupext .Numpy (),
70
70
setupext .Six (),
71
71
setupext .Dateutil (),
72
- setupext .FuncTools32 (),
72
+ setupext .BackportsFuncToolsLRUCache (),
73
73
setupext .Subprocess32 (),
74
74
setupext .Pytz (),
75
75
setupext .Cycler (),
Original file line number Diff line number Diff line change @@ -1523,25 +1523,25 @@ def get_install_requires(self):
1523
1523
return [dateutil ]
1524
1524
1525
1525
1526
- class FuncTools32 (SetupPackage ):
1527
- name = "functools32 "
1526
+ class BackportsFuncToolsLRUCache (SetupPackage ):
1527
+ name = "backports.functools_lru_cache "
1528
1528
1529
1529
def check (self ):
1530
1530
if not PY3min :
1531
1531
try :
1532
- import functools32
1532
+ import backports . functools_lru_cache
1533
1533
except ImportError :
1534
1534
return (
1535
- "functools32 was not found. It is required for"
1535
+ "backports.functools_lru_cache was not found. It is required for"
1536
1536
"Python versions prior to 3.2" )
1537
1537
1538
- return "using functools32 "
1538
+ return "using backports.functools_lru_cache "
1539
1539
else :
1540
1540
return "Not required"
1541
1541
1542
1542
def get_install_requires (self ):
1543
1543
if not PY3min :
1544
- return ['functools32 ' ]
1544
+ return ['backports.functools_lru_cache ' ]
1545
1545
else :
1546
1546
return []
1547
1547
You can’t perform that action at this time.
0 commit comments