Skip to content

Commit

Permalink
Merge pull request #516 from martinRenou/fix_build
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
minrk authored Mar 29, 2019
2 parents 6e8e7b8 + bbbdfbb commit 8b20889
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down
16 changes: 16 additions & 0 deletions traitlets/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 8b20889

Please sign in to comment.