Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sfwatergit
Flatland
Commits
6e78cdc7
Commit
6e78cdc7
authored
5 years ago
by
u214892
Browse files
Options
Downloads
Patches
Plain Diff
#51 first steps to run examples and notebooks in ci
parent
4145c9ea
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
requirements_continuous_integration.txt
+5
-6
5 additions, 6 deletions
requirements_continuous_integration.txt
requirements_dev.txt
+1
-1
1 addition, 1 deletion
requirements_dev.txt
tox.ini
+36
-1
36 additions, 1 deletion
tox.ini
with
45 additions
and
8 deletions
.gitignore
+
3
−
0
View file @
6e78cdc7
...
...
@@ -71,6 +71,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints
# Jupyter Notebooks converted to python
notebooks/*.py
# PyCharm
.idea/
...
...
This diff is collapsed.
Click to expand it.
requirements_continuous_integration.txt
+
5
−
6
View file @
6e78cdc7
# contains all additional requirements to run the ```tox .``` in addition to requirements_dev.txt for ```tox -e py3
7
,py37```
# contains all additional requirements to run the ```tox .``` in addition to requirements_dev.txt for ```tox -e py3
6
,py37```
bumpversion==0.5.3
wheel==0.32.1
watchdog==0.9.0
benchmarker==4.0.1
coverage==4.5.1
Sphinx==1.8.1
sphinx-rtd-theme==0.4.3
flake8==3.7.7
flake8-eradicate==0.2.0
twine==1.12.1
sphinx-rtd-theme==0.4.3
# see setup.py pycairo==1.18.1
CairoSVG==2.3.1
pydeps==1.7.2
jupyter==1.0.0
git+https://github.com/who8mylunch/Jupyter_Canvas_Widget.git@bd151ae1509c50b5809944dd3294f58b7b069c86
This diff is collapsed.
Click to expand it.
requirements_dev.txt
+
1
−
1
View file @
6e78cdc7
...
...
@@ -9,7 +9,7 @@ recordtype==1.3
xarray==0.11.3
matplotlib==3.0.2
Pillow==5.4.1
#
see setup.py
pycairo==1.18.1
# pycairo==1.18.1
is installed via setup.py since it needs special treatment under Windows
CairoSVG==2.3.1
msgpack==0.6.1
svgutils==0.3.1
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
36
−
1
View file @
6e78cdc7
[tox]
envlist
=
py36, py37, flake8, docs, coverage, benchmark, sh
envlist
=
py36, py37, flake8,
examples,
docs, coverage, benchmark, sh
[travis]
python
=
...
...
@@ -62,6 +62,41 @@ deps =
commands
=
sh
-c
'ls
benchmarks/*.py
|
xargs
-n
1
python'
[testenv:examples]
basepython
=
python
setenv
=
PYTHONPATH
=
{toxinidir}
passenv
=
DISPLAY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
HTTP_PROXY
HTTPS_PROXY
whitelist_externals
=
sh
deps
=
-r{toxinidir}/requirements_dev.txt
commands
=
sh
-c
'ls
examples/*.py
|
xargs
-n
1
python'
[testenv:notebooks]
basepython
=
python
setenv
=
PYTHONPATH
=
{toxinidir}
passenv
=
DISPLAY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
HTTP_PROXY
HTTPS_PROXY
whitelist_externals
=
sh
deps
=
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_continuous_integration.txt
commands
=
sh
-c
'jupyter
nbextension
enable
--py
--sys-prefix
widgetsnbextension'
sh
-c
'jupyter
nbextension
enable
--py
--sys-prefix
jpy_canvas'
; https://stackoverflow.com/questions/35545402/how-to-run-an-ipynb-jupyter-notebook-from-terminal/35545463
sh
-c
'ls
notebooks/*.ipynb
|
xargs
-n
1
jupyter
nbconvert
--to
python'
sh
-c
'ls
notebooks/*.py
|
xargs
-n
1
ipython'
[testenv]
whitelist_externals
=
sh
pip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment