Skip to content

Commit

Permalink
tests: removes example app test
Browse files Browse the repository at this point in the history
* Pins Sphinx<3.0.0 (closes #199)
  • Loading branch information
Glignos committed May 5, 2020
1 parent a3fdd64 commit 950e414
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 289 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ jdk:
python:
- "3.6"
- "3.7"
- "3.8"

matrix:
fast_finish: true
allow_failures:
- env: REQUIREMENTS=devel EXTRAS=all,elasticsearch6 ES_URL=$ES6_DOWNLOAD_URL
- env: REQUIREMENTS=devel EXTRAS=all,elasticsearch7 ES_URL=$ES7_DOWNLOAD_URL
- python: 3.8

before_install:
- "pip uninstall -y six"
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
Changes
=======

Version 1.3.1 (released TBD)

- Set Sphinx ``<3.0.0`` because of errors related to application context.
- Stop using example app, keep only files referenced in the docs.

Version 1.3.0 (released 2020-03-10)

- Centralize dependency management via Invenio-Base.
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ include tests/mock_module/mappings/records/authorities/notajson
include tests/mock_module/mappings/*/records/authorities/notajson
prune docs/_build
recursive-include docs *.bat *.py *.rst *.png *.dot Makefile
recursive-include examples *.json *.py *.sh *.txt
recursive-include examples *.json *.py
recursive-include invenio_search *.py
recursive-include tests *.json *.py *.txt
2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import os

# Plug example application into module path

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down
15 changes: 0 additions & 15 deletions docs/examplesapp.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Invenio-Search.
installation
configuration
usage
examplesapp


API Reference
Expand Down
16 changes: 0 additions & 16 deletions examples/app-fixtures.sh

This file was deleted.

21 changes: 0 additions & 21 deletions examples/app-setup.sh

This file was deleted.

18 changes: 0 additions & 18 deletions examples/app-teardown.sh

This file was deleted.

137 changes: 0 additions & 137 deletions examples/app.py

This file was deleted.

11 changes: 0 additions & 11 deletions examples/requirements.txt

This file was deleted.

5 changes: 2 additions & 3 deletions invenio_search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,8 @@ def index():
You should find only one document - the one with ``Public`` title.
This is a very simple example of how to filter out some records. If you want
to see how to hide some records if the user is not logged in, check out the
:ref:`examplesapp`. If you want to define role based access rights control,
This is a very simple example of how to filter out some records.
If you want to define role based access rights control,
check the invenio-access_ module.
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

extras_require = {
'docs': [
'Sphinx>=1.5.6,<1.6',
'Sphinx>=1.8.4,<3',
'invenio-accounts>=1.0.0',
],
# Elasticsearch version
Expand Down Expand Up @@ -112,10 +112,9 @@
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Development Status :: 5 - Production/Stable',
],
Expand Down
60 changes: 0 additions & 60 deletions tests/test_examples_app.py

This file was deleted.

0 comments on commit 950e414

Please sign in to comment.