rename /locale/ to /inventory_locales/ and include it in package

pull/15/head v0.3.1
JensDiemer 2020-10-26 19:25:30 +01:00
rodzic 8dca7383ce
commit 3951e31a2e
10 zmienionych plików z 35 dodań i 16 usunięć

Wyświetl plik

@ -189,6 +189,8 @@ Nothing, yet ;)
* [[https://github.com/jedie/PyInventory/compare/v0.2.0...master|compare v0.2.0...master]] **dev**
** tbc
* [[https://github.com/jedie/PyInventory/compare/v0.3.0...v0.3.1|v0.3.1 - 26.10.2020]]
** Bugfix missing translations
* [[https://github.com/jedie/PyInventory/compare/v0.2.0...v0.3.0|v0.3.0 - 26.10.2020]]
** setup production usage:
*** Use [[https://caddyserver.com/|caddy server]] as reverse proxy

Wyświetl plik

@ -247,6 +247,10 @@ history
* tbc
* `v0.3.1 - 26.10.2020 <https://github.com/jedie/PyInventory/compare/v0.3.0...v0.3.1>`_
* Bugfix missing translations
* `v0.3.0 - 26.10.2020 <https://github.com/jedie/PyInventory/compare/v0.2.0...v0.3.0>`_
* setup production usage:
@ -318,4 +322,4 @@ donation
------------
``Note: this file is generated from README.creole 2020-10-26 17:56:17 with "python-creole"``
``Note: this file is generated from README.creole 2020-10-26 19:26:06 with "python-creole"``

Wyświetl plik

@ -4,7 +4,7 @@
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
__version__ = "0.3.0"
__version__ = "0.3.1"
# https://docs.djangoproject.com/en/2.0/ref/applications/#configuring-applications-ref
default_app_config = "inventory.apps.InventoryConfig"

Wyświetl plik

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-17 19:12+0200\n"
"POT-Creation-Date: 2020-10-26 19:24+0100\n"
"PO-Revision-Date: 2020-10-17 18:05+0200\n"
"Last-Translator: Jens Diemer\n"
"Language-Team: \n"
@ -18,6 +18,9 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3\n"
msgid "ItemModel.verbose_name_plural"
msgstr "Gegenstände"
msgid "Internals"
msgstr "Intern"
@ -157,9 +160,6 @@ msgstr "Wurde bei der Abgabe Geld eingenommen?"
msgid "ItemModel.verbose_name"
msgstr "Gegenstand"
msgid "ItemModel.verbose_name_plural"
msgstr "Gegenstände"
msgid "ItemLinkModel.verbose_name"
msgstr "Link"
@ -213,3 +213,6 @@ msgstr ""
msgid "English"
msgstr ""
msgid "Log in"
msgstr ""

Wyświetl plik

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-17 19:12+0200\n"
"POT-Creation-Date: 2020-10-26 19:24+0100\n"
"PO-Revision-Date: 2020-10-17 19:12+0200\n"
"Last-Translator: Jens Diemer\n"
"Language-Team: \n"
@ -18,6 +18,9 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3\n"
msgid "ItemModel.verbose_name_plural"
msgstr "Items"
msgid "Internals"
msgstr ""
@ -155,9 +158,6 @@ msgstr " "
msgid "ItemModel.verbose_name"
msgstr "Item"
msgid "ItemModel.verbose_name_plural"
msgstr "Items"
msgid "ItemLinkModel.verbose_name"
msgstr "Link"
@ -211,3 +211,6 @@ msgstr ""
msgid "English"
msgstr ""
msgid "Log in"
msgstr ""

Wyświetl plik

@ -88,7 +88,7 @@ LANGUAGES = [
('en', _('English')),
]
LOCALE_PATHS = [
__Path(BASE_PATH, 'locale')
__Path(BASE_PATH, 'inventory_locales')
]
USE_I18N = True
USE_L10N = True

Wyświetl plik

@ -14,7 +14,12 @@ def main():
'available on your PYTHONPATH environment variable? Did you '
'forget to activate a virtual environment?'
) from exc
execute_from_command_line(sys.argv)
try:
execute_from_command_line(sys.argv)
except Exception as err:
from bx_py_utils.error_handling import print_exc_plus
print_exc_plus(err)
raise
if __name__ == '__main__':

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "PyInventory"
version = "0.3.0"
version = "0.3.1"
description = "Web based management to catalog things including state and location etc. using Python/Django."
authors = ["JensDiemer <git@jensdiemer.de>"]
packages = [
@ -11,8 +11,7 @@ packages = [
keywords=['inventory','django']
classifiers = [
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 2 - Pre-Alpha",
# "Development Status :: 3 - Alpha",
"Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
#"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
@ -29,7 +28,10 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Operating System :: OS Independent",
]
include = ["AUTHORS"]
include = [
'AUTHORS', 'LICENSE', 'README.creole',
'inventory_locales/*'
]
# Will be generated from README.creole with: 'poetry run update_rst_readme'
readme='README.rst'