2018-05-03 07:33:51 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-easydev
|
|
|
|
|
#
|
2025-01-10 04:36:05 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-05-03 07:33:51 +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.
|
|
|
|
|
|
2018-12-04 13:24:44 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-03 07:33:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-easydev
|
2024-04-29 13:24:08 +00:00
|
|
|
Version: 0.13.2
|
2018-05-03 07:33:51 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Common utilities to ease the development of Python packages
|
|
|
|
|
License: BSD-3-Clause
|
2020-05-27 10:11:14 +00:00
|
|
|
URL: https://github.com/cokelaer/easydev
|
2024-04-29 13:24:08 +00:00
|
|
|
Source: https://github.com/cokelaer/easydev/archive/refs/tags/v%{version}.tar.gz#/easydev-%{version}.tar.gz
|
2025-01-10 04:36:05 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#cokelaer/easydev#37
|
|
|
|
|
Patch0: support-poetry-core-2.patch
|
2018-05-03 07:33:51 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-27 10:11:14 +00:00
|
|
|
Requires: python-colorama
|
|
|
|
|
Requires: python-colorlog
|
2024-04-29 13:24:08 +00:00
|
|
|
Requires: python-line_profiler
|
2020-05-27 10:11:14 +00:00
|
|
|
Requires: python-pexpect
|
2024-04-29 13:24:08 +00:00
|
|
|
Requires: python-platformdirs
|
2020-05-27 10:11:14 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-04-29 13:24:08 +00:00
|
|
|
Requires(postun): update-alternatives
|
2020-05-27 10:11:14 +00:00
|
|
|
Recommends: python-line_profiler
|
|
|
|
|
BuildArch: noarch
|
2018-05-03 07:33:51 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module colorama}
|
|
|
|
|
BuildRequires: %{python_module colorlog}
|
2024-04-29 13:24:08 +00:00
|
|
|
BuildRequires: %{python_module line_profiler}
|
2018-05-03 07:33:51 +00:00
|
|
|
BuildRequires: %{python_module pexpect}
|
2024-04-29 13:24:08 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module platformdirs}
|
|
|
|
|
BuildRequires: %{python_module poetry}
|
2018-05-03 07:33:51 +00:00
|
|
|
BuildRequires: %{python_module pytest-cov}
|
2021-09-16 04:06:32 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2018-05-03 07:33:51 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The easydev package provides miscellaneous functions that are
|
|
|
|
|
repeatedly used during the development of Python packages. The goal
|
|
|
|
|
is to help developers on speeding up their own dev. It has been used
|
|
|
|
|
also as an incubator for other packages and is stable.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-03-16 20:49:46 +00:00
|
|
|
%autosetup -p1 -n easydev-%{version}
|
2018-05-03 07:33:51 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-04-29 13:24:08 +00:00
|
|
|
%pyproject_wheel
|
2018-05-03 07:33:51 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-04-29 13:24:08 +00:00
|
|
|
%pyproject_install
|
2018-05-03 07:33:51 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2021-09-16 04:06:32 +00:00
|
|
|
%check
|
|
|
|
|
# Requires network access
|
|
|
|
|
%pytest -k 'not test_isurl'
|
|
|
|
|
|
2018-05-03 07:33:51 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license COPYING
|
2024-04-29 13:24:08 +00:00
|
|
|
%{python_sitelib}/easydev
|
2025-01-10 04:36:05 +00:00
|
|
|
%{python_sitelib}/easydev-%{version}.dist-info
|
2018-05-03 07:33:51 +00:00
|
|
|
|
|
|
|
|
%changelog
|