File python-scikit-hep-testdata.spec of Package python-scikit-hep-testdata

# spec file for package python-scikit-hep-testdata
# Copyright (c) 2020 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define srcname scikit-hep-testdata
%define modname %( echo %{srcname} | tr '-' '_' )
Name:           python-scikit-hep-testdata
Version:        0.3.10
Release:        0
Summary:        Example HEP files for testing and demonstrating
License:        BSD-3-Clause
Group:          Development/Languages/Python
# PATCH-FEATURE-OPENSUSE scikit-hep-testdata-no-pep8.patch -- Drop pep8 requrements for pytest to avoid depending on outdated, unavailable pytest-pep8 module
Patch0:         scikit-hep-testdata-no-pep8.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module toml}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
# SECTION Test requirements
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module importlib-resources}
BuildRequires:  %{python_module pytest-cov}
BuildRequires:  %{python_module pytest}
BuildArch:      noarch

A common package to provide example files (*e.g*. ROOT) for testing and
developing packages against.  The sample of files is representative of typical
files found "in the wild".

In addition to including some root files directly, this package adds some
simple helper methods to get larger files from common open-access data

# dir in tarball incorrectly still carries the old 0.3.9 version
%autosetup -p1 -n %{srcname}-0.3.9

# GH source doesn't allow proper detection of version:

%python_expand %fdupes %{buildroot}%{$python_sitelib}


%files %{python_files}

openSUSE Build Service is sponsored by