diff --git a/.binder/requirements.txt b/.binder/requirements.txt new file mode 100644 index 00000000..6e5cf967 --- /dev/null +++ b/.binder/requirements.txt @@ -0,0 +1,58 @@ +anywidget==0.6.5 ; python_version >= "3.8" and python_version < "4.0" +appnope==0.1.3 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "darwin" +asttokens==2.4.0 ; python_version >= "3.8" and python_version < "4.0" +attrs==23.1.0 ; python_version >= "3.8" and python_version < "4.0" +backcall==0.2.0 ; python_version >= "3.8" and python_version < "4.0" +certifi==2023.7.22 ; python_version >= "3.8" and python_version < "4.0" +click-plugins==1.1.1 ; python_version >= "3.8" and python_version < "4.0" +click==8.1.7 ; python_version >= "3.8" and python_version < "4.0" +cligj==0.7.2 ; python_version >= "3.8" and python_version < "4" +colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" and (sys_platform == "win32" or platform_system == "Windows") +comm==0.1.4 ; python_version >= "3.8" and python_version < "4.0" +contourpy==1.1.1 ; python_version >= "3.8" and python_version < "4.0" +cycler==0.12.1 ; python_version >= "3.8" and python_version < "4.0" +decorator==5.1.1 ; python_version >= "3.8" and python_version < "4.0" +executing==2.0.0 ; python_version >= "3.8" and python_version < "4.0" +fiona==1.9.5 ; python_version >= "3.8" and python_version < "4.0" +fonttools==4.43.1 ; python_version >= "3.8" and python_version < "4.0" +geopandas==0.13.2 ; python_version >= "3.8" and python_version < "4.0" +importlib-metadata==6.8.0 ; python_version >= "3.8" and python_version < "3.10" +importlib-resources==6.1.0 ; python_version >= "3.8" and python_version < "3.10" +ipython==8.12.3 ; python_version >= "3.8" and python_version < "4.0" +ipywidgets==8.1.1 ; python_version >= "3.8" and python_version < "4.0" +jedi==0.19.1 ; python_version >= "3.8" and python_version < "4.0" +jupyterlab-widgets==3.0.9 ; python_version >= "3.8" and python_version < "4.0" +kiwisolver==1.4.5 ; python_version >= "3.8" and python_version < "4.0" +matplotlib-inline==0.1.6 ; python_version >= "3.8" and python_version < "4.0" +matplotlib==3.7.3 ; python_version >= "3.8" and python_version < "4.0" +mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4.0" +numpy==1.24.4 ; python_version >= "3.8" and python_version < "4.0" +packaging==23.2 ; python_version >= "3.8" and python_version < "4.0" +palettable==3.3.3 ; python_version >= "3.8" and python_version < "4.0" +pandas==2.0.3 ; python_version >= "3.8" and python_version < "4.0" +parso==0.8.3 ; python_version >= "3.8" and python_version < "4.0" +pexpect==4.8.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform != "win32" +pickleshare==0.7.5 ; python_version >= "3.8" and python_version < "4.0" +pillow==9.5.0 ; python_version >= "3.8" and python_version < "4.0" +prompt-toolkit==3.0.39 ; python_version >= "3.8" and python_version < "4.0" +psygnal==0.9.4 ; python_version >= "3.8" and python_version < "4.0" +ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform != "win32" +pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "4.0" +pyarrow==13.0.0 ; python_version >= "3.8" and python_version < "4.0" +pygments==2.16.1 ; python_version >= "3.8" and python_version < "4.0" +pyparsing==3.1.1 ; python_version >= "3.8" and python_version < "4.0" +pyproj==3.5.0 ; python_version >= "3.8" and python_version < "4.0" +python-dateutil==2.8.2 ; python_version >= "3.8" and python_version < "4.0" +pytz==2023.3.post1 ; python_version >= "3.8" and python_version < "4.0" +setuptools-scm==8.0.4 ; python_version >= "3.8" and python_version < "4.0" +setuptools==68.2.2 ; python_version >= "3.8" and python_version < "4.0" +shapely==2.0.2 ; python_version >= "3.8" and python_version < "4.0" +six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" +stack-data==0.6.3 ; python_version >= "3.8" and python_version < "4.0" +tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11" +traitlets==5.11.2 ; python_version >= "3.8" and python_version < "4.0" +typing-extensions==4.8.0 ; python_version >= "3.8" and python_version < "4.0" +tzdata==2023.3 ; python_version >= "3.8" and python_version < "4.0" +wcwidth==0.2.8 ; python_version >= "3.8" and python_version < "4.0" +widgetsnbextension==4.0.9 ; python_version >= "3.8" and python_version < "4.0" +zipp==3.17.0 ; python_version >= "3.8" and python_version < "3.10" diff --git a/.github/workflows/build-binder-image.yml b/.github/workflows/build-binder-image.yml new file mode 100644 index 00000000..ab3e0f2a --- /dev/null +++ b/.github/workflows/build-binder-image.yml @@ -0,0 +1,16 @@ +name: Binder +on: + push: + branches: + - main + +jobs: + # https://github.com/jupyterhub/repo2docker-action#cache-builds-on-mybinderorg + Create-MyBinderOrg-Cache: + runs-on: ubuntu-latest + steps: + - name: cache binder build on mybinder.org + uses: jupyterhub/repo2docker-action@2528718b46e73a1a2d1188cfbbad45a36e31a986 + with: + NO_PUSH: true + MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca5eccff..4ee1149d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,6 +48,12 @@ jobs: - name: Run tests run: poetry run pytest + - name: Check binder requirements.txt up to date + if: matrix.python-version == 3.9 + run: | + poetry export -f requirements.txt -o .binder/requirements.txt --without-hashes + git diff --exit-code .binder/requirements.txt || exit 1 + - name: Cache pre-commit virtualenvs uses: actions/cache@v3 if: matrix.python-version == 3.9