Initial import (fedora#2223179)
This commit is contained in:
parent
75dc5e1cab
commit
8e7dc31d16
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/referencing-0.30.0.tar.gz
|
||||
/referencing-suite-fe891e8.tar.gz
|
68
python-referencing.spec
Normal file
68
python-referencing.spec
Normal file
@ -0,0 +1,68 @@
|
||||
%global srcname referencing
|
||||
|
||||
# For the test suite
|
||||
%global testcommit fe891e8ae5af7b623ed88db1f48ffb53eba9da21
|
||||
%global testshortcommit %(c=%{testcommit}; echo ${c:0:7})
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.30.0
|
||||
Release: %autorelease
|
||||
Summary: An implementation-agnostic implementation of JSON reference resolution
|
||||
License: MIT
|
||||
URL: https://pypi.python.org/pypi/%{srcname}
|
||||
Source0: %{pypi_source referencing}
|
||||
# Data for running tests
|
||||
Source1: https://github.com/python-jsonschema/referencing-suite/archive/%{testcommit}/referencing-suite-%{testshortcommit}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
|
||||
# For tests
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(pytest-subtests)
|
||||
|
||||
%global _description %{expand:
|
||||
An implementation-agnostic implementation of JSON reference resolution.
|
||||
In other words, a way for e.g. JSON Schema tooling to resolve the $ref
|
||||
keyword across all drafts without needing to implement support themselves.}
|
||||
|
||||
%description %_description
|
||||
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n python3-%{srcname} %_description
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
||||
# Unpack the test reference suite
|
||||
%setup -q -n %{srcname}-%{version} -a1
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{srcname}
|
||||
|
||||
|
||||
%check
|
||||
export REFERENCING_SUITE="%{_builddir}/%{srcname}-%{version}/referencing-suite-%{testcommit}"
|
||||
%pyproject_check_import -e referencing.tests*
|
||||
%pytest referencing/tests
|
||||
|
||||
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (referencing-0.30.0.tar.gz) = afc709140706f37a6baad5e2293fe3e7f4e214867020ac962e1ee1282777d4e6864037d6d545a0429dd11fd1eb2f91b633192cb0752f4ad4b8d138897ba2a573
|
||||
SHA512 (referencing-suite-fe891e8.tar.gz) = f56f2907e00daf52e997347867a584ba1cacbe55ae65cc54b07d9fb5ee9eb8aa2c5c4a426c821d7152e721c8c5558ce6fa4cb6e60aa3dafc14884cd14f75b78a
|
Loading…
Reference in New Issue
Block a user