diff --git a/.gitignore b/.gitignore index cbaf7f0..3b79d85 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pytest-filter-subpackage-0.1.1.tar.gz +/pytest-filter-subpackage-0.1.2.tar.gz diff --git a/python-pytest-filter-subpackage.spec b/python-pytest-filter-subpackage.spec index d63d6ca..e428d11 100644 --- a/python-pytest-filter-subpackage.spec +++ b/python-pytest-filter-subpackage.spec @@ -1,19 +1,21 @@ %global srcname pytest-filter-subpackage -%global pythonicname pytest_filter_subpackage +%global modname pytest_filter_subpackage %global sum Pytest plugin for filtering based on sub-packages Name: python-%{srcname} -Version: 0.1.1 +Version: 0.1.2 Release: %autorelease Summary: %{sum} -License: BSD +License: BSD-3-Clause URL: https://pypi.python.org/pypi/%{srcname} Source0: %{pypi_source} BuildArch: noarch +BuildRequires: python3-devel + %global _description %{expand: This package contains a simple plugin for the pytest framework that provides a shortcut to testing all code and documentation for a given sub-package.} @@ -24,12 +26,6 @@ a shortcut to testing all code and documentation for a given sub-package.} %package -n python3-%{srcname} Summary: %{sum} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm - -%py_provides python3-%{srcname} - %description -n python3-%{srcname} %_description @@ -37,22 +33,28 @@ BuildRequires: python3-setuptools_scm %autosetup -n %{srcname}-%{version} # Remove egg files from source -rm -r %{pythonicname}.egg-info +rm -rf %{pythonicname}.egg-info + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{modname} + + +%check +%pyproject_check_import -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.rst %doc README.rst CHANGES.rst -%{python3_sitelib}/%{pythonicname}/ -%{python3_sitelib}/*.egg-info/ %changelog diff --git a/sources b/sources index c7b6339..3f92aed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pytest-filter-subpackage-0.1.1.tar.gz) = 43059e9c3fb52f87df944238c7c1043776d13875b99f19a6b0f55a507bb1b44b3ae5a7e14524a183899074adbedc6697823b47fa9fa7f498e637d327a0d7824e +SHA512 (pytest-filter-subpackage-0.1.2.tar.gz) = a760b352dce0973b727d1767f6cd5bef0b1952a2ddcf8e6c03ec70e60bb8670512cc89d6caa05d766454a00422b28fdb40a885d7fa97f7dd0fd74344fe1874ed