diff --git a/.tx/config b/.tx/config index dbc8bf3..7d95f58 100644 --- a/.tx/config +++ b/.tx/config @@ -6,23 +6,6 @@ # modify it under the terms of the MIT License; see LICENSE file for more # details. -# TODO: Transifex integration -# -# 1) Create message catalog: -# $ python setup.py extract_messages -# $ python setup.py init_catalog -l -# $ python setup.py compile_catalog -# 2) Ensure project has been created on Transifex under the inveniosoftware -# organisation. -# 3) Install the transifex-client -# $ pip install transifex-client -# 4) Push source (.pot) and translations (.po) to Transifex -# $ tx push -s -t -# 5) Pull translations for a single language from Transifex -# $ tx pull -l -# 6) Pull translations for all languages from Transifex -# $ tx pull -a - [main] host = https://www.transifex.com diff --git a/MANIFEST.in b/MANIFEST.in index 818c013..a804211 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,14 +6,6 @@ # modify it under the terms of the MIT License; see LICENSE file for more # details. -# TODO: Generate this manifest file by running the following commands: -# (please sort the lines in this file after running below commands) -# -# git init -# git add -A -# pip install -e .[all] -# check-manifest -u - include .dockerignore include .editorconfig include .tx/config diff --git a/invenio_theme_tugraz/views.py b/invenio_theme_tugraz/views.py index 7e556cb..8216ed7 100644 --- a/invenio_theme_tugraz/views.py +++ b/invenio_theme_tugraz/views.py @@ -8,9 +8,6 @@ """invenio module for TUGRAZ theme.""" -# TODO: This is an example file. Remove it if you do not need it, including -# the templates and static folders as well as the test case. - from flask import Blueprint, render_template from flask_babelex import gettext as _ @@ -29,5 +26,4 @@ def index(): """Render frontpage view.""" return render_template( "invenio_theme_tugraz/index.html", - module_name=_('invenio-theme-tugraz'), records=FrontpageRecordsSearch()[:10].sort('-_created').execute(),) diff --git a/run-tests.sh b/run-tests.sh index cd0619c..09125cd 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -8,7 +8,7 @@ # details. pydocstyle invenio_theme_tugraz tests docs && \ -isort -rc -c -df && \ +isort --check-only --diff && \ check-manifest --ignore ".travis-*" && \ sphinx-build -qnNW docs docs/_build/html && \ python setup.py test diff --git a/setup.py b/setup.py index 2128e88..3d86f9d 100644 --- a/setup.py +++ b/setup.py @@ -16,13 +16,6 @@ readme = open('README.rst').read() history = open('CHANGES.rst').read() tests_require = [ - 'check-manifest>=0.25', - # coverage pinned because of https://github.com/nedbat/coveragepy/issues/716 - 'coverage>=4.0,<5.0.0', - 'isort>=4.3.3, <5.0.0', - 'pydocstyle>=2.0.0', - 'pytest-cov>=2.5.1', - 'pytest-pep8>=1.0.6', 'pytest-invenio>=1.3.2', ] @@ -100,18 +93,6 @@ setup( 'invenio_config.module': [ 'invenio_theme_tugraz = invenio_theme_tugraz.config', ], - - # TODO: Edit these entry points to fit your needs. - # 'invenio_access.actions': [], - # 'invenio_admin.actions': [], - # 'invenio_assets.bundles': [], - # 'invenio_base.api_apps': [], - # 'invenio_base.api_blueprints': [], - # 'invenio_base.blueprints': [], - # 'invenio_celery.tasks': [], - # 'invenio_db.models': [], - # 'invenio_pidstore.minters': [], - # 'invenio_records.jsonresolver': [], }, extras_require=extras_require, install_requires=install_requires, @@ -129,6 +110,6 @@ setup( 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', - 'Development Status :: 1 - Planning', + 'Development Status :: 3 - Alpha', ], ) diff --git a/tests/test_invenio_theme_tugraz.py b/tests/test_invenio_theme_tugraz.py index f72742e..462cbbd 100644 --- a/tests/test_invenio_theme_tugraz.py +++ b/tests/test_invenio_theme_tugraz.py @@ -30,10 +30,3 @@ def test_init(): assert 'invenio-theme-tugraz' not in app.extensions ext.init_app(app) assert 'invenio-theme-tugraz' in app.extensions - - -# def test_view(base_client): - # """Test view.""" - # res = base_client.get("/") - # assert res.status_code == 200 - # assert 'Welcome to invenio-theme-tugraz' in str(res.data)