|
|
|
@ -5,15 +5,15 @@
|
|
|
|
|
%bcond_with internet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global pypiname tox
|
|
|
|
|
Name: python-%{pypiname}
|
|
|
|
|
Version: 3.9.0
|
|
|
|
|
%global pypi_name tox
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 3.13.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Virtualenv-based automation of test activities
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://tox.testrun.org/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/t/%{pypiname}/%{pypiname}-%{version}.tar.gz
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -28,10 +28,10 @@ can use for:
|
|
|
|
|
boilerplate and merging CI and shell-based testing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{pypiname}
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypiname}}
|
|
|
|
|
Provides: %{pypiname} = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
Provides: %{pypi_name} = %{version}-%{release}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
@ -66,8 +66,11 @@ Obsoletes: python3-detox < 0.19-5
|
|
|
|
|
BuildRequires: python3-filelock
|
|
|
|
|
BuildRequires: python3-flaky
|
|
|
|
|
BuildRequires: python3-freezegun
|
|
|
|
|
BuildRequires: python3-importlib-metadata
|
|
|
|
|
BuildRequires: python3-packaging
|
|
|
|
|
BuildRequires: python3-pathlib2
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-pluggy >= 0.12
|
|
|
|
|
BuildRequires: python3-psutil
|
|
|
|
|
BuildRequires: python3-py
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
@ -76,12 +79,13 @@ BuildRequires: python3-pytest-mock
|
|
|
|
|
BuildRequires: python3-pytest-xdist
|
|
|
|
|
BuildRequires: python3-toml
|
|
|
|
|
BuildRequires: python3-virtualenv
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: /usr/bin/git
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%?python_enable_dependency_generator
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{pypiname}
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
Tox as is a generic virtualenv management and test command line tool you
|
|
|
|
|
can use for:
|
|
|
|
|
|
|
|
|
@ -93,10 +97,10 @@ can use for:
|
|
|
|
|
boilerplate and merging CI and shell-based testing.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pypiname}-%{version}
|
|
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
# remove bundled egg-info
|
|
|
|
|
rm -rf %{pypiname}.egg-info
|
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
@ -125,18 +129,21 @@ export PATH=$(pwd)/.path:%{buildroot}%{_bindir}:$PATH
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
export TOXENV=py%{python3_version_nodots}
|
|
|
|
|
export TOX_TESTENV_PASSENV="PATH TOX_TESTENV_PASSENV"
|
|
|
|
|
# TODO figure out why PEP517/518 tests and test_tox_parallel_build_safe won't pass
|
|
|
|
|
pytest-3 -n auto -k "not test_verbose_isolated_build and not test_tox_parallel_build_safe and not test_dist_exists_version_change"
|
|
|
|
|
# TODO figure out why PEP517/518 tests and test_provision_cli_args_ignore won't pass
|
|
|
|
|
pytest-3 -n auto -k "not test_verbose_isolated_build and not test_dist_exists_version_change and not test_provision_cli_args_ignore"
|
|
|
|
|
rm -rf .path
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypiname}
|
|
|
|
|
%{_bindir}/%{pypiname}
|
|
|
|
|
%{_bindir}/%{pypiname}-quickstart
|
|
|
|
|
%{python3_sitelib}/%{pypiname}
|
|
|
|
|
%{python3_sitelib}/%{pypiname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
|
%{_bindir}/%{pypi_name}
|
|
|
|
|
%{_bindir}/%{pypi_name}-quickstart
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 08 2019 Miro Hrončok <mhroncok@redhat.com> - 3.13.2-1
|
|
|
|
|
- Update to 3.13.2 (#1699032)
|
|
|
|
|
|
|
|
|
|
* Tue Apr 30 2019 Miro Hrončok <mhroncok@redhat.com> - 3.9.0-1
|
|
|
|
|
- Update to 3.9.0
|
|
|
|
|
- Obsolete detox
|
|
|
|
|