-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HoloViz build infrastructure (#50)
- Loading branch information
1 parent
06667b8
commit 8f573fb
Showing
35 changed files
with
326 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,105 @@ | ||
# TODO: | ||
# | ||
# * restore previous sections | ||
language: python | ||
python: | ||
# We don't actually use the Travis Python, but this keeps it organized. | ||
- "3.6" | ||
- "3.7" | ||
install: | ||
- sudo apt-get update | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- source "$HOME/miniconda/etc/profile.d/conda.sh" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda create -q -n test-environment -c conda-forge python=$TRAVIS_PYTHON_VERSION pandas dask numba numpy pyarrow pytest hypothesis scipy shapely geopandas param hilbertcurve | ||
- conda activate test-environment | ||
- python setup.py install | ||
|
||
script: | ||
- pytest tests/ | ||
|
||
sudo: false | ||
os: | ||
- linux | ||
|
||
dist: xenial | ||
|
||
env: | ||
global: | ||
- CHANS_DEV="-c pyviz/label/dev" | ||
- CHANS_REL="-c pyviz" | ||
- LABELS_DEV="--label dev" | ||
- LABELS_REL="--label dev --label main" | ||
- PKG_TEST_PYTHON="--test-python=py36" | ||
# conda build fills up travis /tmp (tmpfs) | ||
- TMPDIR=$HOME/tmp | ||
- PYPI="https://upload.pypi.org/legacy/" | ||
- PYTHON_VERSION=3.6 | ||
- OPTS="-o tests -o examples" | ||
|
||
# quick hack to determine what tag is (improvements welcomed) | ||
# release: ^v(\d+|\.)*[^a-z]\d*$ | ||
# dev release: ^v(\d+|\.)*[a-z]\d*$ | ||
|
||
stages: | ||
- test | ||
- name: conda_dev_package | ||
if: tag =~ ^v(\d+|\.)+([a-z]|rc)\d+$ | ||
- name: pip_dev_package | ||
if: tag =~ ^v(\d+|\.)+([a-z]|rc)\d+$ | ||
- name: conda_package | ||
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$ | ||
- name: pip_package | ||
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$ | ||
|
||
jobs: | ||
include: | ||
|
||
########## DEVELOPER INSTALL ########## | ||
|
||
- &default | ||
stage: test | ||
env: DESC="dev test_all" | ||
before_install: | ||
# install doit/pyctdev and use to install miniconda... | ||
- pip install pyctdev && doit miniconda_install && pip uninstall -y doit pyctdev | ||
- export PATH="$HOME/miniconda/bin:$PATH" && hash -r | ||
- conda config --set always_yes True | ||
# ...and now install doit/pyctdev into miniconda | ||
- conda install -c pyviz "pyctdev>=0.5" && doit ecosystem_setup | ||
install: | ||
- doit env_create $CHANS_DEV --python=$PYTHON_VERSION --name=$PYTHON_VERSION | ||
- source activate $PYTHON_VERSION | ||
- doit develop_install $CHANS_DEV $OPTS | ||
- pip install hilbertcurve | ||
- doit env_capture | ||
script: | ||
- doit test_all | ||
after_success: codecov | ||
|
||
# test using python 3.7 | ||
- <<: *default | ||
env: PYTHON_VERSION=3.7 | ||
script: | ||
- doit test_all | ||
|
||
########## END-USER PACKAGES ########## | ||
|
||
## dev packages | ||
|
||
- &pip_pkg | ||
<<: *default | ||
stage: pip_dev_package | ||
env: PYPI=testpypi PYPIUSER=$TPPU PYPIPASS=$TPPP TRAVIS_NOCACHE=$TRAVIS_JOB_ID | ||
install: | ||
- doit env_create $CHANS_DEV --python=$PYTHON_VERSION | ||
- source activate test-environment | ||
- doit develop_install $CHANS_DEV -o tests | ||
- doit pip_on_conda | ||
- doit ecosystem=pip package_build --test-python=py36 --test-group=unit | ||
script: doit ecosystem=pip package_upload -u $PYPIUSER -p $PYPIPASS --pypi ${PYPI} | ||
|
||
- &conda_pkg | ||
<<: *default | ||
stage: conda_dev_package | ||
env: DESC="" LABELS=$LABELS_DEV CHANS=$CHANS_DEV TRAVIS_NOCACHE=$TRAVIS_JOB_ID | ||
install: doit package_build $CHANS $PKG_TEST_PYTHON --test-group=all | ||
script: doit package_upload --token=$CONDA_UPLOAD_TOKEN $LABELS | ||
|
||
## release packages | ||
|
||
- <<: *pip_pkg | ||
env: PYPI=pypi PYPIUSER=$PPU PYPIPASS=$PPP TRAVIS_NOCACHE=$TRAVIS_JOB_ID | ||
stage: pip_package | ||
|
||
- <<: *conda_pkg | ||
stage: conda_package | ||
env: DESC="" LABELS=$LABELS_REL CHANS=$CHANS_REL TRAVIS_NOCACHE=$TRAVIS_JOB_ID | ||
|
||
notifications: | ||
email: false |
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,14 @@ | ||
import os | ||
if "PYCTDEV_ECOSYSTEM" not in os.environ: | ||
os.environ["PYCTDEV_ECOSYSTEM"] = "conda" | ||
|
||
from pyctdev import * # noqa: api | ||
|
||
def task_pip_on_conda(): | ||
"""Experimental: provide pip build env via conda""" | ||
return {'actions':[ | ||
# some ecosystem=pip build tools must be installed with conda when using conda... | ||
'conda install -y pip twine wheel', | ||
# ..and some are only available via conda-forge | ||
'conda install -y -c conda-forge tox virtualenv', | ||
]} |
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,6 @@ | ||
[build-system] | ||
requires = [ | ||
"param >=1.7.0", | ||
"pyct >=0.4.4", | ||
"setuptools >=30.3.0" | ||
] |
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
from .polygon import Polygon, PolygonArray, PolygonDtype | ||
from .multipolygon import MultiPolygon, MultiPolygonArray, MultiPolygonDtype | ||
from .line import Line, LineArray, LineDtype | ||
from .multiline import MultiLine, MultiLineArray, MultiLineDtype | ||
from .multipoint import MultiPoint, MultiPointArray, MultiPointDtype | ||
from .ring import Ring, RingArray, RingDtype | ||
from .point import Point, PointArray, PointDtype | ||
from .base import Geometry, GeometryArray, GeometryDtype, to_geometry_array | ||
from .polygon import Polygon, PolygonArray, PolygonDtype # noqa | ||
from .multipolygon import ( # noqa | ||
MultiPolygon, MultiPolygonArray, MultiPolygonDtype | ||
) | ||
from .line import Line, LineArray, LineDtype # noqa | ||
from .multiline import ( # noqa | ||
MultiLine, MultiLineArray, MultiLineDtype | ||
) | ||
from .multipoint import ( # noqa | ||
MultiPoint, MultiPointArray, MultiPointDtype | ||
) | ||
from .ring import Ring, RingArray, RingDtype # noqa | ||
from .point import Point, PointArray, PointDtype # noqa | ||
from .base import ( # noqa | ||
Geometry, GeometryArray, GeometryDtype, to_geometry_array | ||
) |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
from .parquet import read_parquet, read_parquet_dask, to_parquet, to_parquet_dask | ||
from .parquet import ( # noqa | ||
read_parquet, read_parquet_dask, to_parquet, to_parquet_dask | ||
) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
from .rtree import HilbertRtree | ||
from .rtree import HilbertRtree # noqa |
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 12 additions & 8 deletions
20
.../geometry/algorithms/test_intersection.py → .../geometry/algorithms/test_intersection.py
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
4 changes: 3 additions & 1 deletion
4
tests/geometry/algorithms/test_measures.py → ...ests/geometry/algorithms/test_measures.py
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
File renamed without changes.
Oops, something went wrong.