-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved optional packages to extras_require with "all" key (#284)
* Moved optional packages to extras_require with "all" key * Update setup.py * Updated index.rst with installation options * Updated README with installation options * update readme * update docs * Update setup.py * Added catches for import errors and raise the right error that explains how to download the right dependencies for pandera. * Fixed pylint issues regarding raise-missing-from * Changed RuntimeError to ImportError when there are missing packages. * Made error_formatters.py not depend on hypotheses.py, and also raise exception on import issues only when using hypotheses and not when importing pandera. * Use condition instead of assert when using scipy * Added docs related to installations * Changed _has_scipy parameter to be upper case to match linting * testt have hypothesis/io dependency, update travis * test pandera-core deps * fix travis, update docs * fix travis script * add tests for Hypothesis import * update documentation * ignore coverage Co-authored-by: Niels Bantilan <niels.bantilan@gmail.com> Co-authored-by: amitripshtos <amit@noogata.com>
- Loading branch information
1 parent
be23c4e
commit c4716a0
Showing
13 changed files
with
155 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Tests for extension module imports.""" | ||
|
||
import pytest | ||
|
||
|
||
from pandera.hypotheses import Hypothesis, HAS_SCIPY | ||
|
||
|
||
def test_hypotheses_module_import(): | ||
"""Test that Hypothesis built-in methods raise import error.""" | ||
if not HAS_SCIPY: | ||
for fn in [ | ||
lambda: Hypothesis.two_sample_ttest("sample1", "sample2"), | ||
lambda: Hypothesis.one_sample_ttest(popmean=10)]: | ||
with pytest.raises(ImportError): | ||
fn() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters