File tree Expand file tree Collapse file tree 7 files changed +20
-14
lines changed
{{cookiecutter.github_project_name}}
{{cookiecutter.python_package_name}}/nbextension Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
+ dist : xenial
3
+ services :
4
+ - xvfb
2
5
python :
3
- - 3.6
6
+ - 3.7
4
7
sudo : false
5
8
addons :
6
9
apt_packages :
@@ -21,8 +24,6 @@ install:
21
24
before_script :
22
25
- |
23
26
export CHROME_BIN=chromium-browser
24
- export DISPLAY=:99.0
25
- sh -e /etc/init.d/xvfb start
26
27
script :
27
28
- py.test
28
29
- npm test
@@ -35,6 +36,8 @@ script:
35
36
- pip uninstall -y ipywidgettestwidgets
36
37
- pip install .
37
38
- jupyter nbextension enable --py --sys-prefix ipywidgettestwidgets
39
+ # Validate nbextension (enable does not use exit code):
40
+ - python -c "from notebook.nbextensions import validate_nbextension; import sys; sys.exit(validate_nbextension('ipywidgettestwidgets/extension') or 0)"
38
41
- pip install jupyterlab
39
42
# Make sure our lab extension was installed.
40
43
- jupyter labextension list
Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
+ - 3.7
3
4
- 3.6
4
5
- 3.5
5
- - 3.4
6
6
sudo : false
7
+ dist : xenial
8
+ services :
9
+ - xvfb
7
10
addons :
8
11
apt_packages :
9
12
- pandoc
@@ -45,8 +48,6 @@ before_script:
45
48
- |
46
49
if [[ $GROUP == js ]]; then
47
50
export CHROME_BIN=chromium-browser
48
- export DISPLAY=:99.0
49
- sh -e /etc/init.d/xvfb start
50
51
fi
51
52
git config --global user.email [email protected]
52
53
git config --global user.name "Travis CI"
Original file line number Diff line number Diff line change 90
90
],
91
91
extras_require = {
92
92
'test' : [
93
- 'pytest' ,
93
+ 'pytest>=3.6 ' ,
94
94
'pytest-cov' ,
95
95
'nbval' ,
96
96
],
Original file line number Diff line number Diff line change 8
8
// Some static assets may be required by the custom widget javascript. The base
9
9
// url for the notebook is not known at build time and is therefore computed
10
10
// dynamically.
11
- ( window as any ) . __webpack_public_path__ = document . querySelector ( 'body' ) ! . getAttribute ( 'data-base-url' ) + 'nbextensions/{{ cookiecutter.npm_package_name }}' ;
11
+ ( window as any ) . __webpack_public_path__ = document . querySelector ( 'body' ) ! . getAttribute ( 'data-base-url' ) + 'nbextensions/{{ cookiecutter.python_package_name }}' ;
12
12
13
13
export * from './index' ;
Original file line number Diff line number Diff line change 13
13
"skipLibCheck" : true ,
14
14
"sourceMap" : true ,
15
15
"strict" : true ,
16
- "target" : " es2015" ,
17
- "types" : [" node" ]
16
+ "target" : " es2015"
18
17
},
19
- "include" : [" src/*" ]
18
+ "include" : [
19
+ " src/**/*.ts" ,
20
+ " src/**/*.tsx" ,
21
+ ]
20
22
}
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ def _jupyter_nbextension_paths():
8
8
return [{
9
9
'section' : 'notebook' ,
10
10
'src' : 'nbextension/static' ,
11
- 'dest' : '{{ cookiecutter.npm_package_name }}' ,
12
- 'require' : '{{ cookiecutter.npm_package_name }}/extension'
11
+ 'dest' : '{{ cookiecutter.python_package_name }}' ,
12
+ 'require' : '{{ cookiecutter.python_package_name }}/extension'
13
13
}]
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ define(function() {
6
6
window [ 'requirejs' ] . config ( {
7
7
map : {
8
8
'*' : {
9
- '{{ cookiecutter.npm_package_name }}' : 'nbextensions/{{ cookiecutter.npm_package_name }}/index' ,
9
+ '{{ cookiecutter.npm_package_name }}' : 'nbextensions/{{ cookiecutter.python_package_name }}/index' ,
10
10
} ,
11
11
}
12
12
} ) ;
You can’t perform that action at this time.
0 commit comments