From a2da854b96d6b184bc4d8d0df7e864b424be332bce573074e34910dc376fdabd Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 27 Jan 2026 00:18:02 +0000 Subject: [PATCH] - Update to 2.30.0: * Implement --output to centralize choosing an output format * Have render functions call print() themselves rather than the caller * Replace large EnumAction class with simpler logic * Drop 3.9 support * Allow --exclude to be used with --include * Replace pytest-console-scripts plugin with smaller in-house solution * Remove wheel package from tests due to virtualenv v20.31.0 * Implement --exclude-dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pipdeptree?expand=0&rev=20 --- .gitattributes | 23 ++++ .gitignore | 1 + pipdeptree-2.26.1.tar.gz | 3 + pipdeptree-2.30.0.tar.gz | 3 + python-pipdeptree.changes | 233 ++++++++++++++++++++++++++++++++++++++ python-pipdeptree.spec | 79 +++++++++++++ 6 files changed, 342 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pipdeptree-2.26.1.tar.gz create mode 100644 pipdeptree-2.30.0.tar.gz create mode 100644 python-pipdeptree.changes create mode 100644 python-pipdeptree.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pipdeptree-2.26.1.tar.gz b/pipdeptree-2.26.1.tar.gz new file mode 100644 index 0000000..3ee64f2 --- /dev/null +++ b/pipdeptree-2.26.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fef783c2aa72a3736210fc822c5cd763af519a4ede684762ddb92dc562ae1576 +size 40473 diff --git a/pipdeptree-2.30.0.tar.gz b/pipdeptree-2.30.0.tar.gz new file mode 100644 index 0000000..909b241 --- /dev/null +++ b/pipdeptree-2.30.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60aa625068115a2879e4d5d3966cd9734a665e600797d1c6c2145e514f9d10b9 +size 42086 diff --git a/python-pipdeptree.changes b/python-pipdeptree.changes new file mode 100644 index 0000000..42b75c5 --- /dev/null +++ b/python-pipdeptree.changes @@ -0,0 +1,233 @@ +------------------------------------------------------------------- +Tue Jan 27 00:16:11 UTC 2026 - Steve Kowalik + +- Update to 2.30.0: + * Implement --output to centralize choosing an output format + * Have render functions call print() themselves rather than the caller + * Replace large EnumAction class with simpler logic + * Drop 3.9 support + * Allow --exclude to be used with --include + * Replace pytest-console-scripts plugin with smaller in-house solution + * Remove wheel package from tests due to virtualenv v20.31.0 + * Implement --exclude-dependencies + +------------------------------------------------------------------- +Mon Apr 28 16:43:51 UTC 2025 - Dirk Müller + +- update to 2.26.1: + * Refactor license option tests to use Mock objects instead of + lambdas + * Handle exceptions when passed an invalid interpreter +- update to 2.26.0: + * Support for License-Expression field +- update to 2.25.1: + * Remove unused .gitignore rule + * Use SPDX license identifier + * Remove unnecessary assertion in render() + * Update CLI usage for --all by moving it to the "render" group + * Split freeze and text output into their own implementations + * Remove unused graphviz library code + * Use MockGraph type alias in tests + * Update outdated graphviz docs +- update to 2.25.0: + * Migrate tox config from ini to toml + * Drop support for python 3.8 +- update to 2.24.0: + * Implement --path argument + +------------------------------------------------------------------- +Mon Oct 28 16:51:53 UTC 2024 - Dirk Müller + +- update to 2.23.4: + * Improve the CI + * Fix CI shield +- update to 2.23.2: + * Move pip's frozen requirement API into a single module + * Declare 3.13 support + +------------------------------------------------------------------- +Mon Aug 5 13:18:59 UTC 2024 - Dirk Müller + +- update to 2.23.1: + * Use `__contains__` to avoid `KeyError` with + importlib_metadata==8.0.0 + * Use is_missing property in ReqPackage.is_conflicting() for + DRYness + * Readd `# noqa: S603` to _detect_env to resolve Ruff error + * Allow pre-releases when detecting version conflicts + +------------------------------------------------------------------- +Sun Jun 30 19:27:17 UTC 2024 - Dirk Müller + +- update to 2.23.0: + * Use non-deprecated pytest-console-scripts API + * Print resolved interpreter when using env detection +- update to 2.22.0: + * Add pypy to CI + * Warn about and ignore invalid package metadata in the + environment +- update to 2.21.0: + * Implement --python auto for virtual environment detection +- update to 2.20.0: + * Remove publish job from the check workflow + * Mimic pip when handling --user-only in a virtual environment +- update to 2.19.1: + * Point "Changelog" project URL at Releases page +- update to 2.19.0: + * Use dropdown instead of checkbox in bug report template + * Have duplicate metadata and invalid req strings honor --warn + option +- update to 2.18.1: + * Modify tests to ensure $PYTHONPATH is given to the custom + interpreter + * Fix test_console failure finding pipdeptree in other + environments +- update to 2.18.0: + * Handle invalid requirement strings when using + importlib.metadata + * refactor the non_host part for not injecting to custom env +- update to 2.17.0: + * Use GitHub issue forms + * replace pkg_resources with importlib.metadata and packaging + * Handle duplicated package metadata when using + importlib.metadata +- update to 2.16.2: + * List pip as dependency +- update to 2.16.1: + * Mock importlib.metadata usage in PackageDAG.from_pkgs() tests +- update to 2.16.0: + * Fix key mismatch between requirements and dists +- update to 2.15.1: + * Have --license work with --reverse +- update to 2.15.0: + * Have --license and --reverse options in the "render" argument + group +- update to 2.14.0: + * Implement --license option + +------------------------------------------------------------------- +Mon Jan 22 22:34:12 UTC 2024 - Dirk Müller + +- update to 2.13.2: + * models/package: have `version_spec` only exist in + `ReqPackage` + * Use "Any" value if necessary for required version in JSON + render + +------------------------------------------------------------------- +Tue Jan 9 21:42:18 UTC 2024 - Dirk Müller + +- update to 2.13.1: + * 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 + * Implement -d/--depth argument + +------------------------------------------------------------------- +Thu May 4 16:34:16 UTC 2023 - Daniel Garcia + +- Update to 2.7.1: + * 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: + * Implements Mermaid output by @kdeldycke in #195 +- 2.4.0: + * Bump pypa/gh-action-pypi-publish from 1.5.1 to 1.5.2 by + @dependabot in #182 + * Bump pypa/gh-action-pypi-publish from 1.5.2 to 1.6.4 by + @dependabot in #185 + * Bump deps and tools by @gaborbernat in #192 + * Make the output of the dot format deterministic and stable by + @kdeldycke in #189 +- 2.3.3: + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #176 + * Update README for tested Python versions by @tomkins in #178 +- 2.3.2: + * Generalize license by @gaborbernat in #179 +- 2.3.1: + * Use importlib.metadata for guess_version instead of importing the + module by @saaketp in #171 +- 2.3.0: + * Make pipdeptree works with python 3.11 by @dqkqd in #173 + +------------------------------------------------------------------- +Fri Jan 21 01:22:44 UTC 2022 - Steve Kowalik + +- Update to 2.2.1: + * Fix --user-only and --freeze flags which were broken after the last release. + * Fix for compatibility with new version of graphviz (>= 0.18.1). + * Fix pipdeptree to work with pip version 21.3. The _internal pip api that was being used earlier is now replaced with new functions. (PR #154) + * JSON output is sorted alphabetically to make it deterministic + * Fix --freeze option due to breaking changes in pip's internal api in version > 21.1.1 + * Include license file in dist package + * Support for running in the context of a virtualenv (without installing pipdeptree inside the virtualenv) + * Avoid crash when rendering cyclic dependencies + * Fix graphviz (dot file) output + * Handle a (rare) case while guessing version of a package + * Improve integration tests +- Remove the hacked together virtualenv that was 2.7 based, since it is no + longer needed. +- Add virtualenv to BuildRequires. + +------------------------------------------------------------------- +Wed Aug 19 15:07:54 UTC 2020 - John Vandenberg + +- Update to v1.0.0 + * Use pkg_resources vendored with pip + +------------------------------------------------------------------- +Thu Mar 7 03:45:29 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.13.2 diff --git a/python-pipdeptree.spec b/python-pipdeptree.spec new file mode 100644 index 0000000..20948cb --- /dev/null +++ b/python-pipdeptree.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-pipdeptree +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# 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.30.0 +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 base >= 3.10} +BuildRequires: %{python_module hatch-vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-packaging >= 25 +Requires: python-pip >= 25.2 +Suggests: python-graphviz >= 0.21 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module graphviz >= 0.21} +BuildRequires: %{python_module packaging >= 25} +BuildRequires: %{python_module pip >= 25.2} +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 README.md +%license LICENSE +%python_alternative %{_bindir}/pipdeptree +%{python_sitelib}/pipdeptree +%{python_sitelib}/pipdeptree-%{version}.dist-info + +%changelog