github2gerrit 0.1.0__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.
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/PKG-INFO +5 -4
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/pyproject.toml +10 -7
- github2gerrit-0.1.3/src/github2gerrit/__init__.py +29 -0
- github2gerrit-0.1.3/src/github2gerrit/cli.py +865 -0
- github2gerrit-0.1.3/src/github2gerrit/config.py +311 -0
- github2gerrit-0.1.3/src/github2gerrit/core.py +1750 -0
- github2gerrit-0.1.3/src/github2gerrit/duplicate_detection.py +542 -0
- github2gerrit-0.1.3/src/github2gerrit/github_api.py +331 -0
- github2gerrit-0.1.3/src/github2gerrit/gitutils.py +655 -0
- github2gerrit-0.1.3/src/github2gerrit/models.py +81 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/LICENSE +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/README.md +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/conftest.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/fixtures/__init__.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/fixtures/make_repo.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_cli.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_cli_helpers.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_cli_outputs_file.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_cli_url_and_dryrun.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_config_and_reviewers.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_config_helpers.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_close_pr_policy.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_config_and_errors.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_gerrit_backref_comment.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_gerrit_rest_results.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_integration_fixture_repo.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_prepare_commits.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_core_ssh_setup.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_duplicate_detection.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_ghe_and_gitreview_args.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_github_api_helpers.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_github_api_retry_and_helpers.py +0 -0
- {github2gerrit-0.1.0 → github2gerrit-0.1.3}/tests/test_gitutils_helpers.py +0 -0
- {github2gerrit-0.1.0 → 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.
|
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>
|
@@ -12,13 +12,14 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
13
|
Classifier: Programming Language :: Python :: 3 :: Only
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
15
16
|
Classifier: Programming Language :: Python :: 3.13
|
16
17
|
Classifier: Topic :: Software Development :: Build Tools
|
17
18
|
Classifier: Topic :: Software Development :: Version Control
|
18
19
|
Classifier: Typing :: Typed
|
19
|
-
Project-URL: Homepage, https://github.com/
|
20
|
-
Project-URL: Repository, https://github.com/
|
21
|
-
Project-URL: Issues, https://github.com/
|
20
|
+
Project-URL: Homepage, https://github.com//lfreleng-actions/github2gerrit
|
21
|
+
Project-URL: Repository, https://github.com//lfreleng-actions/github2gerrit
|
22
|
+
Project-URL: Issues, https://github.com//lfreleng-actions/github2gerrit/issues
|
22
23
|
Requires-Python: <3.14,>=3.11
|
23
24
|
Requires-Dist: typer>=0.12.5
|
24
25
|
Requires-Dist: PyGithub>=2.3.0
|
@@ -23,6 +23,7 @@ classifiers = [
|
|
23
23
|
"Programming Language :: Python :: 3",
|
24
24
|
"Programming Language :: Python :: 3 :: Only",
|
25
25
|
"Programming Language :: Python :: 3.11",
|
26
|
+
"Programming Language :: Python :: 3.12",
|
26
27
|
"Programming Language :: Python :: 3.13",
|
27
28
|
"Topic :: Software Development :: Build Tools",
|
28
29
|
"Topic :: Software Development :: Version Control",
|
@@ -34,15 +35,15 @@ dependencies = [
|
|
34
35
|
"pygerrit2>=2.0.0",
|
35
36
|
"git-review>=2.3.1",
|
36
37
|
]
|
37
|
-
version = "0.1.
|
38
|
+
version = "0.1.3"
|
38
39
|
|
39
40
|
[project.license]
|
40
41
|
text = "Apache-2.0"
|
41
42
|
|
42
43
|
[project.urls]
|
43
|
-
Homepage = "https://github.com/
|
44
|
-
Repository = "https://github.com/
|
45
|
-
Issues = "https://github.com/
|
44
|
+
Homepage = "https://github.com//lfreleng-actions/github2gerrit"
|
45
|
+
Repository = "https://github.com//lfreleng-actions/github2gerrit"
|
46
|
+
Issues = "https://github.com//lfreleng-actions/github2gerrit/issues"
|
46
47
|
|
47
48
|
[project.scripts]
|
48
49
|
github2gerrit = "github2gerrit.cli:app"
|
@@ -61,9 +62,6 @@ source = "scm"
|
|
61
62
|
|
62
63
|
[tool.pdm.build]
|
63
64
|
package-dir = "src"
|
64
|
-
includes = [
|
65
|
-
"github2gerrit",
|
66
|
-
]
|
67
65
|
|
68
66
|
[tool.pdm.dev-dependencies]
|
69
67
|
dev = [
|
@@ -183,3 +181,8 @@ testpaths = [
|
|
183
181
|
|
184
182
|
[tool.uv]
|
185
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"
|