Skip to content

Commit

Permalink
binder setup (#93)
Browse files Browse the repository at this point in the history
* binder setup

* Update binder reqs
  • Loading branch information
kylebarron authored Oct 13, 2023
1 parent df19ec7 commit 1825245
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions .github/workflows/build-binder-image.yml
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1825245

Please sign in to comment.