forked from pool/python-referencing
Accepting request 1074449 from home:ojkastl_buildservice:Branch_devel_languages_python
new package python-referencing required by python-jsonschema-specifications OBS-URL: https://build.opensuse.org/request/show/1074449 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-referencing?expand=0&rev=1
This commit is contained in:
75
python-referencing.spec
Normal file
75
python-referencing.spec
Normal file
@@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package python-referencing
|
||||
#
|
||||
# Copyright (c) 2023 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/
|
||||
#
|
||||
|
||||
|
||||
Name: python-referencing
|
||||
Version: 0.25.3
|
||||
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-rpm-macros
|
||||
BuildRequires: git-core
|
||||
BuildRequires: %{python_module hatch_vcs}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-subtests}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module jsonschema-specifications}
|
||||
BuildRequires: %{python_module attrs >= 22.2.0}
|
||||
BuildRequires: %{python_module rpds-py >= 0.7.0}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-attrs >= 22.2.0
|
||||
Requires: python-rpds-py >= 0.7.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
JSON Referencing + Python
|
||||
|
||||
%prep
|
||||
%setup -q -n referencing-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%license COPYING
|
||||
%{python_sitelib}/referencing/
|
||||
%{python_sitelib}/referencing-%{version}.dist-info/
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user