From 34c38a7bc50b202ad35858469e037d19fabc6d07 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 29 Mar 2019 11:44:44 +0100 Subject: [PATCH 1/3] Try fixing build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8ac356aa..980ba37a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ sudo: false install: - pip install --upgrade pip - pip install . - - pip install --pre --upgrade traitlets[test] pytest-cov codecov pytest-warnings + - pip install --pre --upgrade traitlets[test] pytest pytest-cov codecov - test -z ${TEST_DEPS} || pip install --upgrade ${TEST_DEPS} script: From 6cebe10ff3f76b10f108761209bd5757f585e541 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 29 Mar 2019 16:06:18 +0100 Subject: [PATCH 2/3] exclude selenium tests from notebook --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 980ba37a..d7c928f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ matrix: - python: 3.6 env: - TEST_DEPS=notebook[test] - - TEST="nosetests notebook" + - TEST="nosetests --exclude selenium notebook" - python: 3.6 env: - TEST_DEPS=ipywidgets[test] From bbbdfbbf57d06487e3acd54d954fe512e5d1b693 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 29 Mar 2019 16:07:55 +0100 Subject: [PATCH 3/3] publish deprecated Sentinel this was accidentially published before, we can't un-publish it now since that's a breakage but publish with a deprecation warning --- traitlets/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/traitlets/__init__.py b/traitlets/__init__.py index b609adb5..09b93fe3 100644 --- a/traitlets/__init__.py +++ b/traitlets/__init__.py @@ -1,3 +1,19 @@ +from warnings import warn + +from . import traitlets from .traitlets import * from .utils.importstring import import_item from ._version import version_info, __version__ + + +class Sentinel(traitlets.Sentinel): + def __init__(self, *args, **kwargs): + super(Sentinel, self).__init__(*args, **kwargs) + warn( + """ + Sentinel is not a public part of the traitlets API. + It was published by mistake, and may be removed in the future. + """, + DeprecationWarning, + stacklevel=2, + )