Skip to content

Commit c2a5f20

Browse files
author
Scott Sanderson
authored
Merge pull request #72 from quantopian/update-jupyter-versions
MAINT: Update supported IPython/Notebook versions.
2 parents 5fad3f6 + cf925b4 commit c2a5f20

13 files changed

+203
-67
lines changed

.travis.yml

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
language: python
22
sudo: false
33

4-
python:
5-
- "2.7"
6-
- "3.5"
7-
- "3.6"
8-
env:
9-
- NB_VERSION=4
10-
- NB_VERSION=5
11-
- FLAKE8=true NB_VERSION=5
12-
- NOTEST=true NB_VERSION=5
4+
jobs:
5+
include:
6+
- name: "Python 2.7 - Notebook 5 Tests"
7+
python: "2.7"
8+
env:
9+
- TOXENV=py27-notebook5
10+
- name: "Python 3.5 - Notebook 5 Tests"
11+
python: "3.5"
12+
env:
13+
- TOXENV=py35-notebook5
14+
- name: "Python 3.6 - Notebook 5 Tests"
15+
python: "3.6"
16+
env:
17+
- TOXENV=py36-notebook5
18+
- name: "Python 3.5 - Notebook 6 Tests"
19+
python: "3.5"
20+
env:
21+
- TOXENV=py35-notebook6
22+
- name: "Python 3.6 - Notebook 6 Tests"
23+
python: "3.6"
24+
env:
25+
- TOXENV=py36-notebook6
26+
- name: "Check [tests] deps not required"
27+
python: "3.5"
28+
env:
29+
- TOXENV=notest
30+
- name: "Flake8"
31+
python: "3.5"
32+
env:
33+
- TOXENV=flake8
1334

1435
services:
1536
- postgresql
@@ -21,11 +42,7 @@ install:
2142
- pip install tox
2243

2344
script:
24-
- if [[ $TRAVIS_PYTHON_VERSION = '2.7' ]]; then tox -e py27-notebook$NB_VERSION; fi
25-
- if [[ $TRAVIS_PYTHON_VERSION = '3.5' ]]; then tox -e py35-notebook$NB_VERSION; fi
26-
- if [[ $TRAVIS_PYTHON_VERSION = '3.6' ]]; then tox -e py36-notebook$NB_VERSION; fi
27-
- if [[ $FLAKE8 = 'true' ]]; then tox -e notest; fi
28-
- if [[ $NOTEST = 'true' ]]; then tox -e flake8; fi
45+
- tox
2946

3047
branches:
3148
only:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Getting Started
99
---------------
1010
**Prerequisites:**
1111
- Write access to an empty `PostgreSQL <http://www.postgresql.org>`_ database.
12-
- A Python installation with `Jupyter Notebook <https://github.com/jupyter/notebook>`_ >= 4.0.
12+
- A Python installation with `Jupyter Notebook <https://github.com/jupyter/notebook>`_ >= 5.0.
1313

1414
**Installation:**
1515

notebook4_constraints.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

