forked from pool/python-pipdeptree
* models/package: move `requires()` and `version` to
`DistPackage`
* Update README to show 2.13.0 CLI syntax
- update to 2.13.0:
* Add missing `user_only` field in `Options`
* Exit with error when `-p` given patterns that fail to match
- update to 2.12.0:
* Detect dependency cycles beyond a depth = 2
- update to 2.11.0:
* Have --packages and --all work together
- update to 2.10.2:
* Internal refactors.
- update to 2.10.1:
* Fix graphviz CLI failing
- update to 2.10.0:
* Split project to parts
* Drop 3.7 support
* Fix entrypoints
* Improve CLI
* Add type check to CI and fix errors
* Simplify loops
- update to 2.9.6:
* Avoid changing `t` in `randomized_dag_copy()` by shallow
copying
- update to 2.9.5:
* Exclude dependabot and pre-commit ci from release notes
* Add type information
- update to 2.9.4:
* Allow to force encoding
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pipdeptree?expand=0&rev=8
77 lines
2.3 KiB
RPMSpec
77 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-pipdeptree
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-pipdeptree
|
|
Version: 2.13.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 and not test_console'
|
|
|
|
%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
|