griffecli 2.0.2__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  <!-- insertion marker -->
8
+ ## [2.1.0](https://github.com/mkdocstrings/griffe/releases/tag/2.1.0) - 2026-06-19
9
+
10
+ <small>[Compare with 2.0.2](https://github.com/mkdocstrings/griffe/compare/2.0.2...2.1.0)</small>
11
+
12
+ ### Build
13
+
14
+ - Add tests to source distributions for `griffecli` and `griffelib` packages. [Issue-452](https://github.com/mkdocstrings/griffe/issues/452)
15
+
16
+ ### Features
17
+
18
+ - Add logging format for Azure Devops ([82526e4](https://github.com/mkdocstrings/griffe/commit/82526e487946f838c2521e531ef8716dd12d4eea) by Carsten Igel). [PR-457](https://github.com/mkdocstrings/griffe/pull/457), Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
19
+
20
+ ### Bug Fixes
21
+
22
+ - Rename tests module to avoid exclusion by packagers ([5b3e392](https://github.com/mkdocstrings/griffe/commit/5b3e392006da98d5f23ba0e808393038be6014d8) by Timothée Mazzucotelli). [Issue-461](https://github.com/mkdocstrings/griffe/issues/461)
23
+ - Don't try merging overload annotations into non-function objects ([1b6b053](https://github.com/mkdocstrings/griffe/commit/1b6b053dc4cfdc4381a9dc4b0676b7946e55951e) by Timothée Mazzucotelli). [Issue-451](https://github.com/mkdocstrings/griffe/discussions/451)
24
+
8
25
  ## [2.0.2](https://github.com/mkdocstrings/griffe/releases/tag/2.0.2) - 2026-03-27
9
26
 
10
27
  <small>[Compare with 2.0.1](https://github.com/mkdocstrings/griffe/compare/2.0.1...2.0.2)</small>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: griffecli
3
- Version: 2.0.2
3
+ Version: 2.1.0
4
4
  Summary: Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
5
5
  Author-email: Timothée Mazzucotelli <dev@pawamoy.fr>
6
6
  License-Expression: ISC
@@ -22,4 +22,4 @@ Classifier: Topic :: Utilities
22
22
  Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.10
24
24
  Requires-Dist: colorama>=0.4
25
- Requires-Dist: griffelib==2.0.2
25
+ Requires-Dist: griffelib==2.1.0
@@ -0,0 +1 @@
1
+ """Tests suite for `griffecli`."""
@@ -0,0 +1,57 @@
1
+ """Tests for the CLI."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ import pytest
8
+
9
+ from griffe._internal import debug
10
+ from griffecli._internal import cli
11
+
12
+
13
+ def test_main() -> None:
14
+ """Basic CLI test."""
15
+ if sys.platform == "win32":
16
+ assert cli.main(["dump", "griffe", "-s", "src", "-oNUL"]) == 0
17
+ else:
18
+ assert cli.main(["dump", "griffe", "-s", "src", "-o/dev/null"]) == 0
19
+
20
+
21
+ def test_show_help(capsys: pytest.CaptureFixture) -> None:
22
+ """Show help.
23
+
24
+ Parameters:
25
+ capsys: Pytest fixture to capture output.
26
+ """
27
+ with pytest.raises(SystemExit):
28
+ cli.main(["-h"])
29
+ captured = capsys.readouterr()
30
+ assert "griffe" in captured.out
31
+
32
+
33
+ def test_show_version(capsys: pytest.CaptureFixture) -> None:
34
+ """Show version.
35
+
36
+ Parameters:
37
+ capsys: Pytest fixture to capture output.
38
+ """
39
+ with pytest.raises(SystemExit):
40
+ cli.main(["-V"])
41
+ captured = capsys.readouterr()
42
+ assert debug._get_version() in captured.out
43
+
44
+
45
+ def test_show_debug_info(capsys: pytest.CaptureFixture) -> None:
46
+ """Show debug information.
47
+
48
+ Parameters:
49
+ capsys: Pytest fixture to capture output.
50
+ """
51
+ with pytest.raises(SystemExit):
52
+ cli.main(["--debug-info"])
53
+ captured = capsys.readouterr().out.lower()
54
+ assert "python" in captured
55
+ assert "system" in captured
56
+ assert "environment" in captured
57
+ assert "packages" in captured
File without changes
File without changes
File without changes
File without changes