Notification time stamped 2023-06-30 15:44:03 UTC
From 9c9331a9c6365dc62dbe4849bf063d5a3c8e8461 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley code@musicinmybrain.net Date: Jan 25 2023 14:37:46 +0000 Subject: Switch to GitHub source and run the tests
---
diff --git a/python-jsonschema-spec.spec b/python-jsonschema-spec.spec index 6fd7acc..26d0c06 100644 --- a/python-jsonschema-spec.spec +++ b/python-jsonschema-spec.spec @@ -7,12 +7,14 @@ Release: %autorelease Summary: JSONSchema Spec with object-oriented paths
License: Apache-2.0 -URL: https://pypi.python.org/pypi/%%7Bsrcname%7D -Source: %{pypi_source} +URL: https://github.com/p1c2u/%%7Bsrcname%7D +# The GitHub archive has the tests; the PyPI sdist does not. +Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch + BuildRequires: python3-devel -BuildRequires: poetry +BuildRequires: python3dist(pytest)
%global _description %{expand: A python library which provides traverse JSON resources like paths and @@ -29,6 +31,9 @@ Summary: %{summary}
%prep %autosetup -n %{srcname}-%{version} +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters +sed -r -i '/^--cov[-=]/d' pyproject.toml +
%generate_buildrequires %pyproject_buildrequires @@ -44,7 +49,7 @@ Summary: %{summary}
%check -%pyproject_check_import +%pytest
%files -n python3-%{srcname} -f %{pyproject_files} diff --git a/sources b/sources index 4dbb75e..30dae31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jsonschema-spec-0.1.2.tar.gz) = e14d8b009608f1bfe22002e002d499d83c7960c4c284714a0158d7b8eeab383c5306a3f66bf1df7cfac8b4388c77fc7ca2ecd6628cf72f9166e0145f07c66f83 +SHA512 (jsonschema-spec-0.1.2.tar.gz) = 0cba83a14e88d4fe2fcce9e4d39fa4284f23366a1f8acab16fa4b7b824d0c02bf04429d61c51a39a7a188c4e2b79f4481bba14ca688edee71beb0060e16617e0
https://src.fedoraproject.org/rpms/python-jsonschema-spec/c/9c9331a9c6365dc6...