# # spec file for package python-tox-current-env # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: python-tox-current-env Version: 0.0.11 Release: 0 Summary: Use current environment instead of virtualenv for tox testenvs License: MIT URL: https://github.com/fedora-python/tox-current-env Source: tox-current-env.tar.gz BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} # SECTION test requirements BuildRequires: %{python_module tox >= 3.24} # /SECTION BuildRequires: fdupes Requires: python-tox >= 3.24 Suggests: python-pytest Suggests: python-pytest-xdist Suggests: python-packaging BuildArch: noarch %python_subpackages %description Use current environment instead of virtualenv for tox testenvs %prep %autosetup -p1 -n tox-current-env %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # 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 %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/tox_current_env %{python_sitelib}/tox_current_env-%{version}.dist-info %changelog