Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jsonschema-specifications for openSUSE:Factory checked in at 2023-05-31 21:55:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonschema-specifications (Old)
and /work/SRC/openSUSE:Factory/.python-jsonschema-specifications.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonschema-specifications"
Wed May 31 21:55:21 2023 rev:4 rq:1090045 version:2023.5.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonschema-specifications/python-jsonschema-specifications.changes 2023-05-18 15:20:15.294196143 +0200
+++ /work/SRC/openSUSE:Factory/.python-jsonschema-specifications.new.1533/python-jsonschema-specifications.changes 2023-05-31 21:55:22.709317838 +0200
@@ -1,0 +2,8 @@
+Wed May 31 05:25:47 UTC 2023 - Johannes Kastl
+
+- update to 2023.5.2:
+ full changelog available at
+ https://github.com/python-jsonschema/jsonschema-specifications/
+ compare/v2023.05.1...v2023.05.2
+
+-------------------------------------------------------------------
Old:
----
jsonschema_specifications-2023.5.1.tar.gz
New:
----
jsonschema_specifications-2023.5.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonschema-specifications.spec ++++++
--- /var/tmp/diff_new_pack.sGTXRG/_old 2023-05-31 21:55:23.141320391 +0200
+++ /var/tmp/diff_new_pack.sGTXRG/_new 2023-05-31 21:55:23.145320415 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-jsonschema-specifications
-Version: 2023.5.1
+Version: 2023.5.2
Release: 0
Summary: The JSON Schema meta-schemas and vocabularies, exposed as a Registry
License: MIT
++++++ jsonschema_specifications-2023.5.1.tar.gz -> jsonschema_specifications-2023.5.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/.pre-commit-config.yaml new/jsonschema_specifications-2023.5.2/.pre-commit-config.yaml
--- old/jsonschema_specifications-2023.5.1/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100
@@ -14,22 +14,14 @@
- id: mixed-line-ending
args: [--fix, lf]
- id: trailing-whitespace
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
+ rev: "v0.0.270"
+ hooks:
+ - id: ruff
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- - repo: https://github.com/PyCQA/flake8
- rev: "6.0.0"
- hooks:
- - id: flake8
- - repo: https://github.com/asottile/yesqa
- rev: v1.4.0
- hooks:
- - id: yesqa
- - repo: https://github.com/asottile/pyupgrade
- rev: v3.3.2
- hooks:
- - id: pyupgrade
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/PKG-INFO new/jsonschema_specifications-2023.5.2/PKG-INFO
--- old/jsonschema_specifications-2023.5.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jsonschema-specifications
-Version: 2023.5.1
+Version: 2023.5.2
Summary: The JSON Schema meta-schemas and vocabularies, exposed as a Registry
Project-URL: Documentation, https://jsonschema-specifications.readthedocs.io/
Project-URL: Homepage, https://github.com/python-jsonschema/jsonschema-specifications
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/jsonschema_specifications/__init__.py new/jsonschema_specifications-2023.5.2/jsonschema_specifications/__init__.py
--- old/jsonschema_specifications-2023.5.1/jsonschema_specifications/__init__.py 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/jsonschema_specifications/__init__.py 2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,6 @@
+"""
+The JSON Schema meta-schemas and vocabularies, exposed as a Registry.
+"""
from referencing import Registry as _Registry
from referencing.jsonschema import SchemaRegistry as _SchemaRegistry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/jsonschema_specifications/_core.py new/jsonschema_specifications-2023.5.2/jsonschema_specifications/_core.py
--- old/jsonschema_specifications-2023.5.1/jsonschema_specifications/_core.py 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/jsonschema_specifications/_core.py 2020-02-02 01:00:00.000000000 +0100
@@ -16,7 +16,6 @@
"""
All schemas we ship.
"""
-
# importlib.resources.abc.Traversal doesn't have nice ways to do this that
# I'm aware of...
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/jsonschema_specifications/tests/test_jsonschema_specifications.py new/jsonschema_specifications-2023.5.2/jsonschema_specifications/tests/test_jsonschema_specifications.py
--- old/jsonschema_specifications-2023.5.1/jsonschema_specifications/tests/test_jsonschema_specifications.py 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/jsonschema_specifications/tests/test_jsonschema_specifications.py 2020-02-02 01:00:00.000000000 +0100
@@ -1,7 +1,10 @@
+from collections.abc import Mapping
+
from jsonschema_specifications import REGISTRY
def test_it_contains_metaschemas():
schema = REGISTRY.contents("http://json-schema.org/draft-07/schema#")
+ assert isinstance(schema, Mapping)
assert schema["$id"] == "http://json-schema.org/draft-07/schema#"
assert schema["title"] == "Core schema meta-schema"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/noxfile.py new/jsonschema_specifications-2023.5.2/noxfile.py
--- old/jsonschema_specifications-2023.5.1/noxfile.py 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/noxfile.py 2020-02-02 01:00:00.000000000 +0100
@@ -26,6 +26,12 @@
session.run("pytest", "--verbosity=3")
+@session()
+def audit(session):
+ session.install("pip-audit", ROOT)
+ session.run("python", "-m", "pip_audit")
+
+
@session(tags=["build"])
def build(session):
session.install("build")
@@ -38,20 +44,13 @@
session.install("build", "twine")
tmpdir = session.create_tmp()
session.run("python", "-m", "build", ROOT, "--outdir", tmpdir)
- session.run("python", "-m", "twine", "check", tmpdir + "/*")
+ session.run("python", "-m", "twine", "check", "--strict", tmpdir + "/*")
@session(tags=["style"])
def style(session):
- session.install(
- "flake8",
- "flake8-broken-line",
- "flake8-bugbear",
- "flake8-commas",
- "flake8-quotes",
- "flake8-tidy-imports",
- )
- session.run("python", "-m", "flake8", PACKAGE, __file__)
+ session.install("ruff")
+ session.run("ruff", "check", ROOT)
@session()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonschema_specifications-2023.5.1/pyproject.toml new/jsonschema_specifications-2023.5.2/pyproject.toml
--- old/jsonschema_specifications-2023.5.1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/jsonschema_specifications-2023.5.2/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -49,13 +49,23 @@
Funding = "https://github.com/sponsors/Julian"
Source = "https://github.com/python-jsonschema/jsonschema-specifications"
+[tool.coverage.html]
+show_contexts = true
+skip_covered = false
+
[tool.coverage.run]
branch = true
source = ["jsonschema-specifications"]
dynamic_context = "test_function"
[tool.coverage.report]
+exclude_also = [
+ "if TYPE_CHECKING:",
+ "\\s*\\.\\.\\.\\s*",
+]
fail_under = 100
+show_missing = true
+skip_covered = true
[tool.doc8]
ignore = [
@@ -68,3 +78,46 @@
from_first = true
include_trailing_comma = true
multi_line_output = 3
+
+[tool.ruff]
+line-length = 79
+target-version = "py38"
+select = ["ANN", "B", "D", "E", "F", "Q", "UP", "W"]
+ignore = [
+ # Wat, type annotations for self and cls, why is this a thing?
+ "ANN101",
+ "ANN102",
+ # Private annotations are fine to leave out.
+ "ANN202",
+ # I don't know how to more properly annotate "pass along all arguments".
+ "ANN401",
+ # raise SomeException(...) is fine.
+ "B904",
+ # It's fine to not have docstrings for magic methods.
+ "D105",
+ # This rule makes diffs uglier when expanding docstrings (and it's uglier)
+ "D200",
+ # No blank lines before docstrings.
+ "D203",
+ # Start docstrings on the second line.
+ "D212",
+ # This rule misses sassy docstrings ending with ! or ?.
+ "D400",
+ # Section headers should end with a colon not a newline
+ "D406",
+ # Underlines aren't needed
+ "D407",
+ # Plz spaces after section headers
+ "D412",
+ # We support 3.8 + 3.9
+ "UP007",
+]
+extend-exclude = ["suite"]
+
+[tool.ruff.flake8-quotes]
+docstring-quotes = "double"
+
+[tool.ruff.per-file-ignores]
+"docs/*" = ["ANN", "D"]
+"jsonschema_specifications/tests/*" = ["ANN", "D"]
+"noxfile.py" = ["ANN", "D"]