MAINT: remove support for python 2.6#437
Conversation
If you have the collision warning in Python 2.7 use Python 2.7.
You know my answer to this one, right ;-) ? Dedicated PR please. To be honest the way we do it in scikit-learn is not that great we use a backport of inspect.signature that does not seem to be very actively maintained. One pyston guy opened a reasonably trivial PR and got no answer there. See testing-cabal/funcsigs#30 for more details. |
lesteve
left a comment
There was a problem hiding this comment.
The changes seem fine, but were there not more code like your streaming compression stuff that was Python 2.6 specific?
|
|
||
| env: | ||
| matrix: | ||
| - PYTHON_VERSION="2.6" NUMPY_VERSION="1.6" |
There was a problem hiding this comment.
Use Python 2.7 to keep testing for numpy 1.6
There was a problem hiding this comment.
well, travis shows that this change needs new test data to be generated...
There was a problem hiding this comment.
Yep good point, should be quick with the scripts, also add py27-np16 to the list of conda envs in the main script regenerating the data for all the envs.
There was a problem hiding this comment.
Hmmm the tests pass now although you have not regenerated the data. This is a bit worrisome.
| """Nice bench summary function.""" | ||
| summary = """Benchmark summary: | ||
| - Global values: | ||
| . Joblib version: {0} |
Yes . The cases were also used for some file object (BZ2File) with python 2.7. |
I am a bit disappointed not to remove more code :). |
|
The Travis error needs to be looked at. We get two warnings when we expect one, not sure why. |
|
It looks like we catch a DeprecationWarning from numpy ... |
|
I pushed a fix, let's see how this goes. |
|
|
||
| env: | ||
| matrix: | ||
| - PYTHON_VERSION="2.6" NUMPY_VERSION="1.6" |
There was a problem hiding this comment.
Hmmm the tests pass now although you have not regenerated the data. This is a bit worrisome.
joblib/test/data/generate_data.sh
Outdated
|
|
||
| # Change the list according to your local conda/virtualenv env. | ||
| CONDA_ENVS="py26-np16 py27-np17 py33-np18 py34-np19 py35-np19" | ||
| CONDA_ENVS="py27-np17 py33-np18 py34-np19 py35-np19" |
|
I generated the data for python 2.7 and numpy 1.6. While doing that I realised that there were some .lzma and .xz files for Python 2.6, that does not make any sense right @aabadie ? |
|
OK, merging this one, thanks! |
|
There are still Python 2.6 stuff, @aabadie could you finish up the cleanup? |
|
indeed @lesteve, I'll issue another PR soon. |
|
Can you add an entry in CHANGES.rst as well, saying that Python 2.6 support has been dropped in version ? (maybe worth going to 0.11 for this exact reason). |
|
(maybe worth going to 0.11 for this exact reason).
+1 for jumping the version number. That said, let's release only when we
have significant new features: the goal is not to drop 2.6 and not bring
anything to people.
|
Yep, agreed. |
* commit '0.10.2-55-g660fe5d': (52 commits) MAINT simplify way to skip doctests Do not print frames with IPython internals in format_stack BF(TST): compare for version in pickled filename ignoring full path, and looking for _ as well (joblib#445) [MRG] Remove nose dependency completely. (joblib#441) MAINT add Python 3.5 in setup.py Remove some Python 2.6 specific code [MRG] Make test execution on CI possible through py.test command. (joblib#433) Remove more python 2.6 related code (joblib#440) [MRG] Use commit range for diff in flake8_diff.sh (joblib#439) MAINT remove support for python 2.6 (joblib#437) Improve doc about caching methods (joblib#432) Get the tests passing with py.test MAINT update flake8_diff.sh COSMIT move stdlib imports where they belong [MRG] Replace assert_* methods with "assert" keyword statements. (joblib#430) Reraise when the exception is not a TransportableException (joblib#429) Make sure LICENSE.txt is included in the wheel Add LICENSE.txt Update doc/paralle.rst [MRG+1] Remove all nose imports from test scripts. (joblib#422) ...
* releases: (52 commits) MAINT simplify way to skip doctests Do not print frames with IPython internals in format_stack BF(TST): compare for version in pickled filename ignoring full path, and looking for _ as well (joblib#445) [MRG] Remove nose dependency completely. (joblib#441) MAINT add Python 3.5 in setup.py Remove some Python 2.6 specific code [MRG] Make test execution on CI possible through py.test command. (joblib#433) Remove more python 2.6 related code (joblib#440) [MRG] Use commit range for diff in flake8_diff.sh (joblib#439) MAINT remove support for python 2.6 (joblib#437) Improve doc about caching methods (joblib#432) Get the tests passing with py.test MAINT update flake8_diff.sh COSMIT move stdlib imports where they belong [MRG] Replace assert_* methods with "assert" keyword statements. (joblib#430) Reraise when the exception is not a TransportableException (joblib#429) Make sure LICENSE.txt is included in the wheel Add LICENSE.txt Update doc/paralle.rst [MRG+1] Remove all nose imports from test scripts. (joblib#422) ...
Fixes #435
Achievements:
2 things are not done though because I need someone else's opinion:
doc/Memory.rst: the collision warning is also available with python >= 2.7. Should I just change 2.6 in 2.7 or rephrase ?joblib/func_inspect.py: thegetfullargspec()docstring suggests to rewrite this method using a backport of Python 3. Should this be done in this PR or does it deserve a dedicated PR ?