|
|
|
@ -1,30 +1,23 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.7.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 1;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
%bcond bootstrap 0
|
|
|
|
|
# Tests are enabled by default, unless bootstrapping (for pytest-xdist)
|
|
|
|
|
%bcond tests %{without bootstrap}
|
|
|
|
|
|
|
|
|
|
Name: python-tox-current-env
|
|
|
|
|
Version: 0.0.14
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Version: 0.0.8
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Tox plugin to run tests in current Python environment
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/fedora-python/tox-current-env
|
|
|
|
|
Source0: %{pypi_source tox_current_env}
|
|
|
|
|
Source0: %{pypi_source tox-current-env}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
|
|
|
|
# test dependencies extracted from tox.ini
|
|
|
|
|
# TODO use [tests] extra with the next release
|
|
|
|
|
# https://github.com/fedora-python/tox-current-env/pull/53
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-packaging
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
@ -38,12 +31,12 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n tox_current_env-%{version}
|
|
|
|
|
%autosetup -n tox-current-env-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
|
|
|
|
|
%pyproject_buildrequires %{?with_tests:-x tests}
|
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -59,10 +52,8 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
# hooks[34].py are imported in hooks.py based on tox version so we have to
|
|
|
|
|
# exclude them here.
|
|
|
|
|
%pyproject_check_import -e '*.hooks?'
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
# deselected tests run tox without the options for this plugin and hence they need internet
|
|
|
|
|
%pytest -k "not regular and not noquiet_installed_packages[None]"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-tox-current-env -f %{pyproject_files}
|
|
|
|
@ -70,49 +61,8 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.0.14-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Miro Hrončok <miro@hroncok.cz> - 0.0.14-1
|
|
|
|
|
- Update to 0.0.14
|
|
|
|
|
- Introduces --print-dependency-groups-to (PEP 735)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 02 2024 Miro Hrončok <miro@hroncok.cz> - 0.0.12-1
|
|
|
|
|
- Update to 0.0.12
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.11-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.0.11-11
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.0.11-10
|
|
|
|
|
- Bootstrap for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.11-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.11-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.11-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 0.0.11-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.0.11-3
|
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.11-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 10 2023 Miro Hrončok <mhroncok@redhat.com> - 0.0.11-1
|
|
|
|
|
- Update to 0.0.11 with tox 4.1.2+ support
|
|
|
|
|
|
|
|
|
|
* Wed Dec 14 2022 Miro Hrončok <mhroncok@redhat.com> - 0.0.10-1
|
|
|
|
|
- Update to 0.0.10 with tox 4 support
|
|
|
|
|
* Wed Oct 23 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.0.8-4
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
* Wed Dec 07 2022 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-4
|
|
|
|
|
- Run tests during the package build
|
|
|
|
@ -180,5 +130,3 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.1-1
|
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|