File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ build
2+ dist
3+ * .egg-info
4+ * .egg /
5+ * .pyc
6+ * .swp
7+
8+ .tox
9+ .coverage
10+ html /*
11+ __pycache__
12+
13+ ** /.git
14+ ** /.buildozer
15+ ** /. *
Original file line number Diff line number Diff line change 11on :
22 push :
33 tags :
4- - ' *'
4+ - ' disabled *'
55
66jobs :
77 release :
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ tags :
4+ - ' *'
5+
6+ jobs :
7+ docker :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : " actions/checkout@v2"
11+
12+ - name : Set up QEMU
13+ uses : docker/setup-qemu-action@v1
14+
15+ - name : Set up Docker Buildx
16+ uses : docker/setup-buildx-action@v1
17+
18+ - name : Get the version
19+ id : version
20+ run : echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
21+
22+ - name : Update version from tag
23+ env :
24+ VERSION : ${{ steps.version.outputs.VERSION }}
25+ run : |
26+ echo "Version is: ${VERSION}"
27+ test -n "${VERSION}"
28+ echo "__version__ = \"${VERSION}\"" > pythonhere/version_here.py
29+
30+ - name : Login to DockerHub
31+ uses : docker/login-action@v1
32+ with :
33+ username : ${{ secrets.DOCKER_USERNAME }}
34+ password : ${{ secrets.DOCKER_TOKEN }}
35+
36+ - name : Build and push
37+ id : docker_build
38+ uses : docker/build-push-action@v2
39+ with :
40+ context : .
41+ file : ./Dockerfile
42+ push : true
43+ tags : |
44+ "herethere/pythonhere:latest"
45+ "herethere/pythonhere:${{ steps.version.outputs.VERSION }}"
46+
47+ - name : Image digest
48+ run : echo ${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ coverage.xml
2828
2929* .apk
3030key.rsa
31+
32+ docker-compose.yml
33+ work
Original file line number Diff line number Diff line change 1+ FROM jupyter/base-notebook:python-3.8.6
2+
3+ COPY . /src
4+ COPY examples /home/${NB_USER}/examples
5+
6+ RUN cd /src && pip install .[dev,docker]
7+
8+ USER root
9+ RUN cd /home/${NB_USER}/examples && \
10+ jupytext --to ipynb *.md && \
11+ rm *.md && \
12+ chown -R ${NB_USER} \
13+ /usr/local/bin/fix-permissions /home/${NB_USER}/examples &&\
14+ rm -rf /home/${NB_USER}/.cache && \
15+ rm -rf /src
Original file line number Diff line number Diff line change 1+ version: '3'
2+
3+ services:
4+
5+ notebook:
6+ image: herethere/pythonhere:latest
7+ # build: .
8+ ports:
9+ - 8889:8888
10+ # Uncomment and fill in environment, to override values from there.env config
11+ # environment:
12+ # - THERE_HOST=
13+ # - THERE_PORT= 8022
14+ # - THERE_USER=
15+ # - THERE_PASSWORD=
16+ volumes:
17+ - . /work:/home/jovyan/work
Original file line number Diff line number Diff line change 1414 version = main_ns ["__version__" ],
1515 packages = [
1616 "pythonhere" ,
17+ "pythonhere.magic_here" ,
18+ "pythonhere.ui_here" ,
1719 ],
1820 description = "Here is the Kivy based app to run code from the Jupyter magic %there" ,
1921 long_description = long_description ,
3436 "codecov" ,
3537 "docutils" ,
3638 "flake8" ,
39+ "jupytext" ,
3740 "pylint" ,
3841 "pytest" ,
3942 "pytest-asyncio" ,
4043 "pytest-cov" ,
4144 "pytest-mock" ,
4245 ],
46+ "docker" : [
47+ "jupytext==1.7.1"
48+ ]
4349 },
4450 url = "https://github.com/b3b/ipython-pythonhere" ,
4551 # https://pypi.org/classifiers/
4652 classifiers = [
47- "Development Status :: 1 - Planning " ,
53+ "Development Status :: 2 - Pre-Alpha " ,
4854 "Programming Language :: Python :: 3.7" ,
4955 "Programming Language :: Python :: 3.8" ,
5056 ],
You can’t perform that action at this time.
0 commit comments