github2gerrit 0.1.2__tar.gz → 0.1.3__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.
Files changed (34) hide show
  1. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/PKG-INFO +1 -1
  2. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/pyproject.toml +6 -4
  3. github2gerrit-0.1.3/src/github2gerrit/__init__.py +29 -0
  4. github2gerrit-0.1.3/src/github2gerrit/cli.py +865 -0
  5. github2gerrit-0.1.3/src/github2gerrit/config.py +311 -0
  6. github2gerrit-0.1.3/src/github2gerrit/core.py +1750 -0
  7. github2gerrit-0.1.3/src/github2gerrit/duplicate_detection.py +542 -0
  8. github2gerrit-0.1.3/src/github2gerrit/github_api.py +331 -0
  9. github2gerrit-0.1.3/src/github2gerrit/gitutils.py +655 -0
  10. github2gerrit-0.1.3/src/github2gerrit/models.py +81 -0
  11. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/LICENSE +0 -0
  12. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/README.md +0 -0
  13. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/conftest.py +0 -0
  14. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/fixtures/__init__.py +0 -0
  15. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/fixtures/make_repo.py +0 -0
  16. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_cli.py +0 -0
  17. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_cli_helpers.py +0 -0
  18. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_cli_outputs_file.py +0 -0
  19. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_cli_url_and_dryrun.py +0 -0
  20. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_config_and_reviewers.py +0 -0
  21. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_config_helpers.py +0 -0
  22. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_close_pr_policy.py +0 -0
  23. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_config_and_errors.py +0 -0
  24. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_gerrit_backref_comment.py +0 -0
  25. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_gerrit_rest_results.py +0 -0
  26. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_integration_fixture_repo.py +0 -0
  27. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_prepare_commits.py +0 -0
  28. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_core_ssh_setup.py +0 -0
  29. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_duplicate_detection.py +0 -0
  30. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_ghe_and_gitreview_args.py +0 -0
  31. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_github_api_helpers.py +0 -0
  32. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_github_api_retry_and_helpers.py +0 -0
  33. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_gitutils_helpers.py +0 -0
  34. {github2gerrit-0.1.2 → github2gerrit-0.1.3}/tests/test_url_parser.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: github2gerrit
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Submit a GitHub pull request to a Gerrit repository.
5
5
  Keywords: github,gerrit,ci,actions,typer,cli
6
6
  Author-Email: Matthew Watkins <mwatkins@linuxfoundation.org>
@@ -35,7 +35,7 @@ dependencies = [
35
35
  "pygerrit2>=2.0.0",
36
36
  "git-review>=2.3.1",
37
37
  ]
38
- version = "0.1.2"
38
+ version = "0.1.3"
39
39
 
40
40
  [project.license]
41
41
  text = "Apache-2.0"
@@ -62,9 +62,6 @@ source = "scm"
62
62
 
63
63
  [tool.pdm.build]
64
64
  package-dir = "src"
65
- includes = [
66
- "github2gerrit",
67
- ]
68
65
 
69
66
  [tool.pdm.dev-dependencies]
70
67
  dev = [
@@ -184,3 +181,8 @@ testpaths = [
184
181
 
185
182
  [tool.uv]
186
183
  managed = true
184
+
185
+ [dependency-groups]
186
+ dev = [
187
+ "build>=1.3.0",
188
+ ]
@@ -0,0 +1,29 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # SPDX-FileCopyrightText: 2025 The Linux Foundation
3
+
4
+ """
5
+ github2gerrit package initializer.
6
+
7
+ This file marks the directory as a Python package to ensure static type
8
+ checkers and runtime imports can resolve relative modules such as
9
+ `from . import models` used by the CLI and other modules.
10
+
11
+ It also exposes a best-effort __version__ attribute based on installed
12
+ package metadata when available.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+
18
+ try:
19
+ # Prefer stdlib importlib.metadata (Python 3.8+)
20
+ from importlib.metadata import PackageNotFoundError
21
+ from importlib.metadata import version as _pkg_version
22
+
23
+ try:
24
+ __version__ = _pkg_version("github2gerrit")
25
+ except PackageNotFoundError:
26
+ __version__ = "0.0.0"
27
+ except Exception:
28
+ # Fallback when importlib.metadata is unavailable or errors occur
29
+ __version__ = "0.0.0"