From fd407657cd2c7c327c5a3016f52224344c515140 Mon Sep 17 00:00:00 2001 From: Lars Holm Nielsen Date: Sat, 24 Oct 2015 14:17:18 +0200 Subject: [PATCH] installation: entry points addition * Adds entry point for Invenio-Base to discover package. Signed-off-by: Lars Holm Nielsen --- .travis.yml | 10 ++++++++++ misc/header.py | 23 ----------------------- misc/header.rst | 22 ---------------------- setup.py | 11 +++++++---- 4 files changed, 17 insertions(+), 49 deletions(-) delete mode 100644 misc/header.py delete mode 100644 misc/header.rst diff --git a/.travis.yml b/.travis.yml index b2bf785..c6c66af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,3 +60,13 @@ script: after_success: - coveralls + +deploy: + provider: pypi + user: lnielsen + password: + secure: bq7e+gGhAXaKBnXfsbJfZw4TNbCY7ZgS6aUn5WSGWdLTFrJoDyCVUiMYxfk4VaEsEk6M0oVyETKN2bKtWLzKcBEkK/8wIDLFFg2+hXAS84Wh4Sjp/DqEhAJTm5TfQrQuEman1bJMsu5TrG4RtUA8eDxzq2vGzqdp5PNV4BOWup/BClrnuJec22WcfZ3tMSuhKRq3QCFqCWRMZfBfMiVHhf0XYs8L8t+epJnpVdVvwJOud3VlmNI0UFHsHIT/Rgp3NLxVO6oXLT+PjOadKWq75NO/rsPyPbQ9Ys1zeSyO8Of91VpG4cXD2fWnmul0L3PmR6ozaae+5SNGXJQ7AAtuF2byQHwkiNKEfIdrsPrAhOPw6dZCHyEmDVUjp7TaLD9N2rGrjid7Hhr8PdItrQa3hV3kh6+zzz09qQnGrhHxYsx+kRS0xHGSCjXhbC5/ZkhEtC78dr1ykpbGkb/kQdG+ZQIVdyRcPeuwzaRS3kF00Pb0Jn9Z2E649jBNUtgzx5g9ghzFAHcwVjGlwijFBQJ67noZqg+8kYYO+PqI2/7bBFmUk6+Fq7oaziV5rr8K+0Z31z4ZalCqeSHe1/nfgqzubLDHZO3ZCvL0S65C4xfBnHcR7mYIIpMiLh6hFQCUh4s1oWPRdGi4xbRA2EHN1ikIXXwmdXDVwTBVlE9RPVjg46A= + distributions: "sdist bdist_wheel" + on: + tags: true + python: "2.7" diff --git a/misc/header.py b/misc/header.py deleted file mode 100644 index f654a0a..0000000 --- a/misc/header.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of Invenio. -# Copyright (C) 2015 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. diff --git a/misc/header.rst b/misc/header.rst deleted file mode 100644 index dac5bd6..0000000 --- a/misc/header.rst +++ /dev/null @@ -1,22 +0,0 @@ -.. - This file is part of Invenio. - Copyright (C) 2015 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. diff --git a/setup.py b/setup.py index c036416..f33e937 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ 'check-manifest>=0.25', 'coverage>=4.0', 'isort>=4.2.2', - 'pep257>=0.6.0', + 'pep257>=0.7.0', 'pytest-cache>=1.0', 'pytest-cov>=1.8.0', 'pytest-pep8>=1.0.6', @@ -46,7 +46,7 @@ extras_require = { 'docs': [ - "Sphinx>=1.3", + 'Sphinx>=1.3', ], 'tests': tests_require, } @@ -121,8 +121,11 @@ def run_tests(self): include_package_data=True, platforms='any', entry_points={ - "invenio_i18n.translations": [ - "messages = invenio_i18n" + 'invenio_base.apps': [ + 'invenio_i18n = invenio_i18n:InvenioI18N', + ], + 'invenio_i18n.translations': [ + 'messages = invenio_i18n' ], }, extras_require=extras_require,