From 94a0d71e8eb2979705aac7d17f915fe3144ce4dd905bdc8465eb4674e62e14a9 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 27 Jan 2025 08:23:17 +0000 Subject: [PATCH] update to 0.36.2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-referencing?expand=0&rev=55 --- .gitattributes | 23 +++ .gitignore | 1 + _multibuild | 3 + _service | 18 ++ _servicedata | 4 + python-referencing.changes | 357 +++++++++++++++++++++++++++++++++++++ python-referencing.spec | 96 ++++++++++ referencing-0.35.1.tar.gz | 3 + referencing-0.36.1.tar.gz | 3 + referencing-0.36.2.tar.gz | 3 + 10 files changed, 511 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 _service create mode 100644 _servicedata create mode 100644 python-referencing.changes create mode 100644 python-referencing.spec create mode 100644 referencing-0.35.1.tar.gz create mode 100644 referencing-0.36.1.tar.gz create mode 100644 referencing-0.36.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/_service b/_service new file mode 100644 index 0000000..d366ca3 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/python-jsonschema/referencing + git + v0.36.2 + @PARENT_TAG@ + enable + v(.*) + yes + + + referencing + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..82ccd6d --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/python-jsonschema/referencing + 9a82e6c7e5e2e395b61bb4017dc6adc52ac52e7c \ No newline at end of file diff --git a/python-referencing.changes b/python-referencing.changes new file mode 100644 index 0000000..fd9b586 --- /dev/null +++ b/python-referencing.changes @@ -0,0 +1,357 @@ +------------------------------------------------------------------- +Sat Jan 25 16:17:56 UTC 2025 - opensuse_buildservice@ojkastl.de + +- Update to version 0.36.2: + * Release using the newer twine release to preserve PEP 639 + license metadata. + +------------------------------------------------------------------- +Fri Jan 17 08:15:58 UTC 2025 - opensuse_buildservice@ojkastl.de + +- Update to version 0.36.1: + * Add a lower pin on typing-extensions for the version we depend + on. + +------------------------------------------------------------------- +Fri Jan 17 06:59:47 UTC 2025 - opensuse_buildservice@ojkastl.de + +- Update to version 0.36.0: + * Declare support for Python 3.13. + +------------------------------------------------------------------- +Thu May 02 06:16:34 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.35.1: + * Make Resource.pointer also properly handle empty pointers + (which refer to the root document). + This fix likely only affects you if you were using that + function directly, as Resource.lookup already handles empty + fragments. + +------------------------------------------------------------------- +Wed Apr 24 11:27:53 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.35.0: + * Make Registry.contents raise NoSuchResource when needed. + * Update pre-commit hooks. + * Run coverage with 3.12 + * Try convincing RTD to use uv. + * uv and minor workflow tweaks + * Use uv for envs, particularly the requirements env. + * [pre-commit.ci] pre-commit autoupdate + * Whatever pyright regression was present is still present. + * [pre-commit.ci] pre-commit autoupdate + * Bump suite from `71c85d0` to `87851a6` + * Bump suite from `d3fdf35` to `71c85d0` + * Bump suite from `e3fe0aa` to `d3fdf35` + +------------------------------------------------------------------- +Sat Mar 16 13:53:14 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.34.0: + * Also look inside definitions keywords even on newer dialects. + The specification recommends doing so regardless of the rename + to $defs. + * Ensure non-blocking mypy compatibility by @jamescw19 in #130 + +------------------------------------------------------------------- +Mon Jan 29 17:40:40 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.33.0: + * Add a referencing.jsonschema.SchemaResource type alias to go + along with the other JSON Schema specialized types. + +------------------------------------------------------------------- +Sun Jan 07 13:33:05 UTC 2024 - opensuse_buildservice@ojkastl.de + +- Update to version 0.32.1: + * We CannotDetermineSpecification for $schema kyes that aren't + strs + * [pre-commit.ci] pre-commit autoupdate + * Update requirements. + * Enable more ruff rulesets. + * Remove an unneeded doc ext, we have no CLI. + * [pre-commit.ci] pre-commit autoupdate + * Bump actions/setup-python from 4 to 5 + * Update pre-commit hooks. + +------------------------------------------------------------------- +Thu Dec 07 15:40:29 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.32.0: + * Add Specification.detect. + +------------------------------------------------------------------- +Thu Nov 30 09:10:06 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.31.1: + * Do more silly things to pepper over type checking nonsense. + * Minor noxfile tweaking. + * Add the explicit Tidelift link. + * Complain about spurious type: ignores. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Thu Nov 16 14:51:03 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.31.0: + * Add referencing.jsonschema.EMPTY_REGISTRY. + * [pre-commit.ci] pre-commit autoupdate + * Update requirements. + * Enable TCH rules for slightly reducing runtime imports. + * [pre-commit.ci] pre-commit autoupdate + * Add tests for Registry being truthy or falsy. + * Apparently this setting is now autodetected. + * yarl -> url.py in the (trivial) docs usage. + * Ignore the dirhtml directory usable for docs generation. + * Unpin pyright, as whatever was previously broken seems fixed. + * [pre-commit.ci] pre-commit autoupdate + * Update requirements. + * Pull in some style ignores that we don't really need yet. + * [pre-commit.ci] pre-commit autoupdate + * Update requirements. + * referencing, not Bowtie + * New pip-compile default. + * Update requirements. + * Remove the now-unneeded noqa's. + * Ask ruff to fix things when it runs. + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * Update requirements. + * [pre-commit.ci] pre-commit autoupdate + * [pre-commit.ci] pre-commit autoupdate + * Add and ensure the noxfile gets documented. + * Bump actions/checkout from 3 to 4 + * [pre-commit.ci] pre-commit autoupdate + * Few more ruff rules. + * Bump docs requirements. + * [pre-commit.ci] pre-commit autoupdate + * Bump suite from `fa1b818` to `9153b05` + * [pre-commit.ci] pre-commit autoupdate + * Bump suite from `b094fe5` to `fa1b818` + * Minor tweaks to some annotations. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Sun Aug 06 07:54:07 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.30.2: + * Document why a number of private objects are documented. + * Build docs with 3.11 in ReadTheDocs + +------------------------------------------------------------------- +Sun Aug 06 07:52:47 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.30.1: + * Ensure submodules are checked out when building a release. + * Enable another ruff ruleset. + * One fewer thing in the README (which is likely less confusing). + * Bump suite from `6e126a9` to `b094fe5` + * [pre-commit.ci] pre-commit autoupdate + * Add a few additional interlinks to the JSON Schema + specification. + * Make the noxfile support passing a less temporary directory for + building docs. + * Update requirements. + * More correct listing of nox envs for the GitHub actions + workflow + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Tue Jul 18 18:55:57 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.30.0: + * Declare support for 3.12. + * Update the referencing suite. + +------------------------------------------------------------------- +Tue Jul 18 09:04:33 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.29.3: + * Spelling. + +------------------------------------------------------------------- +Tue Jul 18 09:03:28 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.29.2: + * Improve the hashability of exceptions when they contain + hashable data. + * [pre-commit.ci] pre-commit autoupdate + * Bump suite from `9335e4a` to `fe891e8` + +------------------------------------------------------------------- +Thu Jul 06 10:57:29 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.29.1: + * Update pre-commit hooks. + * Minor rewording of the caching section and give it a + subsection. + * Bump suite from `cb57930` to `9335e4a` + * [pre-commit.ci] pre-commit autoupdate + * Bump suite from `445c8ee` to `cb57930` + * Bump suite from `f6fa54d` to `445c8ee` + * Don't use nox.session.create_tmp. + +------------------------------------------------------------------- +Thu Jun 01 05:26:32 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.29.0: + * Implement referencing.retrieval.to_cached_resource + * Ensure more things raise non-subclassable exceptions. + +------------------------------------------------------------------- +Thu Jun 01 05:24:45 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.6: + * Move to using Trusted Publishers. + * Ensure twine checks the README in strict mode. + * [pre-commit.ci] pre-commit autoupdate + * Enable markdown coverage in CI. + * Try again with the extra coverage job in CI. + +------------------------------------------------------------------- +Thu May 25 06:24:03 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.5: + * Fill in the missing coverage, and ensure it runs in CI. + * Add pip-audit to CI. + * Explicitly ensure we catch calling .anchor on a nonexistent + resource. + +------------------------------------------------------------------- +Wed May 24 05:01:46 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.4: + * More explicit field aliasing for silly type checker behavior. + * Update requirements. + * Supposedly dependabot supports pip-compile, let's see. + * Catch accidental hardcoded links in docs. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Tue May 23 07:55:25 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.3: + * Update ruff's config for the removal of keep-runtime-typing. + +------------------------------------------------------------------- +Thu May 18 07:49:58 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.2: + * Pin the pyright version until I understand what's changed. + * Re-add the packaging classifiers. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Fri May 5 10:46:18 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Thu May 04 04:39:28 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.1: + * Move the type: ignore for converter with pyright. + * Explicitly note you probably don't mean to touch Resolver. + * Bump suite from `89016c7` to `f6fa54d` + * [pre-commit.ci] pre-commit autoupdate + * v0.28.0 -> CHANGELOG + +------------------------------------------------------------------- +Tue May 02 05:29:53 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.28.0: + * Add a simple-ish example to the doc homepage. + * Looks like Hatchling needs a bump before this can actually + happen. + * Add the new JSON and JSON Schema classifiers, hooray! + +------------------------------------------------------------------- +Wed Apr 26 08:43:41 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.27.4: + * Minor simplification to the docs structure. + * Bump suite from `e744bfc` to `89016c7` + * Bump the referencing suite. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Tue Apr 25 04:54:24 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.27.3: + * Fix whatever typing change causes pyright to think frozen + classes aren't frozen. + * Also strip empty fragments when using __getiem__ on Registries. + * Bump wntrblm/nox from 2022.11.21 to 2023.04.22 + +------------------------------------------------------------------- +Fri Apr 14 06:58:44 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.27.2: + * Yet another stab at anchor lookup from non-canonical URIs. + * Bump suite from `2751845` to `e8927d9` + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Thu Apr 13 10:18:46 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.27.1: + * Add a note to the changelog. + * Enable the type annotation linter. + * Slight improvements to a few more docstrings. + * Update requirements. + * Bump suite from `5f47bda` to `e8927d9` + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Tue Apr 04 06:16:10 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.27.0: + * Fix looking up anchors from non-canonical URIs. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Tue Mar 28 09:12:37 UTC 2023 - Matej Cepl + +- Split package into multibuild to avoid a build cycle. + +------------------------------------------------------------------- +Tue Mar 28 05:05:26 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.26.4: + * One more example of non-public API + * Add a note on spec-incorrect behavior. + +------------------------------------------------------------------- +Tue Mar 28 05:02:06 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.26.3: + * First pass at an explicit list of (non-)public API + +------------------------------------------------------------------- +Tue Mar 28 04:58:16 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.26.2: + * Also suggest a correct pointer for #/. + * Fix the double wording in the InvalidAnchor exception message. + +------------------------------------------------------------------- +Mon Mar 27 05:04:21 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.26.1: + * Update the changelog. + +------------------------------------------------------------------- +Mon Mar 27 05:03:31 UTC 2023 - kastl@b1-systems.de + +- Update to version 0.26.0: + * Try to be more helpful when someone forgets a slash in JSON + pointers. + * Exclude bots from release notes. + * [pre-commit.ci] pre-commit autoupdate + +------------------------------------------------------------------- +Fri Mar 24 12:43:40 UTC 2023 - Johannes Kastl + +- new package python-referencing required by + python-jsonschema-specifications diff --git a/python-referencing.spec b/python-referencing.spec new file mode 100644 index 0000000..8dfa316 --- /dev/null +++ b/python-referencing.spec @@ -0,0 +1,96 @@ +# +# spec file for package python-referencing +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-referencing%{psuffix} +Version: 0.36.2 +Release: 0 +Summary: JSON Referencing + Python +License: MIT +URL: https://github.com/python-jsonschema/referencing +# only use tarball created by tar_scm service, +# as PyPi does not include the suite git submodule +# and github tarballs do not include the .git directory +# required by hatch_vcs and setuptools_scm +# +# using obs_scm does **not** work... +Source: referencing-%{version}.tar.gz +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: git-core +BuildRequires: python-rpm-macros +# runtime dependencies +BuildRequires: %{python_module attrs >= 24.3.0} +BuildRequires: %{python_module rpds-py >= 0.22.3} +BuildRequires: %{python_module typing_extensions >= 4.4.0 if %python-base < 3.13} +%if %{with test} +# SECTION test requirements +BuildRequires: %{python_module pytest >= 8.3.3} +BuildRequires: %{python_module jsonschema-specifications} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module packaging >= 24.2} +BuildRequires: %{python_module pytest-subtests >= 0.14.1} +# /SECTION +%endif +BuildRequires: fdupes +Requires: python-attrs >= 22.2.0 +Requires: python-rpds-py >= 0.7.0 +Requires: python-typing_extensions >= 4.4.0 +BuildArch: noarch +%python_subpackages + +%description +JSON Referencing + Python + +%prep +%setup -q -n referencing-%{version} + +%build +%pyproject_wheel + +%install +%if %{without test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest +%endif + +%if %{without test} +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license COPYING +%{python_sitelib}/referencing/ +%{python_sitelib}/referencing-%{version}.dist-info/ +%endif + +%changelog diff --git a/referencing-0.35.1.tar.gz b/referencing-0.35.1.tar.gz new file mode 100644 index 0000000..3876064 --- /dev/null +++ b/referencing-0.35.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd757f868ba6506b6b8def76b12b92d19ec35fb2da7cecbd34917d33e1d12a08 +size 511208 diff --git a/referencing-0.36.1.tar.gz b/referencing-0.36.1.tar.gz new file mode 100644 index 0000000..62cfa2f --- /dev/null +++ b/referencing-0.36.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:938698ab21a819af28880931bfd197cb38ca3a41c4dea74da6efb8a031095e68 +size 717955 diff --git a/referencing-0.36.2.tar.gz b/referencing-0.36.2.tar.gz new file mode 100644 index 0000000..010737f --- /dev/null +++ b/referencing-0.36.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fc1d8a339e46cae8e4beaae067b888a7c4d8c142f2c21f17a791762b2a943e0 +size 712745