Skip to content

Commit

Permalink
Merge 7153595 into c1593b3
Browse files Browse the repository at this point in the history
  • Loading branch information
alizeepace committed Aug 30, 2016
2 parents c1593b3 + 7153595 commit 9342075
Show file tree
Hide file tree
Showing 14 changed files with 248 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ env:

python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "pypy"

matrix:
allow_failures:
- python: pypy

before_install:
- "travis_retry pip install --upgrade pip setuptools py"
Expand All @@ -66,7 +69,7 @@ deploy:
user: lnielsen
password:
secure: NKkEhbA1PBtNvbGffv+qz3h+A26TZE2joC+w6LqJoeLPrZ/jsZX7wacx5+1vjWdcQrxZ6oounZlWmu5JtWYRl+RT2VuRAATheVhfAgJ+HBjtR5VsICv0DN1A26UwNDZyJCpglSuo90hM5d9yRLGYJBDpUbZxshopQnEQv9xtLL2Mtr0EqAwUdGdpJtfQcRbS+DEMArK0sq7DpWxVBIMdrnRynGoDmRTiXR8KfAz07CJcyUEYA+3j1QfXFffqOAzhv21dlOQS9RwVWL0Phs32AI5gWcW2sjoOT64Ey8rpfzXXln6yh5YXgp6+ME5313AEKQq/NLYZY6PXEJJYHKH/PqrpfkGGlahlXuSQxE/hN6q5oV2iUrtk5UQPWRXLKXwCzw3PdyiHfjedvtSxfyEozsxLkPDBBuQnTAdInwwVYGG2fWPhxJiYptmRRRueGrrGYWHXLygfYiLD9C9hsbrzj9/TXFBwCiGnIr1a0SN5acU3JngtFv7Mly7PuPJSaRLwUvDjzT/HX+5/3jAevrsKLPETYcd3gG+S8B75C0wZC6Ga406KNLNxNpE7m8DEMFVanDZlHw5DOaL5dn/z+3uRP5KK3l4Rqg3Ml2ZBFCrFf4dRsle2SEGNbD1ZrVvCcg2MEhV0xW02u3AiKFyTqFe6CiXiAiOQkh13FTTa85wihS4=
distributions: "sdist bdist_wheel"
distributions: "compile_catalog sdist bdist_wheel"
on:
tags: true
python: "2.7"
Expand Down
32 changes: 32 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307, USA.
#
# In applying this license, CERN does not
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.

[main]
host = https://www.transifex.com

[invenio-1.invenio-csl-rest-messages]
file_filter = invenio_csl_rest/translations/<lang>/LC_MESSAGES/messages.po
source_file = invenio_csl_rest/translations/messages.pot
source_lang = en
type = PO
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ include *.sh
include *.txt
include .dockerignore
include .editorconfig
include .tx/config
include LICENSE
include babel.ini
include pytest.ini
recursive-include docs *.bat
recursive-include docs *.py
Expand Down
40 changes: 40 additions & 0 deletions babel.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015, 2016 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307, USA.
#
# In applying this license, CERN does not
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.

# Extraction from Python source files

[python: **.py]
encoding = utf-8

# Extraction from Jinja2 templates

[jinja2: **/templates/**.html]
encoding = utf-8
extensions = jinja2.ext.autoescape, jinja2.ext.with_

# Extraction from JavaScript files

[javascript: **.js]
encoding = utf-8
extract_messages = $._, jQuery._
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
'github_banner': True,
'show_powered_by': False,
'extra_nav_links': {
'invenio-csl-rest@GitHub': 'http://github.com/inveniosoftware/invenio-csl-rest',
'invenio-csl-rest@PyPI': 'http://pypi.python.org/pypi/invenio-csl-rest/',
'invenio-csl-rest@GitHub': 'https://github.com/inveniosoftware/invenio-csl-rest',
'invenio-csl-rest@PyPI': 'https://pypi.python.org/pypi/invenio-csl-rest/',
}
}

Expand Down Expand Up @@ -329,3 +329,6 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}

# Autodoc configuraton.
autoclass_content = 'both'
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: Czech (https://www.transifex.com/inveniosoftware/teams/23537/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/da/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: Danish (https://www.transifex.com/inveniosoftware/teams/23537/da/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: da\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: German (https://www.transifex.com/inveniosoftware/teams/23537/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: Spanish (https://www.transifex.com/inveniosoftware/teams/23537/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: French (https://www.transifex.com/inveniosoftware/teams/23537/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/it/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language-Team: Italian (https://www.transifex.com/inveniosoftware/teams/23537/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20 changes: 20 additions & 0 deletions invenio_csl_rest/translations/messages.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translations template for invenio-csl-rest.
# Copyright (C) 2016 CERN
# This file is distributed under the same license as the invenio-csl-rest
# project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-csl-rest 1.0.0a2.dev20160623\n"
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
"POT-Creation-Date: 2016-08-24 17:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"

23 changes: 20 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016 CERN.
# Copyright (C) 2015, 2016 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
Expand All @@ -22,9 +22,8 @@
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.


[aliases]
test=pytest
test = pytest

[build_sphinx]
source-dir = docs/
Expand All @@ -33,3 +32,21 @@ all_files = 1

[bdist_wheel]
universal = 1

[compile_catalog]
directory = invenio_csl_rest/translations/

[extract_messages]
copyright_holder = CERN
msgid_bugs_address = info@inveniosoftware.org
mapping-file = babel.ini
output-file = invenio_csl_rest/translations/messages.pot
add-comments = NOTE

[init_catalog]
input-file = invenio_csl_rest/translations/messages.pot
output-dir = invenio_csl_rest/translations/

[update_catalog]
input-file = invenio_csl_rest/translations/messages.pot
output-dir = invenio_csl_rest/translations/
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
]

install_requires = [
'Flask>=0.11.1',
'citeproc-py-styles>=0.1.0',
'invenio-rest>=1.0.0a9',
]
Expand Down Expand Up @@ -112,9 +113,9 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Development Status :: 1 - Planning',
],
)

0 comments on commit 9342075

Please sign in to comment.