1e4365
%global pypi_name tox-current-env
1e4365
%global pypi_under tox_current_env
1e4365
1e4365
Name:           python-%{pypi_name}
1e4365
Version:        0.0.6
1e4365
Release:        1%{?dist}
1e4365
Summary:        Tox plugin to run tests in current Python environment
1e4365
1e4365
License:        MIT
1e4365
URL:            https://github.com/fedora-python/tox-current-env
1e4365
Source0:        %{pypi_source}
1e4365
BuildArch:      noarch
1e4365
1e4365
BuildRequires:  python%{python3_pkgversion}-devel
1e4365
BuildRequires:  pyproject-rpm-macros
1e4365
1e4365
%description
1e4365
The tox-current-env plugin allows to run tests in current Python environment.
1e4365
1e4365
1e4365
%package -n     python%{python3_pkgversion}-%{pypi_name}
1e4365
Summary:        %{summary}
1e4365
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
1e4365
1e4365
%description -n python%{python3_pkgversion}-%{pypi_name}
1e4365
The tox-current-env plugin allows to run tests in current Python environment.
1e4365
1e4365
1e4365
%prep
1e4365
%autosetup -n %{pypi_name}-%{version}
1e4365
1e4365
d97e8d
# %%generate_buildrequires
1e4365
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
d97e8d
# %%pyproject_buildrequires -r
1e4365
1e4365
1e4365
%build
d97e8d
# %%pyproject_wheel
d97e8d
%py3_build
1e4365
1e4365
1e4365
%install
d97e8d
# %%pyproject_install
d97e8d
%py3_install
1e4365
1e4365
d97e8d
# %%check
1e4365
# the tests currently only work within actual tox and with various Python
1e4365
# versions installed, so we skip them.
d97e8d
# %%py3_check_import %{pypi_under}
1e4365
1e4365
1e4365
%files -n python%{python3_pkgversion}-%{pypi_name}
1e4365
%license LICENSE
1e4365
%doc README.rst
1e4365
%{python3_sitelib}/%{pypi_under}/
d97e8d
%{python3_sitelib}/%{pypi_under}-%{version}-py%{python3_version}.egg-info/
d97e8d
1e4365
1e4365
1e4365
%changelog
1e4365
* Mon Mar 29 2021 Miro Hrončok <mhroncok@redhat.com> - 0.0.6-1
1e4365
- Update to 0.0.6
1e4365
1e4365
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.5-2
1e4365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1e4365
1e4365
* Wed Nov 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.5-1
1e4365
- Update to 0.0.5
1e4365
1e4365
* Wed Nov 04 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.4-1
1e4365
- Update to 0.0.4
1e4365
1e4365
* Wed Sep 30 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.3-1
1e4365
- Update to 0.0.3
1e4365
1e4365
* Wed Aug 12 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.2-7
1e4365
- Fix FTBFS with pyproject-rpm-macros >= 0-23
1e4365
1e4365
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-6
1e4365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1e4365
1e4365
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.2-5
1e4365
- Rebuilt for Python 3.9
1e4365
1e4365
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-4
1e4365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1e4365
1e4365
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.2-3
1e4365
- Rebuilt for Python 3.8.0rc1 (#1748018)
1e4365
1e4365
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.2-2
1e4365
- Rebuilt for Python 3.8
1e4365
1e4365
* Mon Aug 12 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.2-1
1e4365
- Update to 0.0.2
1e4365
1e4365
* Wed Jul 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.1-1
1e4365
- Initial package