Hello community, here is the log from the commit of package python-weblate-schemas for openSUSE:Factory checked in at 2020-08-28 21:20:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-weblate-schemas (Old) and /work/SRC/openSUSE:Factory/.python-weblate-schemas.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-weblate-schemas" Fri Aug 28 21:20:51 2020 rev:2 rq:828010 version:0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-weblate-schemas/python-weblate-schemas.changes 2020-04-18 00:32:12.674273566 +0200 +++ /work/SRC/openSUSE:Factory/.python-weblate-schemas.new.3399/python-weblate-schemas.changes 2020-08-28 21:21:48.680337311 +0200 @@ -1,0 +2,6 @@ +Wed Aug 19 10:20:06 UTC 2020 - Matthias Fehring <buschman...@opensuse.org> + +- Update to version 0.4 + * Added schema for user downloadable data. + +------------------------------------------------------------------- Old: ---- weblate_schemas-0.3.tar.gz New: ---- weblate_schemas-0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-weblate-schemas.spec ++++++ --- /var/tmp/diff_new_pack.7Yo0gK/_old 2020-08-28 21:21:50.544338216 +0200 +++ /var/tmp/diff_new_pack.7Yo0gK/_new 2020-08-28 21:21:50.544338216 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-weblate-schemas -Version: 0.3 +Version: 0.4 Release: 0 Summary: A collection of schemas used by Weblate License: GPL-3.0-or-later ++++++ weblate_schemas-0.3.tar.gz -> weblate_schemas-0.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/CHANGES.rst new/weblate_schemas-0.4/CHANGES.rst --- old/weblate_schemas-0.3/CHANGES.rst 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/CHANGES.rst 2020-08-05 06:26:05.000000000 +0200 @@ -1,20 +1,26 @@ Changelog ========= +0.4 +--- + +* Released on 5th August 2020. +* Added schema for user downloadable data. + 0.3 --- -* Released on 10th March 2029. +* Released on 10th March 2020. * Switch to more standard naming of schema files (.schema.json). 0.2 --- -* Released on 10th March 2029. +* Released on 10th March 2020. * Fixed language code validation. 0.1 --- -* Released on 10th March 2029. +* Released on 10th March 2020. * Initial release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/PKG-INFO new/weblate_schemas-0.4/PKG-INFO --- old/weblate_schemas-0.3/PKG-INFO 2020-03-10 15:24:32.481727600 +0100 +++ new/weblate_schemas-0.4/PKG-INFO 2020-08-05 06:26:15.025254200 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: weblate_schemas -Version: 0.3 +Version: 0.4 Summary: A collection of schemas used by Weblate Home-page: https://weblate.org/ Author: Michal Čihař diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/requirements-test.txt new/weblate_schemas-0.4/requirements-test.txt --- old/weblate_schemas-0.3/requirements-test.txt 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/requirements-test.txt 2020-08-05 06:26:05.000000000 +0200 @@ -1,6 +1,5 @@ -r requirements.txt codecov -pre-commit pytest pytest-cov twine diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/setup.cfg new/weblate_schemas-0.4/setup.cfg --- old/weblate_schemas-0.3/setup.cfg 2020-03-10 15:24:32.481727600 +0100 +++ new/weblate_schemas-0.4/setup.cfg 2020-08-05 06:26:15.025254200 +0200 @@ -18,7 +18,7 @@ force_grid_wrap = 0 use_parentheses = True line_length = 88 -project = weblate_schema +known_first_party = weblate_schema known_third_party = jsonschema [egg_info] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/setup.py new/weblate_schemas-0.4/setup.py --- old/weblate_schemas-0.3/setup.py 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/setup.py 2020-08-05 06:26:05.000000000 +0200 @@ -31,7 +31,6 @@ LONG_DESCRIPTION = readme.read() REQUIRES = list(open("requirements.txt").read().splitlines()) -REQUIRES_TEST = open("requirements-test.txt").read().splitlines()[1:] setup( name="weblate_schemas", @@ -70,6 +69,4 @@ "Topic :: Software Development :: Localization", "Topic :: Utilities", ], - setup_requires=["pytest-runner"], - tests_require=REQUIRES_TEST, ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas/__init__.py new/weblate_schemas-0.4/weblate_schemas/__init__.py --- old/weblate_schemas-0.3/weblate_schemas/__init__.py 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas/__init__.py 2020-08-05 06:26:05.000000000 +0200 @@ -20,7 +20,7 @@ # """Schemas used by Weblate.""" -__version__ = "0.3" +__version__ = "0.4" import json from pathlib import Path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas/schemas/weblate-memory.schema.json new/weblate_schemas-0.4/weblate_schemas/schemas/weblate-memory.schema.json --- old/weblate_schemas-0.3/weblate_schemas/schemas/weblate-memory.schema.json 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas/schemas/weblate-memory.schema.json 2020-08-05 06:26:05.000000000 +0200 @@ -10,9 +10,7 @@ "$id": "#/items/properties/category", "default": 1, "description": "1 is global, 2 is shared, 10000000+ are project specific, 20000000+ are user specific", - "examples": [ - 1 - ], + "examples": [1], "minimum": 0, "title": "The String Category", "type": "integer" @@ -21,9 +19,7 @@ "$id": "#/items/properties/origin", "default": "", "description": "Filename or component name", - "examples": [ - "test" - ], + "examples": ["test"], "pattern": "^(.*)$", "title": "The String Origin", "type": "string" @@ -31,9 +27,7 @@ "source": { "$id": "#/items/properties/source", "default": "", - "examples": [ - "Hello" - ], + "examples": ["Hello"], "pattern": "^(.+)$", "title": "The Source String", "type": "string" @@ -42,9 +36,7 @@ "$id": "#/items/properties/source_language", "default": "", "description": "ISO 639-1 / ISO 639-2 / IETF BCP 47", - "examples": [ - "en" - ], + "examples": ["en"], "pattern": "^([^ ]+)$", "title": "The Source Language", "type": "string" @@ -52,9 +44,7 @@ "target": { "$id": "#/items/properties/target", "default": "", - "examples": [ - "Ahoj" - ], + "examples": ["Ahoj"], "pattern": "^(.+)$", "title": "The Target String", "type": "string" @@ -63,9 +53,7 @@ "$id": "#/items/properties/target_language", "default": "", "description": "ISO 639-1 / ISO 639-2 / IETF BCP 47", - "examples": [ - "cs" - ], + "examples": ["cs"], "pattern": "^([^ ]+)$", "title": "The Target Language", "type": "string" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas/schemas/weblate-userdata.schema.json new/weblate_schemas-0.4/weblate_schemas/schemas/weblate-userdata.schema.json --- old/weblate_schemas-0.3/weblate_schemas/schemas/weblate-userdata.schema.json 1970-01-01 01:00:00.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas/schemas/weblate-userdata.schema.json 2020-08-05 06:26:05.000000000 +0200 @@ -0,0 +1,257 @@ +{ + "$id": "https://weblate.org/schemas/weblate-userdata.schema.json", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "definitions": {}, + "title": "Weblate user data export", + "type": "object", + "required": ["basic", "profile", "auditlog"], + "properties": { + "basic": { + "$id": "#root/basic", + "title": "Basic", + "type": "object", + "required": ["username", "full_name", "email", "date_joined"], + "properties": { + "username": { + "$id": "#root/basic/username", + "title": "Username", + "type": "string", + "default": "", + "examples": ["admin"], + "pattern": "^.*$" + }, + "full_name": { + "$id": "#root/basic/full_name", + "title": "Full name", + "type": "string", + "default": "", + "examples": ["Weblate Admin"], + "pattern": "^.*$" + }, + "email": { + "$id": "#root/basic/email", + "title": "E-mail", + "type": "string", + "default": "", + "examples": ["nore...@example.com"], + "pattern": "^.*$" + }, + "date_joined": { + "$id": "#root/basic/date_joined", + "title": "Date joined", + "type": "string", + "default": "", + "examples": ["2019-11-18T18:53:54.862Z"], + "pattern": "^.*$" + } + } + }, + "profile": { + "$id": "#root/profile", + "title": "Profile", + "type": "object", + "required": [ + "language", + "suggested", + "translated", + "uploaded", + "hide_completed", + "secondary_in_zen", + "hide_source_secondary", + "editor_link", + "translate_mode", + "zen_mode", + "special_chars", + "dashboard_view", + "dashboard_component_list", + "languages", + "secondary_languages", + "watched" + ], + "properties": { + "language": { + "$id": "#root/profile/language", + "title": "Language", + "type": "string", + "default": "", + "examples": ["cs"], + "pattern": "^.*$" + }, + "suggested": { + "$id": "#root/profile/suggested", + "title": "Number of sugested strings", + "type": "integer", + "examples": [1], + "default": 0 + }, + "translated": { + "$id": "#root/profile/translated", + "title": "Number of translated strings", + "type": "integer", + "examples": [24], + "default": 0 + }, + "uploaded": { + "$id": "#root/profile/uploaded", + "title": "Number of uploaded screenshots", + "type": "integer", + "examples": [1], + "default": 0 + }, + "hide_completed": { + "$id": "#root/profile/hide_completed", + "title": "Hide completed translations on the dashboard", + "type": "boolean", + "examples": [false], + "default": true + }, + "secondary_in_zen": { + "$id": "#root/profile/secondary_in_zen", + "title": "Show secondary translations in the Zen mode", + "type": "boolean", + "examples": [true], + "default": true + }, + "hide_source_secondary": { + "$id": "#root/profile/hide_source_secondary", + "title": "Hide source if a secondary translation exists", + "type": "boolean", + "examples": [false], + "default": true + }, + "editor_link": { + "$id": "#root/profile/editor_link", + "title": "Editor link", + "type": "string", + "default": "", + "examples": [""], + "pattern": "^.*$" + }, + "translate_mode": { + "$id": "#root/profile/translate_mode", + "title": "Translation editor mode", + "type": "integer", + "examples": [0], + "default": 0 + }, + "zen_mode": { + "$id": "#root/profile/zen_mode", + "title": "Zen editor mode", + "type": "integer", + "examples": [0], + "default": 0 + }, + "special_chars": { + "$id": "#root/profile/special_chars", + "title": "Special characters", + "type": "string", + "default": "", + "examples": [" "], + "pattern": "^.*$" + }, + "dashboard_view": { + "$id": "#root/profile/dashboard_view", + "title": "Default dashboard view", + "type": "integer", + "examples": [1], + "default": 0 + }, + "dashboard_component_list": { + "$id": "#root/profile/dashboard_component_list", + "title": "Default component list", + "anyOf": [{ "type": "null" }, { "type": "integer" }], + "default": null + }, + "languages": { + "$id": "#root/profile/languages", + "title": "Translated languages", + "type": "array", + "default": [], + "items": { + "$id": "#root/profile/languages/items", + "title": "Language code", + "type": "string", + "default": "", + "examples": ["cs"], + "pattern": "^.*$" + } + }, + "secondary_languages": { + "$id": "#root/profile/secondary_languages", + "title": "Secondary languages", + "type": "array", + "default": [], + "items": { + "$id": "#root/profile/secondary_languages/items", + "title": "Language code", + "type": "string", + "default": "", + "examples": ["sk"], + "pattern": "^.*$" + } + }, + "watched": { + "$id": "#root/profile/watched", + "title": "Watched projects", + "type": "array", + "default": [], + "items": { + "$id": "#root/profile/watched/items", + "title": "Project slug", + "type": "string", + "default": "", + "examples": ["weblate"], + "pattern": "^.*$" + } + } + } + }, + "auditlog": { + "$id": "#root/auditlog", + "title": "Audit log", + "type": "array", + "default": [], + "items": { + "$id": "#root/auditlog/items", + "title": "Items", + "type": "object", + "required": ["address", "user_agent", "timestamp", "activity"], + "properties": { + "address": { + "$id": "#root/auditlog/items/address", + "title": "IP address", + "type": "string", + "default": "", + "examples": ["127.0.0.1"], + "pattern": "^.*$" + }, + "user_agent": { + "$id": "#root/auditlog/items/user_agent", + "title": "User agent", + "type": "string", + "default": "", + "examples": ["PC / Linux / Firefox 70.0"], + "pattern": "^.*$" + }, + "timestamp": { + "$id": "#root/auditlog/items/timestamp", + "title": "Timestamp", + "type": "string", + "default": "", + "examples": ["2019-11-18T18:58:30.845Z"], + "pattern": "^.*$" + }, + "activity": { + "$id": "#root/auditlog/items/activity", + "title": "Activity", + "type": "string", + "default": "", + "examples": ["login"], + "pattern": "^.*$" + } + } + } + } + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas/test_valid.py new/weblate_schemas-0.4/weblate_schemas/test_valid.py --- old/weblate_schemas-0.3/weblate_schemas/test_valid.py 2020-03-10 15:24:21.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas/test_valid.py 2020-08-05 06:26:05.000000000 +0200 @@ -28,3 +28,44 @@ def test_memory(): """Test memory schema being valid.""" validate([], load_schema("weblate-memory.schema.json")) + + +def test_userdata(): + """Test user data schema being valid.""" + validate( + { + "basic": { + "username": "nijel", + "full_name": "Weblate Admin", + "email": "mic...@cihar.com", + "date_joined": "2019-11-18T18:53:54.862Z", + }, + "profile": { + "language": "cs", + "suggested": 1, + "translated": 24, + "uploaded": 1, + "hide_completed": False, + "secondary_in_zen": True, + "hide_source_secondary": False, + "editor_link": "", + "translate_mode": 0, + "zen_mode": 0, + "special_chars": "\u00a0 ", + "dashboard_view": 1, + "dashboard_component_list": None, + "languages": ["cs", "vi"], + "secondary_languages": ["sk"], + "watched": ["weblate"], + }, + "auditlog": [ + { + "address": "127.0.0.1", + "user_agent": "PC / Linux / Firefox 70.0", + "timestamp": "2019-11-18T18:58:30.845Z", + "activity": "login", + }, + ], + }, + load_schema("weblate-userdata.schema.json"), + ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas.egg-info/PKG-INFO new/weblate_schemas-0.4/weblate_schemas.egg-info/PKG-INFO --- old/weblate_schemas-0.3/weblate_schemas.egg-info/PKG-INFO 2020-03-10 15:24:32.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas.egg-info/PKG-INFO 2020-08-05 06:26:14.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: weblate-schemas -Version: 0.3 +Version: 0.4 Summary: A collection of schemas used by Weblate Home-page: https://weblate.org/ Author: Michal Čihař diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/weblate_schemas-0.3/weblate_schemas.egg-info/SOURCES.txt new/weblate_schemas-0.4/weblate_schemas.egg-info/SOURCES.txt --- old/weblate_schemas-0.3/weblate_schemas.egg-info/SOURCES.txt 2020-03-10 15:24:32.000000000 +0100 +++ new/weblate_schemas-0.4/weblate_schemas.egg-info/SOURCES.txt 2020-08-05 06:26:14.000000000 +0200 @@ -14,4 +14,5 @@ weblate_schemas.egg-info/dependency_links.txt weblate_schemas.egg-info/requires.txt weblate_schemas.egg-info/top_level.txt -weblate_schemas/schemas/weblate-memory.schema.json \ No newline at end of file +weblate_schemas/schemas/weblate-memory.schema.json +weblate_schemas/schemas/weblate-userdata.schema.json \ No newline at end of file