notebook5_constraints.txt

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,73 @@
1-
notebook<6
1+
alembic==1.3.2
2+
attrs==19.3.0
3+
backports-abc==0.5
4+
backports.shutil-get-terminal-size==1.0.0
5+
bleach==3.1.0
6+
certifi==2019.11.28
7+
cffi==1.13.2
8+
chardet==3.0.4
9+
Click==7.0
10+
configparser==4.0.2
11+
contextlib2==0.6.0.post1
12+
cryptography==2.8
13+
decorator==4.4.1
14+
defusedxml==0.6.0
15+
entrypoints==0.3
16+
enum34==1.1.6
17+
flake8==3.7.9
18+
funcsigs==1.0.2
19+
functools32==3.2.3.post2
20+
futures==3.3.0
21+
idna==2.8
22+
importlib-metadata==1.3.0
23+
ipaddress==1.0.23
24+
ipykernel==4.10.1
25+
ipython==5.8.0
26+
ipython-genutils==0.2.0
27+
Jinja2==2.10.3
28+
jsonschema==3.2.0
29+
jupyter-client==5.3.4
30+
jupyter-core==4.6.1
31+
Mako==1.1.0
32+
MarkupSafe==1.1.1
33+
mccabe==0.6.1
34+
mistune==0.8.4
35+
mock==3.0.5
36+
more-itertools==5.0.0
37+
nbconvert==5.6.1
38+
nbformat==4.4.0
39+
nose==1.3.7
40+
nose-ignore-docstring==0.2
41+
notebook==5.7.8
42+
pandocfilters==1.4.2
43+
pathlib2==2.3.5
44+
pexpect==4.7.0
45+
pickleshare==0.7.5
46+
prometheus-client==0.7.1
47+
prompt-toolkit==1.0.18
48+
psycopg2==2.8.4
49+
ptyprocess==0.6.0
50+
pycodestyle==2.5.0
51+
pycparser==2.19
52+
pyflakes==2.1.1
53+
Pygments==2.5.2
54+
pyrsistent==0.15.6
55+
python-dateutil==2.8.1
56+
python-editor==1.0.4
57+
pyzmq==18.1.1
58+
requests==2.22.0
59+
scandir==1.10.0
60+
Send2Trash==1.5.0
61+
simplegeneric==0.8.1
62+
singledispatch==3.4.0.3
63+
six==1.13.0
64+
SQLAlchemy==1.3.12
65+
terminado==0.8.3
66+
testpath==0.4.4
67+
tornado==5.1.1
68+
traitlets==4.3.3
69+
typing==3.7.4.1
70+
urllib3==1.25.7
71+
wcwidth==0.1.7
72+
webencodings==0.5.1
73+
zipp==0.6.0

notebook6_constraints.txt

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
alembic==1.3.2
2+
attrs==19.3.0
3+
backcall==0.1.0
4+
bleach==3.1.0
5+
certifi==2019.11.28
6+
cffi==1.13.2
7+
chardet==3.0.4
8+
Click==7.0
9+
cryptography==2.8
10+
decorator==4.4.1
11+
defusedxml==0.6.0
12+
entrypoints==0.3
13+
flake8==3.7.9
14+
idna==2.8
15+
importlib-metadata==1.3.0
16+
ipykernel==5.1.3
17+
ipython==7.9.0
18+
ipython-genutils==0.2.0
19+
jedi==0.15.2
20+
Jinja2==2.10.3
21+
jsonschema==3.2.0
22+
jupyter-client==5.3.4
23+
jupyter-core==4.6.1
24+
Mako==1.1.0
25+
MarkupSafe==1.1.1
26+
mccabe==0.6.1
27+
mistune==0.8.4
28+
mock==3.0.5
29+
more-itertools==8.0.2
30+
nbconvert==5.6.1
31+
nbformat==4.4.0
32+
nose==1.3.7
33+
nose-ignore-docstring==0.2
34+
notebook==6.0.2
35+
pandocfilters==1.4.2
36+
parso==0.5.2
37+
pexpect==4.7.0
38+
pickleshare==0.7.5
39+
prometheus-client==0.7.1
40+
prompt-toolkit==2.0.10
41+
psycopg2==2.8.4
42+
ptyprocess==0.6.0
43+
pycodestyle==2.5.0
44+
pycparser==2.19
45+
pyflakes==2.1.1
46+
Pygments==2.5.2
47+
pyrsistent==0.15.6
48+
python-dateutil==2.8.1
49+
python-editor==1.0.4
50+
pyzmq==18.1.1
51+
requests==2.22.0
52+
Send2Trash==1.5.0
53+
six==1.13.0
54+
SQLAlchemy==1.3.12
55+
terminado==0.8.3
56+
testpath==0.4.4
57+
tornado==6.0.3
58+
traitlets==4.3.3
59+
urllib3==1.25.7
60+
wcwidth==0.1.7
61+
webencodings==0.5.1
62+
zipp==0.6.0

