From 1fcd660c91498b9760004c911b021db72ba0b5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Thu, 2 Mar 2023 17:40:17 -0800 Subject: [PATCH] Bump tools and deps and fix changelog (#199) --- .pre-commit-config.yaml | 8 ++++-- CHANGES.md | 20 +++++++++++++++ pyproject.toml | 54 +++++++++++++++++++++++++---------------- tox.ini | 2 +- 4 files changed, 60 insertions(+), 24 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7747985..6cf10f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,14 +35,18 @@ repos: hooks: - id: tox-ini-fmt args: ["-p", "fix"] + - repo: https://github.com/tox-dev/pyproject-fmt + rev: "0.9.2" + hooks: + - id: pyproject-fmt - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 hooks: - id: flake8 additional_dependencies: - - flake8-bugbear==23.1.20 + - flake8-bugbear==23.2.13 - flake8-comprehensions==3.10.1 - - flake8-pytest-style==1.6 + - flake8-pytest-style==1.7.2 - flake8-spellcheck==0.28 - flake8-unused-arguments==0.0.13 - flake8-noqa==1.3 diff --git a/CHANGES.md b/CHANGES.md index 23fd608..25a0589 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,25 @@ # Changelog +## 2.5.1 + +- Fix Mermaid flag. + +## 2.5.0 + +- Implements Mermaid output. + +## 2.4.0 + +- Make the output of the dot format deterministic and stable. + +## 2.3.3 + +- Update README for tested Python versions. + +## 2.3.2 + +- Generalize license. + ## 2.3.1 - Use `importlib.metadata` to guess version of package before fallback to `pkg.__version__`. diff --git a/pyproject.toml b/pyproject.toml index 0c40870..e686d3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,35 +1,27 @@ [build-system] build-backend = "hatchling.build" -requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"] +requires = [ + "hatch-vcs>=0.3", + "hatchling>=1.13", +] [project] name = "pipdeptree" -description = 'Command line utility to show dependency tree of packages.' +description = "Command line utility to show dependency tree of packages." readme = "README.md" +keywords = [ + "application", + "cache", + "directory", + "log", + "user", +] license.file = "LICENSE" maintainers = [ { name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }, { name = "Vineet Naik", email = "naikvin@gmail.com" }, ] -urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree" -urls.Homepage = "https://github.com/tox-dev/pipdeptree" -urls.Source = "https://github.com/tox-dev/pipdeptree" -urls.Tracker = "https://github.com/tox-dev/pipdeptree/issues" requires-python = ">=3.7" -optional-dependencies.test = [ - "covdefaults>=2.2.2", - "diff-cover>=7.4", - "pip>=23", - "pytest>=7.2.1", - "pytest-cov>=4", - "pytest-mock>=3.10", - "virtualenv<21,>=20.17.1", -] -optional-dependencies.graphviz = [ - "graphviz>=0.20.1", -] -scripts.pipdeptree = "pipdeptree:main" -keywords = ["application", "cache", "directory", "log", "user"] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", @@ -40,7 +32,27 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", ] -dynamic = ["version"] +dynamic = [ + "version", +] +optional-dependencies.graphviz = [ + "graphviz>=0.20.1", +] +optional-dependencies.test = [ + "covdefaults>=2.2.2", + "diff-cover>=7.4", + "pip>=23.0.1", + "pytest>=7.2.1", + "pytest-cov>=4", + "pytest-mock>=3.10", + "virtualenv<21,>=20.20", +] +urls.Changelog = "https://github.com/tox-dev/pipdeptree/blob/main/CHANGES.md" +urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree" +urls.Homepage = "https://github.com/tox-dev/pipdeptree" +urls.Source = "https://github.com/tox-dev/pipdeptree" +urls.Tracker = "https://github.com/tox-dev/pipdeptree/issues" +scripts.pipdeptree = "pipdeptree:main" [tool.hatch] build.hooks.vcs.version-file = "src/pipdeptree/version.py" diff --git a/tox.ini b/tox.ini index 59bb552..e3066ef 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ wheel_build_env = .pkg description = format the code base to adhere to our styles, and complain about what we cannot do automatically skip_install = true deps = - pre-commit>=3.0.4 + pre-commit>=3.1.1 commands = pre-commit run --all-files --show-diff-on-failure