2019-03-10 10:58:31 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pipdeptree
|
|
|
|
#
|
2024-01-09 21:44:29 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-10 10:58:31 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pipdeptree
|
2024-10-28 16:52:10 +00:00
|
|
|
Version: 2.23.4
|
2019-03-10 10:58:31 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Command line utility to show dependency tree of packages
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/naiquevin/pipdeptree
|
|
|
|
Source: https://github.com/naiquevin/pipdeptree/archive/%{version}.tar.gz#/pipdeptree-%{version}.tar.gz
|
2023-05-04 16:39:33 +00:00
|
|
|
BuildRequires: %{python_module hatch-vcs}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
2019-03-10 10:58:31 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-05-04 16:39:33 +00:00
|
|
|
Requires: python-pip
|
2019-03-10 10:58:31 +00:00
|
|
|
Suggests: python-graphviz
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module graphviz}
|
2023-05-04 16:39:33 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2019-03-10 10:58:31 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-01-21 01:29:28 +00:00
|
|
|
BuildRequires: %{python_module virtualenv}
|
2019-03-10 10:58:31 +00:00
|
|
|
BuildRequires: graphviz-gnome
|
|
|
|
# /SECTION
|
2022-01-21 01:29:28 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-06-30 19:28:42 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-03-10 10:58:31 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Command line utility to show dependency tree of packages.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pipdeptree-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-05-04 16:39:33 +00:00
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
|
|
|
|
%pyproject_wheel
|
2019-03-10 10:58:31 +00:00
|
|
|
|
|
|
|
%install
|
2023-05-04 16:39:33 +00:00
|
|
|
%pyproject_install
|
2019-03-10 10:58:31 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pipdeptree
|
|
|
|
|
|
|
|
%check
|
2024-01-09 21:44:29 +00:00
|
|
|
%pytest -k 'not test_custom_interpreter and not test_console'
|
2019-03-10 10:58:31 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{python_install_alternative pipdeptree}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{python_uninstall_alternative pipdeptree}
|
|
|
|
|
|
|
|
%files %{python_files}
|
2024-06-30 19:28:42 +00:00
|
|
|
%doc README.md
|
2019-03-10 10:58:31 +00:00
|
|
|
%license LICENSE
|
|
|
|
%python_alternative %{_bindir}/pipdeptree
|
2023-05-04 16:39:33 +00:00
|
|
|
%{python_sitelib}/pipdeptree
|
|
|
|
%{python_sitelib}/pipdeptree-%{version}*-info
|
2019-03-10 10:58:31 +00:00
|
|
|
|
|
|
|
%changelog
|