Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-weblate-schemas for
openSUSE:Factory checked in at 2021-03-16 15:45:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-weblate-schemas (Old)
and /work/SRC/openSUSE:Factory/.python-weblate-schemas.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-weblate-schemas"
Tue Mar 16 15:45:11 2021 rev:3 rq:879179 version:0.6
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-weblate-schemas/python-weblate-schemas.changes
2020-08-28 21:21:48.680337311 +0200
+++
/work/SRC/openSUSE:Factory/.python-weblate-schemas.new.2401/python-weblate-schemas.changes
2021-03-16 15:46:28.853235832 +0100
@@ -1,0 +2,7 @@
+Mon Mar 15 10:08:38 UTC 2021 - Mark??ta Machov?? <[email protected]>
+
+- Update to version 0.6
+ * Fixed license information.
+ * Fixed validation of translation memory entries with newlines.
+
+-------------------------------------------------------------------
Old:
----
weblate_schemas-0.4.tar.gz
New:
----
weblate_schemas-0.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-weblate-schemas.spec ++++++
--- /var/tmp/diff_new_pack.mSM0vb/_old 2021-03-16 15:46:29.657237080 +0100
+++ /var/tmp/diff_new_pack.mSM0vb/_new 2021-03-16 15:46:29.661237086 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-weblate-schemas
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,10 +19,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-weblate-schemas
-Version: 0.4
+Version: 0.6
Release: 0
Summary: A collection of schemas used by Weblate
-License: GPL-3.0-or-later
+License: MIT
URL: https://weblate.org/
Source:
https://files.pythonhosted.org/packages/source/w/weblate_schemas/weblate_schemas-%{version}.tar.gz
BuildRequires: %{python_module jsonschema}
++++++ weblate_schemas-0.4.tar.gz -> weblate_schemas-0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/CHANGES.rst
new/weblate_schemas-0.6/CHANGES.rst
--- old/weblate_schemas-0.4/CHANGES.rst 2020-08-05 06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/CHANGES.rst 2021-03-05 15:47:39.000000000 +0100
@@ -1,6 +1,19 @@
Changelog
=========
+0.6
+---
+
+* Released on 5th Match 2021.
+* Improved examples.
+* Fixed license information.
+
+0.5
+---
+
+* Released on 8th Decemeber 2020.
+* Fixed validation of translation memory entries with newlines.
+
0.4
---
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/LICENSE
new/weblate_schemas-0.6/LICENSE
--- old/weblate_schemas-0.4/LICENSE 2020-08-05 06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/LICENSE 2021-03-05 15:47:39.000000000 +0100
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2020 Weblate
+Copyright (c) 2012 - 2021 Michal ??iha??
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/PKG-INFO
new/weblate_schemas-0.6/PKG-INFO
--- old/weblate_schemas-0.4/PKG-INFO 2020-08-05 06:26:15.025254200 +0200
+++ new/weblate_schemas-0.6/PKG-INFO 2021-03-05 15:47:48.373687300 +0100
@@ -1,11 +1,11 @@
Metadata-Version: 2.1
Name: weblate_schemas
-Version: 0.4
+Version: 0.6
Summary: A collection of schemas used by Weblate
Home-page: https://weblate.org/
Author: Michal ??iha??
Author-email: [email protected]
-License: GPLv3+
+License: MIT
Download-URL: https://github.com/WeblateOrg/weblate_schemas
Project-URL: Issue Tracker,
https://github.com/WeblateOrg/weblate_schemas/issues
Project-URL: Documentation, https://docs.weblate.org/
@@ -60,11 +60,12 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
+Requires-Python: >=3.6
Description-Content-Type: text/x-rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/setup.py
new/weblate_schemas-0.6/setup.py
--- old/weblate_schemas-0.4/setup.py 2020-08-05 06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/setup.py 2021-03-05 15:47:39.000000000 +0100
@@ -1,23 +1,27 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
#
-# Copyright ?? 2012 - 2020 Michal ??iha?? <[email protected]>
+# Copyright ?? 2012 - 2021 Michal ??iha?? <[email protected]>
#
# This file is part of Weblate weblate_schemas
# <https://github.com/WeblateOrg/weblate_schemas>
#
-# This program 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 3 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
#
"""Setup file for easy installation."""
@@ -40,7 +44,7 @@
description="A collection of schemas used by Weblate",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
- license="GPLv3+",
+ license="MIT",
keywords="i18n l10n gettext translate weblate",
url="https://weblate.org/",
download_url="https://github.com/WeblateOrg/weblate_schemas",
@@ -54,6 +58,7 @@
packages=find_packages(),
include_package_data=True,
install_requires=REQUIRES,
+ python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
@@ -61,10 +66,10 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"Topic :: Utilities",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/weblate_schemas/__init__.py
new/weblate_schemas-0.6/weblate_schemas/__init__.py
--- old/weblate_schemas-0.4/weblate_schemas/__init__.py 2020-08-05
06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/weblate_schemas/__init__.py 2021-03-05
15:47:39.000000000 +0100
@@ -1,26 +1,30 @@
-# -*- coding: utf-8 -*-
#
-# Copyright ?? 2012 - 2020 Michal ??iha?? <[email protected]>
+# Copyright ?? 2012 - 2021 Michal ??iha?? <[email protected]>
#
# This file is part of Weblate weblate_schemas
# <https://github.com/WeblateOrg/weblate_schemas>
#
-# This program 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 3 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
#
"""Schemas used by Weblate."""
-__version__ = "0.4"
+__version__ = "0.6"
import json
from pathlib import Path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/weblate_schemas-0.4/weblate_schemas/schemas/weblate-memory.schema.json
new/weblate_schemas-0.6/weblate_schemas/schemas/weblate-memory.schema.json
--- old/weblate_schemas-0.4/weblate_schemas/schemas/weblate-memory.schema.json
2020-08-05 06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/weblate_schemas/schemas/weblate-memory.schema.json
2021-03-05 15:47:39.000000000 +0100
@@ -19,8 +19,7 @@
"$id": "#/items/properties/origin",
"default": "",
"description": "Filename or component name",
- "examples": ["test"],
- "pattern": "^(.*)$",
+ "examples": ["test.tmx", "project/component"],
"title": "The String Origin",
"type": "string"
},
@@ -28,7 +27,7 @@
"$id": "#/items/properties/source",
"default": "",
"examples": ["Hello"],
- "pattern": "^(.+)$",
+ "minLength": 1,
"title": "The Source String",
"type": "string"
},
@@ -37,7 +36,7 @@
"default": "",
"description": "ISO 639-1 / ISO 639-2 / IETF BCP 47",
"examples": ["en"],
- "pattern": "^([^ ]+)$",
+ "pattern": "^[^ ]+$",
"title": "The Source Language",
"type": "string"
},
@@ -45,7 +44,7 @@
"$id": "#/items/properties/target",
"default": "",
"examples": ["Ahoj"],
- "pattern": "^(.+)$",
+ "minLength": 1,
"title": "The Target String",
"type": "string"
},
@@ -54,7 +53,7 @@
"default": "",
"description": "ISO 639-1 / ISO 639-2 / IETF BCP 47",
"examples": ["cs"],
- "pattern": "^([^ ]+)$",
+ "pattern": "^[^ ]+$",
"title": "The Target Language",
"type": "string"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/weblate_schemas-0.4/weblate_schemas/schemas/weblate-userdata.schema.json
new/weblate_schemas-0.6/weblate_schemas/schemas/weblate-userdata.schema.json
---
old/weblate_schemas-0.4/weblate_schemas/schemas/weblate-userdata.schema.json
2020-08-05 06:26:05.000000000 +0200
+++
new/weblate_schemas-0.6/weblate_schemas/schemas/weblate-userdata.schema.json
2021-03-05 15:47:39.000000000 +0100
@@ -18,32 +18,28 @@
"title": "Username",
"type": "string",
"default": "",
- "examples": ["admin"],
- "pattern": "^.*$"
+ "examples": ["admin"]
},
"full_name": {
"$id": "#root/basic/full_name",
"title": "Full name",
"type": "string",
"default": "",
- "examples": ["Weblate Admin"],
- "pattern": "^.*$"
+ "examples": ["Weblate Admin"]
},
"email": {
"$id": "#root/basic/email",
"title": "E-mail",
"type": "string",
"default": "",
- "examples": ["[email protected]"],
- "pattern": "^.*$"
+ "examples": ["[email protected]"]
},
"date_joined": {
"$id": "#root/basic/date_joined",
"title": "Date joined",
"type": "string",
"default": "",
- "examples": ["2019-11-18T18:53:54.862Z"],
- "pattern": "^.*$"
+ "examples": ["2019-11-18T18:53:54.862Z"]
}
}
},
@@ -80,7 +76,7 @@
},
"suggested": {
"$id": "#root/profile/suggested",
- "title": "Number of sugested strings",
+ "title": "Number of suggested strings",
"type": "integer",
"examples": [1],
"default": 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/weblate_schemas/test_loader.py
new/weblate_schemas-0.6/weblate_schemas/test_loader.py
--- old/weblate_schemas-0.4/weblate_schemas/test_loader.py 2020-08-05
06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/weblate_schemas/test_loader.py 2021-03-05
15:47:39.000000000 +0100
@@ -1,22 +1,26 @@
-# -*- coding: utf-8 -*-
#
-# Copyright ?? 2012 - 2020 Michal ??iha?? <[email protected]>
+# Copyright ?? 2012 - 2021 Michal ??iha?? <[email protected]>
#
# This file is part of Weblate weblate_schemas
# <https://github.com/WeblateOrg/weblate_schemas>
#
-# This program 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 3 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
#
"""Test schemas loader."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/weblate_schemas-0.4/weblate_schemas/test_valid.py
new/weblate_schemas-0.6/weblate_schemas/test_valid.py
--- old/weblate_schemas-0.4/weblate_schemas/test_valid.py 2020-08-05
06:26:05.000000000 +0200
+++ new/weblate_schemas-0.6/weblate_schemas/test_valid.py 2021-03-05
15:47:39.000000000 +0100
@@ -1,22 +1,26 @@
-# -*- coding: utf-8 -*-
#
-# Copyright ?? 2012 - 2020 Michal ??iha?? <[email protected]>
+# Copyright ?? 2012 - 2021 Michal ??iha?? <[email protected]>
#
# This file is part of Weblate weblate_schemas
# <https://github.com/WeblateOrg/weblate_schemas>
#
-# This program 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 3 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
#
"""Test schemas are valid."""
@@ -30,6 +34,23 @@
validate([], load_schema("weblate-memory.schema.json"))
+def test_memory_newline():
+ """Test memory entry containing newlines."""
+ validate(
+ [
+ {
+ "source": "Error reading config file
{filename!r}:\n{error_msg}",
+ "target": "Fehler der Konfigurationsdatei
{filename!r}:\n{error_msg}",
+ "source_language": "en",
+ "target_language": "de",
+ "origin": "myproject/mycomponent",
+ "category": 10000004,
+ }
+ ],
+ load_schema("weblate-memory.schema.json"),
+ )
+
+
def test_userdata():
"""Test user data schema being valid."""
validate(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/weblate_schemas-0.4/weblate_schemas.egg-info/PKG-INFO
new/weblate_schemas-0.6/weblate_schemas.egg-info/PKG-INFO
--- old/weblate_schemas-0.4/weblate_schemas.egg-info/PKG-INFO 2020-08-05
06:26:14.000000000 +0200
+++ new/weblate_schemas-0.6/weblate_schemas.egg-info/PKG-INFO 2021-03-05
15:47:48.000000000 +0100
@@ -1,11 +1,11 @@
Metadata-Version: 2.1
Name: weblate-schemas
-Version: 0.4
+Version: 0.6
Summary: A collection of schemas used by Weblate
Home-page: https://weblate.org/
Author: Michal ??iha??
Author-email: [email protected]
-License: GPLv3+
+License: MIT
Download-URL: https://github.com/WeblateOrg/weblate_schemas
Project-URL: Issue Tracker,
https://github.com/WeblateOrg/weblate_schemas/issues
Project-URL: Documentation, https://docs.weblate.org/
@@ -60,11 +60,12 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
+Requires-Python: >=3.6
Description-Content-Type: text/x-rst