Blame python-pytest-filter-subpackage.spec

51bdb94
%global srcname pytest-filter-subpackage
9049c28
%global modname pytest_filter_subpackage
51bdb94
%global sum Pytest plugin for filtering based on sub-packages
51bdb94
51bdb94
51bdb94
Name:           python-%{srcname}
a219bdd
Version:        0.2.0
176fa37
Release:        %autorelease
51bdb94
Summary:        %{sum}
51bdb94
9049c28
License:        BSD-3-Clause
51bdb94
URL:            https://pypi.python.org/pypi/%{srcname}
51bdb94
Source0:        %{pypi_source}
51bdb94
51bdb94
BuildArch:      noarch
51bdb94
9049c28
BuildRequires:  python3-devel
9049c28
51bdb94
%global _description %{expand:
51bdb94
This package contains a simple plugin for the pytest framework that provides
51bdb94
a shortcut to testing all code and documentation for a given sub-package.}
51bdb94
51bdb94
%description %_description
51bdb94
51bdb94
51bdb94
%package -n python3-%{srcname}
51bdb94
Summary:        %{sum}
51bdb94
51bdb94
%description -n python3-%{srcname} %_description
51bdb94
51bdb94
51bdb94
%prep
51bdb94
%autosetup -n %{srcname}-%{version}
51bdb94
51bdb94
# Remove egg files from source
9049c28
rm -rf %{pythonicname}.egg-info
9049c28
9049c28
%generate_buildrequires
9049c28
%pyproject_buildrequires
51bdb94
51bdb94
51bdb94
%build
9049c28
%pyproject_wheel
51bdb94
51bdb94
51bdb94
%install
9049c28
%pyproject_install
9049c28
%pyproject_save_files %{modname}
9049c28
9049c28
9049c28
%check
9049c28
%pyproject_check_import
51bdb94
51bdb94
9049c28
%files -n python3-%{srcname} -f %{pyproject_files}
51bdb94
%license LICENSE.rst
51bdb94
%doc README.rst CHANGES.rst
51bdb94
51bdb94
51bdb94
%changelog
176fa37
%autochangelog