-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
891 additions
and
599 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
include = *.py | ||
# run_tests.py is generated by conda build, which appears to have a | ||
# bug resulting in code being duplicated a couple of times. | ||
exclude = .git,__pycache__,.tox,.eggs,*.egg,doc,dist,build,_build,.ipynb_checkpoints,run_test.py | ||
ignore = E, | ||
W |
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,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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,5 @@ | ||
# For setuptools_scm with .git_archival.txt | ||
.git_archival.txt export-subst | ||
# Line Endings configuration file for Git | ||
# Set the default behavior, in case people don't have or can't have core.autocrlf set. | ||
* text=auto |
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 |
---|---|---|
|
@@ -20,6 +20,9 @@ on: | |
schedule: | ||
- cron: '0 15 * * SUN' | ||
|
||
env: | ||
PYTHON_VERSION: "3.11" | ||
|
||
jobs: | ||
conda_build_docs: | ||
name: Documentation:conda | ||
|
@@ -34,35 +37,29 @@ jobs: | |
MOZ_HEADLESS: 1 | ||
DISPLAY: ":99.0" | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/[email protected] | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
name: Documentation | ||
python-version: "3.11" | ||
channels: pyviz,conda-forge,nodefaults | ||
envs: "-o doc -o examples -o geo -o graphviz" | ||
cache: true | ||
conda-update: true | ||
auto-update-conda: true | ||
environment-file: envs/py${{ env.PYTHON_VERSION }}-docs.yaml | ||
activate-environment: hvplotdocs | ||
- name: Set and echo git ref | ||
id: vars | ||
run: | | ||
echo "Deploying from ref ${GITHUB_REF#refs/*/}" | ||
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
- name: bokeh sampledata | ||
run: | | ||
conda activate test-environment | ||
bokeh sampledata | ||
run: bokeh sampledata | ||
- name: install dev nbsite | ||
run: | | ||
conda activate test-environment | ||
pip install --pre -U nbsite | ||
run: pip install --pre -U nbsite | ||
- name: conda info | ||
run: conda info | ||
- name: conda list | ||
run: | | ||
conda activate test-environment | ||
conda list | ||
run: conda list | ||
- name: build docs | ||
run: | | ||
conda activate test-environment | ||
sphinx-build -b html doc builtdocs | ||
run: sphinx-build -b html doc builtdocs | ||
- name: report failure | ||
if: failure() | ||
run: cat /tmp/sphinx-*.log | tail -n 100 | ||
|
@@ -106,7 +103,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: install | ||
run: pip install ."[doc, examples, geo]" | ||
- name: install dev nbsite | ||
|
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 |
---|---|---|
|
@@ -90,25 +90,26 @@ jobs: | |
run: | ||
shell: bash -el {0} | ||
steps: | ||
- uses: holoviz-dev/holoviz_tasks/[email protected] | ||
- uses: actions/checkout@v4 | ||
with: | ||
name: unit_test_suite | ||
python-version: ${{ matrix.python-version }} | ||
channel-priority: strict | ||
channels: pyviz/label/dev,conda-forge,nodefaults | ||
envs: "-o examples_tests -o tests -o geo -o graphviz" | ||
cache: ${{ github.event.inputs.cache || github.event.inputs.cache == '' }} | ||
conda-update: true | ||
id: install | ||
- name: doit test_unit | ||
run: | | ||
conda activate test-environment | ||
doit test_unit | ||
- name: test examples | ||
run: | | ||
conda activate test-environment | ||
bokeh sampledata | ||
doit test_examples | ||
fetch-depth: 0 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: true | ||
environment-file: envs/py${{ matrix.python-version }}-tests.yaml | ||
activate-environment: hvplottests | ||
- name: conda info | ||
run: conda info | ||
- name: conda list | ||
run: conda list | ||
- name: bokeh sampledata | ||
run: bokeh sampledata | ||
- name: unit tests | ||
run: pytest -v hvplot --cov=hvplot --cov-append | ||
- name: unit tests geo | ||
run: pytest -v hvplot --geo --cov=hvplot --cov-append | ||
- name: examples tests | ||
run: pytest -n auto --dist loadscope --nbval-lax -p no:python | ||
pip_test: | ||
name: pip tests:${{ matrix.os }}:${{ matrix.python-version }} | ||
needs: [pre_commit, setup] | ||
|
@@ -127,19 +128,23 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: upgrade pip / setuptools | ||
run: pip install -U pip setuptools | ||
- name: install without geo | ||
# Because cartopy cannot be installed on Python 3.8 on these platforms | ||
if: matrix.python-version == '3.8' && contains(fromJSON('["ubuntu-latest", "windows-latest"]'), matrix.os) | ||
run: pip install ."[tests, examples_tests, hvdev]" | ||
run: pip install -ve '.[tests, examples-tests, hvdev]' | ||
- name: install with geo | ||
if: matrix.python-version != '3.8' || !contains(fromJSON('["ubuntu-latest", "windows-latest"]'), matrix.os) | ||
run: pip install ."[tests, examples_tests, geo, hvdev, hvdev_geo]" | ||
run: pip install -ve '.[tests, examples-tests, geo, hvdev, hvdev-geo]' | ||
- name: pip list | ||
run: pip list | ||
- name: bokeh sampledata | ||
run: bokeh sampledata | ||
- name: unit tests | ||
run: pytest -v hvplot --cov=hvplot --cov-append | ||
- name: unit tests geo | ||
run: pytest -v hvplot --geo --cov=hvplot --cov-append | ||
- name: examples tests | ||
run: pytest -n auto --dist loadscope --nbval-lax -p no:python | ||
- name: codecov | ||
|
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 was deleted.
Oops, something went wrong.
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,34 +1,56 @@ | ||
{% set sdata = load_setup_py_data() %} | ||
{% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %} | ||
{% set buildsystem = pyproject['build-system'] %} | ||
{% set project = pyproject['project'] %} | ||
|
||
{% set name = project['name'] %} | ||
{% set version = VERSION %} | ||
|
||
package: | ||
name: hvplot | ||
version: {{ sdata['version'] }} | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
noarch: python | ||
script: python setup.py install --single-version-externally-managed --record=record.txt | ||
|
||
extra: | ||
channels: | ||
- pyviz | ||
- intake | ||
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation | ||
|
||
requirements: | ||
build: | ||
- python {{ sdata['python_requires'] }} | ||
{% for dep in sdata['extras_require']['build'] %} | ||
- python {{ project['requires-python'] }} | ||
- pip | ||
{% for dep in buildsystem['requires'] %} | ||
- {{ dep }} | ||
{% endfor %} | ||
run: | ||
- python {{ sdata['python_requires'] }} | ||
{% for dep in sdata.get('install_requires',{}) %} | ||
- python {{ project['requires-python'] }} | ||
{% for dep in project['dependencies'] %} | ||
- {{ dep }} | ||
{% endfor %} | ||
|
||
test: | ||
requires: | ||
- pip | ||
{% for dep in project['optional-dependencies']['tests-core'] %} | ||
{% if dep == 'dask[dataframe]' %} | ||
- dask | ||
{% else %} | ||
- {{ dep }} | ||
{% endif %} | ||
{% endfor %} | ||
source_files: | ||
- pyproject.toml | ||
imports: | ||
- hvplot | ||
- hvplot.pandas | ||
commands: | ||
- python -c "import hvplot; ver = hvplot.__version__; assert ver != '0.0.0' and ver != 'unknown'" | ||
- pip check | ||
- pytest hvplot | ||
|
||
about: | ||
home: {{ sdata['url'] }} | ||
summary: {{ sdata['description'] }} | ||
license: {{ sdata['license'] }} | ||
home: {{ project['urls']['Homepage'] }} | ||
summary: {{ project['description'] }} | ||
license: {{ project['license']['text'] }} | ||
license_file: LICENSE |
Oops, something went wrong.