python-tox-current-env/python-tox-current-env.spec

70 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2024-05-21 13:28:59 +02:00
#
# 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/
#
2024-05-22 12:16:41 +02:00
Name: python-tox-current-env
2024-05-21 13:28:59 +02:00
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
2024-05-21 13:34:21 +02:00
%autosetup -p1 -n tox-current-env
2024-05-21 13:28:59 +02:00
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
2024-05-23 09:58:00 +02:00
# 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
2024-05-21 13:28:59 +02:00
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/tox_current_env
%{python_sitelib}/tox_current_env-%{version}.dist-info
%changelog