Skip to content

[MRG+1] Remove hard dependency on nose #9670

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

Merged
merged 6 commits into from
Sep 10, 2017

Conversation

massich
Copy link
Contributor

@massich massich commented Sep 1, 2017

Reference Issue

None

What does this implement/fix? Explain your changes.

It removes with_setup and adds a deprecation in order to remove nose depencie

Any other comments?

This PR removes the dependency on nose from our python modules.

@massich massich changed the title Remove with_setup [MRG] Remove with_setup Sep 1, 2017
@@ -754,10 +765,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):
_delete_folder(self.temp_folder)


with_network = with_setup(check_skip_network)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We removed those two aliases since they were meant for the CI and they are used nowhere in the codebase.

Copy link
Member

Choose a reason for hiding this comment

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

It is also very unlikely that they are used in any downstream projects.

@lesteve
Copy link
Member

lesteve commented Sep 1, 2017

Hmmm the AppVeyor failures look genuine. And actually failures can be seen on Travis as well.

@lesteve lesteve changed the title [MRG] Remove with_setup [MRG] Remove hard dependency on nose Sep 6, 2017
@lesteve
Copy link
Member

lesteve commented Sep 6, 2017

With the last commit, the pytest build on Travis does not have nose installed so that will ensure that we don't have a nose dependency any more.

@jnothman any opinions on this PR?

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

'If your code relies on with_setup, please use'
' nose.tools.with_setup instead.')
with_setup = deprecated(deprecation_message)(_with_setup)
additional_symbols_to_export = ['raises', 'with_setup']
Copy link
Member

Choose a reason for hiding this comment

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

What's the story with raises?

Copy link
Member

Choose a reason for hiding this comment

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

What's the story with raises?

Not sure what you mean.

Copy link
Member

Choose a reason for hiding this comment

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

Ahh now I see it deprecated above. No worries

@jnothman jnothman changed the title [MRG] Remove hard dependency on nose [MRG+1] Remove hard dependency on nose Sep 6, 2017
@amueller
Copy link
Member

amueller commented Sep 8, 2017

lgtm if tests pass

@glemaitre
Copy link
Member

@amueller It is green. LGTM

@jnothman jnothman merged commit 76494a1 into scikit-learn:master Sep 10, 2017
@jnothman
Copy link
Member

Thanks @massich

amueller pushed a commit to amueller/scikit-learn that referenced this pull request Sep 12, 2017
massich added a commit to massich/scikit-learn that referenced this pull request Sep 15, 2017
amueller added a commit to amueller/scikit-learn that referenced this pull request Sep 19, 2017
remove outdated comment

fix also for FeatureUnion

[MRG+2] Limiting n_components by both n_features and n_samples instead of just n_features (Recreated PR) (scikit-learn#8742)

[MRG+1] Remove hard dependency on nose (scikit-learn#9670)

MAINT Stop vendoring sphinx-gallery (scikit-learn#9403)

CI upgrade travis to run on new numpy release (scikit-learn#9096)

CI Make it possible to run doctests in .rst files with pytest (scikit-learn#9697)

* doc/datasets/conftest.py to implement the equivalent of nose fixtures
* add conftest.py in root folder to ensure that sklearn local folder
  is used rather than the package in site-packages
* test doc with pytest in Travis
* move custom_data_home definition from nose fixture to .rst file

[MRG+1] avoid integer overflow by using floats for matthews_corrcoef (scikit-learn#9693)

* Fix bug#9622: avoid integer overflow by using floats for matthews_corrcoef

* matthews_corrcoef: cosmetic change requested by jnothman

* Add test_matthews_corrcoef_overflow for Bug#9622

* test_matthews_corrcoef_overflow: clean-up and make deterministic

* matthews_corrcoef: pass dtype=np.float64 to sum & trace instead of using astype

* test_matthews_corrcoef_overflow: add simple deterministic tests

TST Platform independent hash collision tests in FeatureHasher (scikit-learn#9710)

TST More informative error message in test_preserve_trustworthiness_approximately (scikit-learn#9738)

add some rudimentary tests for meta-estimators

fix extra whitespace in error message

add missing if_delegate_has_method in pipeline

don't test tuple pipeline for now

only copy list if not list already? doesn't seem to help?
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
@massich massich deleted the pytest_migration branch June 6, 2018 13:08
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.

5 participants