pgcontents/tests/test_hybrid_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
join as osjoin,
1212
)
1313
from posixpath import join as pjoin
14+
from unittest import TestCase
1415

1516
from six import (
1617
iteritems,
1718
itervalues,
1819
)
19-
from unittest import TestCase
2020
from IPython.utils.tempdir import TemporaryDirectory
21+
from notebook.services.contents.tests.test_manager import TestContentsManager
22+
from notebook.services.contents.tests.test_contents_api import APITest
2123

2224
from pgcontents.hybridmanager import HybridContentsManager
2325
from pgcontents.pgmanager import PostgresContentsManager
@@ -29,7 +31,7 @@
2931
remigrate_test_schema,
3032
TEST_DB_URL,
3133
)
32-
from ..utils.ipycompat import APITest, FileContentsManager, TestContentsManager
34+
from ..utils.ipycompat import FileContentsManager
3335

3436

3537
setup_module = remigrate_test_schema

pgcontents/tests/test_pgcontents_api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from six import iteritems
2525

2626
from IPython.utils.tempdir import TemporaryDirectory
27+
from notebook.services.contents.tests.test_contents_api import APITest
28+
from notebook.tests.launchnotebook import assert_http_error
2729
from requests import HTTPError
2830

2931
from ..constants import UNLIMITED
@@ -50,8 +52,11 @@
5052
TEST_DB_URL,
5153
)
5254
from ..utils.ipycompat import (
53-
APITest, Config, FileContentsManager, GenericFileCheckpoints, to_os_path,
54-
assert_http_error)
55+
Config,
56+
FileContentsManager,
57+
GenericFileCheckpoints,
58+
to_os_path,
59+
)
5560
from ..utils.sync import walk, walk_dirs
5661

5762

pgcontents/tests/test_pgmanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from cryptography.fernet import Fernet
2222
from itertools import combinations
2323

24+
from notebook.services.contents.tests.test_manager import TestContentsManager
25+
2426
from pgcontents.pgmanager import PostgresContentsManager
2527
from .utils import (
2628
assertRaisesHTTPError,
@@ -31,7 +33,6 @@
3133
remigrate_test_schema,
3234
)
3335
from ..crypto import FernetEncryption
34-
from ..utils.ipycompat import TestContentsManager
3536
from ..utils.sync import walk_files_with_content
3637

3738
setup_module = remigrate_test_schema

pgcontents/utils/ipycompat.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
"""
22
Utilities for managing compat between notebook versions.
33
"""
4-
import notebook
5-
if notebook.version_info[0] >= 6: # noqa
6-
raise ImportError("Jupyter Notebook versions 6 and up are not supported.")
7-
84
from traitlets.config import Config
95
from notebook.services.contents.checkpoints import (
106
Checkpoints,
@@ -15,13 +11,6 @@
1511
GenericFileCheckpoints
1612
)
1713
from notebook.services.contents.manager import ContentsManager
18-
from notebook.services.contents.tests.test_manager import (
19-
TestContentsManager
20-
)
21-
from notebook.services.contents.tests.test_contents_api import (
22-
APITest
23-
)
24-
from notebook.tests.launchnotebook import assert_http_error
2514
from notebook.utils import to_os_path
2615
from nbformat import from_dict, reads, writes
2716
from nbformat.v4.nbbase import (
@@ -43,9 +32,7 @@
4332

4433

4534
__all__ = [
46-
'APITest',
4735
'Any',
48-
'assert_http_error',
4936
'Bool',
5037
'Checkpoints',
5138
'Config',
@@ -57,7 +44,6 @@
5744
'HasTraits',
5845
'Instance',
5946
'Integer',
60-
'TestContentsManager',
6147
'Unicode',
6248
'from_dict',
6349
'new_code_cell',

requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)