|
|
@ -1,6 +1,20 @@
|
|
|
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
|
|
|
## (rpmautospec version 0.7.2)
|
|
|
|
|
|
|
|
## 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
|
|
|
|
Name: python-tox-current-env
|
|
|
|
Version: 0.0.8
|
|
|
|
Version: 0.0.12
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Tox plugin to run tests in current Python environment
|
|
|
|
Summary: Tox plugin to run tests in current Python environment
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -11,13 +25,6 @@ BuildArch: noarch
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
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
|
|
|
|
%description
|
|
|
|
The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
|
@ -36,7 +43,7 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
|
|
|
|
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
%pyproject_buildrequires %{?with_tests:-x tests}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -52,8 +59,10 @@ 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
|
|
|
|
# hooks[34].py are imported in hooks.py based on tox version so we have to
|
|
|
|
# exclude them here.
|
|
|
|
# exclude them here.
|
|
|
|
%pyproject_check_import -e '*.hooks?'
|
|
|
|
%pyproject_check_import -e '*.hooks?'
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
# deselected tests run tox without the options for this plugin and hence they need internet
|
|
|
|
# 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]"
|
|
|
|
%pytest -k "not regular and not noquiet_installed_packages[None]"
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-tox-current-env -f %{pyproject_files}
|
|
|
|
%files -n python%{python3_pkgversion}-tox-current-env -f %{pyproject_files}
|
|
|
@ -61,8 +70,45 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Oct 23 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.0.8-4
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.0.12-1
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
|
|
|
* 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 Dec 07 2022 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-4
|
|
|
|
* Wed Dec 07 2022 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-4
|
|
|
|
- Run tests during the package build
|
|
|
|
- Run tests during the package build
|
|
|
@ -130,3 +176,5 @@ 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
|
|
|
|
* Wed Jul 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.1-1
|
|
|
|
- Initial package
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|