Skip to content

Commit 1a889a7

Browse files
authored
Merge pull request #145 from GeoStat-Framework/develop
v1.5.0
2 parents 40a8140 + 4a974fd commit 1a889a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5759
-4607
lines changed

.coveragerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[run]
2+
source = pykrige
3+
omit = *docs*, *examples*, *tests*
4+
5+
[report]
6+
exclude_lines =
7+
pragma: no cover
8+
if __name__ == '__main__':
9+
def __repr__
10+
def __str__

.gitignore

Lines changed: 118 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,123 @@
1-
*.pyc
2-
*.egg-info/
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
312
build/
4-
doc/_build/
5-
*.swp
6-
.idea/*
7-
dist/*
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
docs/output.txt
67+
docs/source/examples/
68+
docs/source/generated/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# pyenv
77+
.python-version
78+
79+
# celery beat schedule file
80+
celerybeat-schedule
81+
82+
# SageMath parsed files
83+
*.sage.py
84+
85+
# dotenv
86+
.env
87+
88+
# virtualenv
89+
.venv
90+
venv/
91+
ENV/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
tags
107+
/test_*
108+
109+
# own stuff
110+
info/
111+
pykrige/_version.py
112+
113+
# Cython generated C code
8114
*.c
9-
*.so
10-
.cache/
11-
doc/examples/
12-
doc/generated/
13-
doc/modules/
115+
*.cpp
14116

117+
# special
118+
*.DS_Store
119+
*.zip
120+
*.vtu
121+
*.vtr
15122
examples/meuse_example_data/*
16123
*.ipynb_checkpoints/*

.travis.yml

Lines changed: 105 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,107 @@
11
language: python
2-
sudo: required
3-
services:
4-
- xvfb
5-
matrix:
6-
include:
7-
- python: "3.6"
8-
env: DEPS="numpy scipy cython nose matplotlib scikit-learn gstools"
9-
- python: "3.5"
10-
env: DEPS="numpy scipy=0.18 cython nose matplotlib scikit-learn=0.18.1"
11-
- python: "2.7"
12-
env: DEPS="numpy=1.10.4 scipy=0.17 cython nose matplotlib scikit-learn=0.17.1"
13-
14-
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
2+
python: 3.8
3+
4+
# setuptools-scm needs all tags in order to obtain a proper version
5+
git:
6+
depth: false
7+
8+
env:
9+
global:
10+
- TWINE_USERNAME=geostatframework
11+
- CIBW_BEFORE_BUILD="pip install numpy==1.17.3 scipy==1.3.2 cython==0.29.14 setuptools"
12+
- CIBW_TEST_REQUIRES="pytest scikit-learn gstools"
13+
- CIBW_TEST_COMMAND="pytest -v {project}/tests"
14+
1515
before_install:
16-
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
17-
- chmod +x miniconda.sh
18-
- ./miniconda.sh -b
19-
- export PATH=/home/travis/miniconda3/bin:$PATH
20-
- conda update --yes conda
21-
- conda info -a
22-
- conda config --add channels conda-forge
23-
24-
install:
25-
- conda create -q -n krige-env -y $DEPS pip pytest-cov pytest python=${TRAVIS_PYTHON_VERSION}
26-
- source activate krige-env
27-
- which pip
28-
- pip install coveralls
29-
- pip install -e .
30-
31-
before_script:
32-
- "export DISPLAY=:99.0"
33-
34-
# command to run tests
35-
script:
36-
- source activate krige-env
37-
- pytest -sv ./pykrige/ --cov=pykrige
38-
- |
39-
# run examples
40-
# scikit-learn needed by the regression kriging example
41-
# conda install -y scikit-learn gstools
42-
set -x
43-
for f in examples/*.py; do
44-
python $f 2>&1 | tee -a ~/log.txt
45-
done
46-
if grep -q "Traceback (most recent call last):" ~/log.txt; then false; else true; fi
47-
48-
#after_success:
49-
# coveralls
16+
- |
17+
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
18+
choco install python --version 3.8.0
19+
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
20+
# make sure it's on PATH as 'python3'
21+
ln -s /c/Python38/python.exe /c/Python38/python3.exe
22+
fi
23+
24+
install: python3 -m pip install cibuildwheel==1.3.0
25+
26+
script: python3 -m cibuildwheel --output-dir dist
27+
28+
after_success:
29+
- |
30+
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
31+
python3 -m pip install twine
32+
python3 -m twine upload --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
33+
if [[ $TRAVIS_TAG ]]; then python3 -m twine upload --verbose --skip-existing dist/*; fi
34+
fi
35+
36+
notifications:
37+
email:
38+
recipients:
39+
40+
41+
jobs:
42+
include:
43+
- name: "black check"
44+
services: docker
45+
install: python3 -m pip install black
46+
script: python3 -m black --check pykrige/ examples/ tests/
47+
after_success: echo "all files formatted correctly"
48+
after_failure: echo "some files not formatted correctly"
49+
50+
- name: "sdist and coverage"
51+
services: docker
52+
install:
53+
- python3 -m pip install -r requirements_setup.txt
54+
- python3 -m pip install -r requirements_test.txt
55+
- python3 -m pip install -r requirements.txt
56+
script:
57+
- python3 setup.py sdist -d dist
58+
- python3 setup.py build_ext --inplace
59+
- python3 -m pytest --cov pykrige --cov-report term-missing -v tests/
60+
- python3 -m coveralls
61+
62+
- name: "Linux py35"
63+
services: docker
64+
env: CIBW_BUILD="cp35-*"
65+
- name: "Linux py36"
66+
services: docker
67+
env: CIBW_BUILD="cp36-*"
68+
- name: "Linux py37"
69+
services: docker
70+
env: CIBW_BUILD="cp37-*"
71+
- name: "Linux py38"
72+
services: docker
73+
env: CIBW_BUILD="cp38-*"
74+
75+
- name: "MacOS py35"
76+
os: osx
77+
language: shell
78+
env: CIBW_BUILD="cp35-*"
79+
- name: "MacOS py36"
80+
os: osx
81+
language: shell
82+
env: CIBW_BUILD="cp36-*"
83+
- name: "MacOS py37"
84+
os: osx
85+
language: shell
86+
env: CIBW_BUILD="cp37-*"
87+
- name: "MacOS py38"
88+
os: osx
89+
language: shell
90+
env: CIBW_BUILD="cp38-*"
91+
92+
- name: "Win py35"
93+
os: windows
94+
language: shell
95+
env: CIBW_BUILD="cp35-*"
96+
- name: "Win py36"
97+
os: windows
98+
language: shell
99+
env: CIBW_BUILD="cp36-*"
100+
- name: "Win py37"
101+
os: windows
102+
language: shell
103+
env: CIBW_BUILD="cp37-*"
104+
- name: "Win py38"
105+
os: windows
106+
language: shell
107+
env: CIBW_BUILD="cp38-*"

.zenodo.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"license": "BSD-3-Clause",
3+
"contributors": [
4+
{
5+
"type": "Other",
6+
"name": "Malte Ziebarth"
7+
},
8+
{
9+
"type": "Other",
10+
"name": "Sudipta Basak"
11+
},
12+
{
13+
"type": "Other",
14+
"name": "Matthew Peveler"
15+
},
16+
{
17+
"type": "Other",
18+
"name": "kvanlombeek"
19+
},
20+
{
21+
"type": "Other",
22+
"name": "Will Chang"
23+
},
24+
{
25+
"type": "Other",
26+
"name": "Harry Matchette-Downes"
27+
},
28+
{
29+
"type": "Other",
30+
"name": "Daniel Mej\u00eda Raigosa"
31+
}
32+
],
33+
"language": "eng",
34+
"keywords": [
35+
"kriging",
36+
"ordinary kriging",
37+
"universal kriging",
38+
"external drift kriging",
39+
"regression kriging",
40+
"variogram",
41+
"geostatistics",
42+
"Python",
43+
"GeoStat-Framework"
44+
],
45+
"creators": [
46+
{
47+
"orcid": "0000-0001-7636-3711",
48+
"affiliation": "United State Geological Survey: Golden, CO, US",
49+
"name": "Benjamin Murphy"
50+
},
51+
{
52+
"orcid": "0000-0002-2565-4444",
53+
"affiliation": "Symerio",
54+
"name": "Roman Yurchak"
55+
},
56+
{
57+
"orcid": "0000-0001-9060-4008",
58+
"affiliation": "Helmholtz Centre for Environmental Research - UFZ",
59+
"name": "Sebastian M\u00fcller"
60+
}
61+
]
62+
}

0 commit comments

Comments
 (0)