Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[work in progress] Dropping Python 2 support #286

Merged
merged 27 commits into from Apr 4, 2019

Conversation

tommyod
Copy link
Contributor

@tommyod tommyod commented Mar 31, 2019

This PR closes #285 .

  • Removed Python 2 from Travis CI testing.
  • Removed the entire externals folder and associated code.
  • Removed base.py, importing from sklearn instead.

@codecov-io
Copy link

codecov-io commented Mar 31, 2019

Codecov Report

Merging #286 into master will decrease coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
- Coverage   73.74%   73.57%   -0.18%     
==========================================
  Files           4        4              
  Lines         617      613       -4     
  Branches      124      124              
==========================================
- Hits          455      451       -4     
- Misses        123      124       +1     
+ Partials       39       38       -1
Impacted Files Coverage Δ
pyglmnet/base.py 45.16% <100%> (-3.33%) ⬇️
pyglmnet/pyglmnet.py 79.67% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a80848c...0672c6d. Read the comment docs.

Copy link
Member

@jasmainak jasmainak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update the documentation saying that pyglmnet will support only python 3 starting version 1.1? Also you will have to update the documentation saying what's the minimum version of scikit-learn required if people want to use pipelines / cross-validation from scikit-learn.

pyglmnet/base.py Outdated
@@ -1,171 +0,0 @@
import warnings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't remove this. We don't want a dependency on sklearn. It's a conscious choice.

@@ -6,7 +6,7 @@
from scipy.special import expit
from scipy.stats import norm
from .utils import logger, set_log_level
from .base import BaseEstimator, is_classifier, check_version
from sklearn.base import BaseEstimator, is_classifier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above. We don't want a dependency on sklearn.

@@ -881,7 +863,7 @@ def score(self, X, y):


class GLMCV(object):
"""Class for estimating regularized generalized linear models (GLM)
r"""Class for estimating regularized generalized linear models (GLM)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need this? It's not related to python 2, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running tests gave warnings like this. It's unrelated to Python 2.

@tommyod
Copy link
Contributor Author

tommyod commented Apr 1, 2019

Spent some time reverting the commits related to sklearn - I'm not proud of the resulting git history. Please squash when merging.

I will update docs.

@jasmainak
Copy link
Member

Can you also update the Readme and documentation saying we only support python 3 from now on.

@tommyod
Copy link
Contributor Author

tommyod commented Apr 3, 2019

I think the PR is good to go, can you look over it @jasmainak ? There were some issues with CircleCI, and on the webpage is states "Your project references CircleCI 1.0 or it has no configuration. CircleCI 1.0 and projects without configuration files are no longer supported. You must update your project to use CircleCI 2.0 configuration to continue." I'm not experienced with CircleCI, but I suggest we fix it in another PR if troubles persist.

Please squash merge, the history is very ugly.

@jasmainak jasmainak merged commit ea828a5 into glm-tools:master Apr 4, 2019
@jasmainak
Copy link
Member

Done, thanks @tommyod

next time I suggest when you are ready you can put [MRG] at the beginning of the title. It's how we usually indicate that it's good to go :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop Python 2 support
3 participants