-
Notifications
You must be signed in to change notification settings - Fork 59
Accounting for incoming API changes to libpysal and adding testing against libpysal's master branch
#26
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
Accounting for incoming API changes to libpysal and adding testing against libpysal's master branch
#26
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,13 +3,26 @@ sudo: false | |
| branches: | ||
| only: | ||
| - master | ||
| python: | ||
| - "3.5" | ||
| - "3.6" | ||
|
|
||
| env: | ||
| - PYSAL_PLUS=false | ||
| - PYSAL_PLUS=true | ||
| python: | ||
| - 3.5 | ||
| - 3.6 | ||
| env: | ||
| - PYSAL_PYPI=true PYSAL_PLUS=true | ||
| - PYSAL_PYPI=true PYSAL_PLUS=false | ||
| - PYSAL_PYPI=false PYSAL_PLUS=true | ||
| - PYSAL_PYPI=false PYSAL_PLUS=false | ||
|
|
||
| matrix: | ||
| allow_failures: | ||
| - python: 3.5 | ||
| env: PYSAL_PYPI=false PYSAL_PLUS=false | ||
| - python: 3.5 | ||
| env: PYSAL_PYPI=false PYSAL_PLUS=true | ||
| - python: 3.6 | ||
| env: PYSAL_PYPI=false PYSAL_PLUS=false | ||
| - python: 3.6 | ||
| env: PYSAL_PYPI=false PYSAL_PLUS=true | ||
|
|
||
| before_install: | ||
| - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | ||
|
|
@@ -23,9 +36,12 @@ before_install: | |
| install: | ||
| - conda install --yes pip nose | ||
| - which pip | ||
| - if "$PYSAL_PYPI"; then | ||
| echo 'testing pypi libpysal' && pip install libpysal; | ||
| else echo 'testing git libpysal'; git clone https://github.com/pysal/libpysal.git; cd libpysal; pip install .; cd ../; | ||
| fi; | ||
| - conda install --yes --file requirements.txt; | ||
| - pip install libpysal | ||
| - if [[ PYSAL_PLUS ]]; then conda install --yes numba; fi | ||
| - if "$PYSAL_PLUS"; then conda install --yes numba; fi | ||
|
|
||
| script: | ||
| - pwd | ||
|
|
@@ -38,8 +54,8 @@ notifications: | |
| recipients: | ||
| - [email protected] | ||
| - [email protected] | ||
| on_change: always | ||
| on_failure: always | ||
| on_success: change | ||
| on_failure: change | ||
|
|
||
| after_success: | ||
| - coveralls | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -80,10 +80,10 @@ class Geary(object): | |
|
|
||
| Examples | ||
| -------- | ||
| >>> import libpysal.api as lps | ||
| >>> import libpysal | ||
| >>> from esda.geary import Geary | ||
| >>> w = lps.open(lps.get_path("book.gal")).read() | ||
| >>> f = lps.open(lps.get_path("book.txt")) | ||
| >>> w = libpysal.io.open(liblibpysal.examples.get_path("book.gal")).read() | ||
| >>> f = libpysal.io.open(liblibpysal.examples.get_path("book.txt")) | ||
|
||
| >>> y = np.array(f.by_col['y']) | ||
| >>> c = Geary(y,w,permutations=0) | ||
| >>> round(c.C,7) | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/liblibpysal/libpysal/g