From 13203740710f04a6fc3ab751f497f6323f9d8aa7 Mon Sep 17 00:00:00 2001 From: Vidar Tonaas Fauske Date: Mon, 22 Feb 2021 14:16:01 +0000 Subject: [PATCH 1/2] fix traitlets 5 comp for docs --- docs/sphinxext/autodoc_traits.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/sphinxext/autodoc_traits.py b/docs/sphinxext/autodoc_traits.py index e9221cf8..4a1c9bbd 100644 --- a/docs/sphinxext/autodoc_traits.py +++ b/docs/sphinxext/autodoc_traits.py @@ -7,8 +7,14 @@ def dict_info(trait): - trait_base = trait._trait - traits = trait._traits + try: + trait_base = trait._value_trait + except AttributeError: + trait_base = trait._trait + try: + traits = trait._per_key_traits + except AttributeError: + traits = trait._traits if traits is None and (trait_base is None or isinstance(trait_base, Any)): value_string = 'elements of any type' From 75ae85d627619988b931b1ee386abaf33b3bcf97 Mon Sep 17 00:00:00 2001 From: Vidar Tonaas Fauske Date: Mon, 22 Feb 2021 14:32:44 +0000 Subject: [PATCH 2/2] Delete .travis.yml --- .travis.yml | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0367e8b9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: python -python: - - 3.9 - - 3.8 - - 3.7 - - 3.6 -sudo: false -dist: xenial -env: - matrix: - - GROUP=python -matrix: - include: - - python: 3.9 - env: GROUP=docs - addons: - apt: - packages: - - pandoc - script: - - python -m pytest_check_links - - cd docs - - make html - - make linkcheck -cache: - pip: true - directories: - - ~/.npm # NPM cache -before_install: - - pip install -U pip setuptools - - nvm install 8 -install: - - pip install --upgrade -e ".[test, examples, docs]" -script: - - py.test -l --nbval-lax --current-env examples