2019-10-14 10:51:06 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-nox
|
|
|
|
|
#
|
2024-03-15 21:09:27 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-10-14 10:51:06 +00:00
|
|
|
#
|
|
|
|
|
# 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-04-20 20:58:11 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
%global padded_version 2024.04.15
|
2019-10-14 10:51:06 +00:00
|
|
|
Name: python-nox
|
2024-10-23 20:29:50 +00:00
|
|
|
Version: 2024.10.9
|
2019-10-14 10:51:06 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Flexible test automation
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://nox.thea.codes
|
2023-06-23 02:42:55 +00:00
|
|
|
Source: https://github.com/wntrblm/nox/archive/refs/tags/%{padded_version}.tar.gz#/nox-%{version}.tar.gz
|
2024-12-20 00:12:36 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-broken-mock-test.patch (gh#28bbaa5)
|
|
|
|
|
Patch0: fix-broken-mock-test.patch
|
|
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2023-04-27 21:49:16 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2019-10-14 10:51:06 +00:00
|
|
|
BuildRequires: fdupes
|
2023-04-27 21:49:16 +00:00
|
|
|
BuildRequires: git-core
|
2019-10-14 10:51:06 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-argcomplete >= 1.9.4
|
|
|
|
|
Requires: python-colorlog >= 2.6.1
|
|
|
|
|
Requires: python-virtualenv >= 14.0.0
|
2024-12-20 00:12:36 +00:00
|
|
|
Requires: (python-tomli if python-base < 3.11)
|
2020-05-21 18:33:47 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-03-15 21:09:27 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-10-14 10:51:06 +00:00
|
|
|
Suggests: python-Jinja2
|
|
|
|
|
Suggests: python-tox
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module Flask}
|
|
|
|
|
BuildRequires: %{python_module argcomplete >= 1.9.4}
|
|
|
|
|
BuildRequires: %{python_module colorlog >= 2.6.1}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module tox}
|
|
|
|
|
BuildRequires: %{python_module virtualenv >= 14.0.0}
|
|
|
|
|
# Missing deps conda
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Flexible test automation.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-06-23 02:42:55 +00:00
|
|
|
%autosetup -p1 -n nox-%{padded_version}
|
2019-10-14 10:51:06 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-04-27 21:49:16 +00:00
|
|
|
%pyproject_wheel
|
2019-10-14 10:51:06 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-04-27 21:49:16 +00:00
|
|
|
%pyproject_install
|
2020-05-21 18:33:47 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/tox-to-nox
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/nox
|
2019-10-14 10:51:06 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2020-05-21 18:33:47 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative tox-to-nox
|
|
|
|
|
%python_install_alternative nox
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative tox-to-nox
|
|
|
|
|
%python_uninstall_alternative nox
|
|
|
|
|
|
2019-10-14 10:51:06 +00:00
|
|
|
%files %{python_files}
|
2023-04-27 21:49:16 +00:00
|
|
|
%doc README.md
|
2019-10-14 10:51:06 +00:00
|
|
|
%license LICENSE
|
2020-05-21 18:33:47 +00:00
|
|
|
%python_alternative %{_bindir}/nox
|
|
|
|
|
%python_alternative %{_bindir}/tox-to-nox
|
2023-04-27 21:49:16 +00:00
|
|
|
%{python_sitelib}/nox*
|
2019-10-14 10:51:06 +00:00
|
|
|
|
|
|
|
|
%changelog
|