mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
17
.tx/config
17
.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 <lang>
|
||||
# $ 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 <lang>
|
||||
# 6) Pull translations for all languages from Transifex
|
||||
# $ tx pull -a
|
||||
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(),)
|
||||
|
||||
@@ -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
|
||||
|
||||
21
setup.py
21
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',
|
||||
],
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user