forked from pool/python-pipdeptree
* Bump pypa/gh-action-pypi-publish from 1.8.3 to 1.8.5 by @dependabot in #219 * Bump deps and tools by @gaborbernat in #220 * Bump deps and tools by @gaborbernat in #222 * Bump deps and tools by @gaborbernat in #224 * Add trusted-publish by @gaborbernat in #226 * Fix typo: "Maermaid" by @gschaffner in #227 * Add 3.12 support by @gaborbernat in #228 - 2.7.0: * Bump deps and tools by @gaborbernat in #210 * Bump deps and tools by @gaborbernat in #212 * Bump pypa/gh-action-pypi-publish from 1.8.1 to 1.8.3 by @dependabot in #214 * Implement: Use fnmatch for include and exclude #213 by @jensens in #215 - 2.6.0: * Bump deps and tools by @gaborbernat in #203 * Bump pypa/gh-action-pypi-publish from 1.6.4 to 1.8.1 by @dependabot in #206 * Handle and test mermaid output for a reversed tree by @ajkerrigan in #209 - 2.5.2: * Quote Mermaid node and edge labels by @kdeldycke in #200 * Unique IDs in Mermaid not conflicting with reserved keywords by @kdeldycke in #201 - 2.5.1: * Fix mermaid option by @kdeldycke in #196 * Bump tools and deps and fix changelog by @gaborbernat in #199 - Update to 2.5.0: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pipdeptree?expand=0&rev=6
77 lines
2.3 KiB
RPMSpec
77 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pipdeptree
|
|
#
|
|
# Copyright (c) 2023 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-pipdeptree
|
|
Version: 2.7.1
|
|
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
|
|
BuildRequires: %{python_module hatch-vcs}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pip
|
|
Suggests: python-graphviz
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module graphviz}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module virtualenv}
|
|
BuildRequires: graphviz-gnome
|
|
# /SECTION
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
%python_subpackages
|
|
|
|
%description
|
|
Command line utility to show dependency tree of packages.
|
|
|
|
%prep
|
|
%setup -q -n pipdeptree-%{version}
|
|
|
|
%build
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%python_clone -a %{buildroot}%{_bindir}/pipdeptree
|
|
|
|
%check
|
|
%pytest -k 'not test_custom_interpreter'
|
|
|
|
%post
|
|
%{python_install_alternative pipdeptree}
|
|
|
|
%postun
|
|
%{python_uninstall_alternative pipdeptree}
|
|
|
|
%files %{python_files}
|
|
%doc CHANGES.md README.md
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/pipdeptree
|
|
%{python_sitelib}/pipdeptree
|
|
%{python_sitelib}/pipdeptree-%{version}*-info
|
|
|
|
%changelog
|