2020-09-23 09:43:35 +00:00
|
|
|
Name: python-distroinfo
|
|
|
|
Version: 0.3.2
|
|
|
|
Release: 0%{?dist}
|
|
|
|
Summary: Parsing and querying distribution metadata stored in text/YAML files
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/softwarefactory-project/distroinfo
|
|
|
|
Source0: %{pypi_source distroinfo}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package uses setuptools and pbr.
|
|
|
|
It has setup_requires and tests that %%pyproject_buildrequires correctly
|
|
|
|
handles that including runtime requirements.
|
2021-10-27 09:28:45 +00:00
|
|
|
Run %%pyproject_check_import with top-level modules filtering.
|
|
|
|
|
2020-09-23 09:43:35 +00:00
|
|
|
|
|
|
|
%package -n python3-distroinfo
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n python3-distroinfo
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n distroinfo-%{version}
|
2022-03-17 15:16:06 +00:00
|
|
|
# we don't need pytest-runner
|
|
|
|
sed -Ei "s/(, )?'pytest-runner'//" setup.py
|
2020-09-23 09:43:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2022-01-14 15:26:40 +00:00
|
|
|
%pyproject_buildrequires
|
2020-09-23 09:43:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files distroinfo
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
2021-10-27 09:28:45 +00:00
|
|
|
%pyproject_check_import -t
|
2020-09-23 09:43:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-distroinfo -f %{pyproject_files}
|
|
|
|
%doc README.rst AUTHORS
|
|
|
|
%license LICENSE
|