Skip to content

Commit

Permalink
Merge branch 'main' into fix_annotators
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jan 5, 2023
2 parents 689788a + ffcbbe7 commit 709dae8
Show file tree
Hide file tree
Showing 31 changed files with 179 additions and 123 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
run: |
sudo rm /usr/local/bin/node
sudo rm /usr/local/bin/npm
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: "100"
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
Expand All @@ -45,7 +45,7 @@ jobs:
run: git fetch --prune --tags --unshallow -f
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: conda setup
run: |
conda config --set always_yes True
Expand Down Expand Up @@ -109,10 +109,10 @@ jobs:
run: |
sudo rm /usr/local/bin/node
sudo rm /usr/local/bin/npm
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: "100"
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: git fetch --prune --tags --unshallow -f
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: conda setup
run: |
conda create -n test-environment
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Deploy main
if: |
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') ||
(github.event_name == 'push' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
(github.event_name == 'push' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
72 changes: 32 additions & 40 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tests
on:
push:
branches:
- master
- main
pull_request:
branches:
- '*'
Expand All @@ -11,88 +11,80 @@ on:
- cron: '0 18 * * SUN'

jobs:
pre_commit:
name: Run pre-commit hooks
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "1"
- name: set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit
uses: pre-commit/[email protected]
test_suite:
name: Pytest on ${{ matrix.os }} with Python ${{ matrix.python-version }}
needs: [pre_commit]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.7', '3.8', '3.9', '3.10']
# Run on the full set on schedule, workflow_dispatch and push&tags events, otherwise on a subset.
python-version: ${{ ( github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || ( github.event_name == 'push' && github.ref_type == 'tag' ) ) && fromJSON('["3.7", "3.8", "3.9", "3.10", "3.11"]') || fromJSON('["3.7", "3.9", "3.11"]') }}
timeout-minutes: 60
defaults:
run:
shell: bash -l {0}
shell: bash -l {0}
env:
DISPLAY: ":99.0"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAMBA_NO_BANNER: 1
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable"
USE_PYGEOS: '0'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "100"
- uses: actions/setup-python@v2
- uses: pyviz-dev/holoviz_tasks/[email protected]
with:
name: unit_test_suite
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow
- name: conda setup
run: |
conda install -n base -c defaults "conda>=4.12"
conda install -n base -c conda-forge mamba --no-update-deps
conda install -c conda-forge "nodejs=15.3.0" --no-update-deps
conda config --prepend channels nodefaults
conda config --prepend channels conda-forge
conda config --prepend channels pyviz/label/dev
conda config --remove channels defaults
conda create -n test-environment python=${{ matrix.python-version }} pyctdev
- name: doit develop_install
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit develop_install -o tests -o examples -o recommended --conda-mode=mamba
channel-priority: strict
channels: pyviz/label/dev,conda-forge,nodefaults
envs: "-o tests -o examples -o recommended"
cache: true
conda-update: true
conda-mamba: mamba
nodejs: true
id: install
- name: patch fiona/geostack on Python 3.7 / Macos
if: contains(matrix.os, 'macos') && matrix.python-version == '3.7'
if: steps.install.outputs.cache-hit != 'true' && contains(matrix.os, 'macos') && matrix.python-version == '3.7'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
mamba install "fiona=1.8" "gdal=3.3"
- name: doit env_capture
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit env_capture
- name: download test data
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
bokeh sampledata
geoviews fetch-data --path=examples
- name: git describe
run: |
git describe
- name: doit test_flakes
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_flakes
- name: doit test_unit
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_unit
- name: test examples
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_examples
- name: codecov
if: github.event_name == 'push'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
codecov
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is the configuration for pre-commit, a local framework for managing pre-commit hooks
# Check out the docs at: https://pre-commit.com/

default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-toml
- id: detect-private-key
- id: end-of-file-fixer
exclude: (\.min\.js$|\.svg$)
- id: trailing-whitespace
exclude: \.svg$
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8 # See 'setup.cfg' for args
args: [geoviews]
files: geoviews/
- repo: https://github.com/hoxbro/clean_notebook
rev: 0.1.5
hooks:
- id: clean-notebook
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Bug fixes:
Compatibility:

- Compatibility with HoloViews 1.14.8 ([#556](https://github.com/holoviz/geoviews/pull/556))
- Compatibility with Python 3.10 by replacing LooseVersion with packaging.Version ([#555](https://github.com/holoviz/geoviews/pull/555))
- Compatibility with Python 3.10 by replacing LooseVersion with packaging.Version ([#555](https://github.com/holoviz/geoviews/pull/555))

Version 1.9.3
=============
Expand Down Expand Up @@ -164,7 +164,7 @@ Bug fixes and minor improvements:
Version 1.6.4
=============

Minor bugfix release. Includes contributions from @philippjfr, @ahuang11, @zassa, and @ceball
Minor bugfix release. Includes contributions from @philippjfr, @ahuang11, @zassa, and @ceball

Bug fixes and minor improvements:

Expand Down Expand Up @@ -241,7 +241,7 @@ Enhancements:

Bug fixes:

- Improved handling of Point geometries in geopandas dataframe ([#204](https://github.com/holoviz/geoviews/pull/204))
- Improved handling of Point geometries in geopandas dataframe ([#204](https://github.com/holoviz/geoviews/pull/204))
- Fixes for projecting draw tool data ([#205](https://github.com/holoviz/geoviews/pull/205))
- Improvements and fixes for handling of QuadMesh projections ([#250](https://github.com/holoviz/geoviews/pull/250))
- Fixes for Image longitude wrapping ([#260](https://github.com/holoviz/geoviews/pull/260))
Expand Down Expand Up @@ -287,8 +287,8 @@ New components:

New features:

- Hover tool now supports displaying geographic coordinates as longitude and latitude ([#158](https://github.com/holoviz/geoviews/pull/158))
- Hover tool now supports displaying geographic coordinates as longitude and latitude ([#158](https://github.com/holoviz/geoviews/pull/158))

- Added a new ``geoviews.tile_sources`` module with a predefined set of tile sources ([#165](https://github.com/holoviz/geoviews/pull/165))

- Wrapped the xESMF library as a regridding and interpolation operation for rectilinear and curvilinear grids ([#127](https://github.com/holoviz/geoviews/pull/127))
Expand Down Expand Up @@ -325,7 +325,7 @@ Version 1.4.0
- Allow specifying WMTS element with just the URL ([#89](https://github.com/holoviz/geoviews/pull/89))
- Added GeoPandas interface to plot geometries more easily ([#88](https://github.com/holoviz/geoviews/pull/88))
- Added further projection operations allowing most geographic element types to be explicitly projected ([#88](https://github.com/holoviz/geoviews/pull/88))
- Enabled MercatorTicker on geographic bokeh plots ensuring axes are labelled with latitudes and longitudes ([#64](https://github.com/holoviz/geoviews/pull/64))
- Enabled MercatorTicker on geographic bokeh plots ensuring axes are labelled with latitudes and longitudes ([#64](https://github.com/holoviz/geoviews/pull/64))



Expand Down
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ include README.md
include geoviews/.version
include geoviews/models/*.ts
include geoviews/icons/*.png
include geoviews/*.json
include geoviews/index.ts
global-exclude *.py[co]
global-exclude *~
global-exclude *.ipynb_checkpoints/*
graft examples
graft geoviews/examples
graft geoviews/dist
graft geoviews/dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| | |
| --- | --- |
| Build Status | [![Linux/MacOS/Windows Build Status](https://github.com/holoviz/geoviews/workflows/pytest/badge.svg)](https://github.com/holoviz/geoviews/actions/workflows/test.yaml) |
| Coverage | [![codecov](https://codecov.io/gh/holoviz/geoviews/branch/master/graph/badge.svg)](https://codecov.io/gh/holoviz/geoviews) |
| Coverage | [![codecov](https://codecov.io/gh/holoviz/geoviews/branch/main/graph/badge.svg)](https://codecov.io/gh/holoviz/geoviews) |
| Latest dev release | [![Github tag](https://img.shields.io/github/tag/holoviz/geoviews.svg?label=tag&colorB=11ccbb)](https://github.com/holoviz/geoviews/tags) [![dev-site](https://img.shields.io/website-up-down-green-red/https/pyviz-dev.github.io/geoviews.svg?label=dev%20website)](https://pyviz-dev.github.io/geoviews/) |
| Latest release | [![Github release](https://img.shields.io/github/release/holoviz/geoviews.svg?label=tag&colorB=11ccbb)](https://github.com/holoviz/geoviews/releases) [![PyPI version](https://img.shields.io/pypi/v/geoviews.svg?colorB=cc77dd)](https://pypi.python.org/pypi/geoviews) [![geoviews version](https://img.shields.io/conda/v/pyviz/geoviews.svg?colorB=4488ff&style=flat)](https://anaconda.org/pyviz/geoviews) [![conda-forge version](https://img.shields.io/conda/v/conda-forge/geoviews.svg?label=conda%7Cconda-forge&colorB=4488ff)](https://anaconda.org/conda-forge/geoviews) [![defaults version](https://img.shields.io/conda/v/anaconda/geoviews.svg?label=conda%7Cdefaults&style=flat&colorB=4488ff)](https://anaconda.org/anaconda/geoviews) |
| Docs | [![gh-pages](https://img.shields.io/github/last-commit/holoviz/geoviews/gh-pages.svg)](https://github.com/holoviz/geoviews/tree/gh-pages) [![site](https://img.shields.io/website-up-down-green-red/http/geoviews.org.svg)](http://geoviews.org) |
Expand Down
2 changes: 1 addition & 1 deletion doc/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ GeoViews is completely open source, available under a BSD license freely for bot

GeoViews is part of the `HoloViz <https://holoviz.org>`_ family of tools. The `holoviz.org <https://holoviz.org>`_ website shows how to use GeoViews together with other libraries to solve complex problems, with detailed tutorials and examples. You can see a variety of projects using GeoViews at `examples.pyviz.org <https://examples.pyviz.org>`_, and you can compare GeoViews to other available tools at `pyviz.org <https://pyviz.org>`_.

If you have any questions or usage issues visit the `GeoViews Discourse <https://discourse.holoviz.org/c/geoviews/>`_ site.
If you have any questions or usage issues visit the `GeoViews Discourse <https://discourse.holoviz.org/c/geoviews/>`_ site.

If you like GeoViews and have built something you want to share, tweet a link or screenshot of your latest creation at @HoloViews, along with any other library you used (@HoloViz_org, @Panel_org, @Datashader, @Bokeh, @Matplotlib, etc.). Thanks!
6 changes: 3 additions & 3 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ will first need to have installed the `dependencies of cartopy <http://scitools.
or else have set up your system to be able to build them.


If you have any `issues <https://github.com/holoviz/geoviews/issues>`_ or wish
to `contribute code <https://help.github.com/articles/about-pull-requests>`_., you can visit
our `GitHub site <https://github.com/holoviz/geoviews>`_ or file a topic on
If you have any `issues <https://github.com/holoviz/geoviews/issues>`_ or wish
to `contribute code <https://help.github.com/articles/about-pull-requests>`_., you can visit
our `GitHub site <https://github.com/holoviz/geoviews>`_ or file a topic on
the `HoloViz Discourse <https://discourse.holoviz.org/>`_.

.. toctree::
Expand Down
30 changes: 15 additions & 15 deletions doc/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Bug fixes:
Compatibility:

- Compatibility with HoloViews 1.14.8 (`#556 <https://github.com/holoviz/geoviews/pull/556>`_)
- Compatibility with Python 3.10 by replacing LooseVersion with packaging.Version (`#555 <https://github.com/holoviz/geoviews/pull/555>`_)
- Compatibility with Python 3.10 by replacing LooseVersion with packaging.Version (`#555 <https://github.com/holoviz/geoviews/pull/555>`_)


Version 1.9.3
Expand Down Expand Up @@ -167,7 +167,7 @@ Bug fixes and minor improvements:
Version 1.6.4
-------------

Minor bugfix release. Includes contributions from @philippjfr, @ahuang11, @zassa, and @ceball
Minor bugfix release. Includes contributions from @philippjfr, @ahuang11, @zassa, and @ceball

Bug fixes and minor improvements:

Expand Down Expand Up @@ -254,7 +254,7 @@ Enhancements:
Bug fixes:


* Improved handling of Point geometries in geopandas dataframe (`#204 <https://github.com/holoviz/geoviews/pull/204>`_)
* Improved handling of Point geometries in geopandas dataframe (`#204 <https://github.com/holoviz/geoviews/pull/204>`_)
* Fixes for projecting draw tool data (`#205 <https://github.com/holoviz/geoviews/pull/205>`_)
* Improvements and fixes for handling of QuadMesh projections (`#250 <https://github.com/holoviz/geoviews/pull/250>`_)
* Fixes for Image longitude wrapping (`#260 <https://github.com/holoviz/geoviews/pull/260>`_)
Expand Down Expand Up @@ -288,37 +288,37 @@ Major feature:
New components:


*
*
Added `Graph element <http://holoviews.org/reference/elements/bokeh/Graph.html>`_ to plot networks of connected nodes (`#115 <https://github.com/holoviz/geoviews/pull/115>`_)

*
*
Added `TriMesh element <http://holoviews.org/reference/elements/bokeh/TriMesh.html>`_ and datashading operation to plot small and large irregular triangular meshes (`#115 <https://github.com/holoviz/geoviews/pull/115>`_)

*
*
Added `QuadMesh element <http://holoviews.org/reference/elements/bokeh/QuadMesh.html>`_ and datashading operation to plot small and large, irregular rectilinear and curvilinear meshes (`#116 <https://github.com/holoviz/geoviews/pull/116>`_)

*
*
Added `VectorField element <http://holoviews.org/reference/elements/bokeh/VectorField.html>`_ and datashading operation to plot small and large quiver plots and other collections of vectors (`#122 <https://github.com/holoviz/geoviews/pull/122>`_)

*
*
Added `HexTiles element <http://holoviews.org/reference/elements/bokeh/HexTiles.html>`_ to plot data binned into a hexagonal grid (`#147 <https://github.com/holoviz/geoviews/pull/147>`_)

*
*
Added `Labels element <http://holoviews.org/reference/elements/bokeh/Labels.html>`_ to plot a large number of text labels at once (as data rather than as annotations) (`#147 <https://github.com/holoviz/geoviews/pull/147>`_)

New features:


*
Hover tool now supports displaying geographic coordinates as longitude and latitude (`#158 <https://github.com/holoviz/geoviews/pull/158>`_)
*
Hover tool now supports displaying geographic coordinates as longitude and latitude (`#158 <https://github.com/holoviz/geoviews/pull/158>`_)

*
*
Added a new ``geoviews.tile_sources`` module with a predefined set of tile sources (`#165 <https://github.com/holoviz/geoviews/pull/165>`_)

*
*
Wrapped the xESMF library as a regridding and interpolation operation for rectilinear and curvilinear grids (`#127 <https://github.com/holoviz/geoviews/pull/127>`_)

*
*
HoloViews operations including ``datashade`` and ``rasterize`` now retain geographic ``crs`` coordinate system (`#118 <https://github.com/holoviz/geoviews/pull/118>`_)

Enhancements:
Expand Down Expand Up @@ -351,7 +351,7 @@ Version 1.4.0
* Allow specifying WMTS element with just the URL (`#89 <https://github.com/holoviz/geoviews/pull/89>`_)
* Added GeoPandas interface to plot geometries more easily (`#88 <https://github.com/holoviz/geoviews/pull/88>`_)
* Added further projection operations allowing most geographic element types to be explicitly projected (`#88 <https://github.com/holoviz/geoviews/pull/88>`_)
* Enabled MercatorTicker on geographic bokeh plots ensuring axes are labelled with latitudes and longitudes (`#64 <https://github.com/holoviz/geoviews/pull/64>`_)
* Enabled MercatorTicker on geographic bokeh plots ensuring axes are labelled with latitudes and longitudes (`#64 <https://github.com/holoviz/geoviews/pull/64>`_)

Version 1.3.2
-------------
Expand Down
Loading

0 comments on commit 709dae8

Please sign in to comment.