autopkg-wrapper 2024.8.1__py3-none-any.whl → 2025.6.1__py3-none-any.whl
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.
- autopkg_wrapper/__init__.py +0 -1
- autopkg_wrapper/autopkg_wrapper.py +2 -2
- autopkg_wrapper/notifier/__init__.py +0 -1
- autopkg_wrapper/notifier/slack.py +1 -1
- autopkg_wrapper/utils/__init__.py +0 -1
- autopkg_wrapper/utils/args.py +1 -1
- autopkg_wrapper/utils/git_functions.py +4 -2
- {autopkg_wrapper-2024.8.1.dist-info → autopkg_wrapper-2025.6.1.dist-info}/METADATA +13 -18
- autopkg_wrapper-2025.6.1.dist-info/RECORD +13 -0
- {autopkg_wrapper-2024.8.1.dist-info → autopkg_wrapper-2025.6.1.dist-info}/WHEEL +1 -1
- autopkg_wrapper-2025.6.1.dist-info/entry_points.txt +2 -0
- autopkg_wrapper-2024.8.1.dist-info/RECORD +0 -13
- autopkg_wrapper-2024.8.1.dist-info/entry_points.txt +0 -3
- {autopkg_wrapper-2024.8.1.dist-info → autopkg_wrapper-2025.6.1.dist-info/licenses}/LICENSE +0 -0
autopkg_wrapper/__init__.py
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2024.8.1"
|
|
@@ -186,7 +186,7 @@ def get_override_repo_info(args):
|
|
|
186
186
|
logging.debug(f"Override Repo Path: {override_repo_path}")
|
|
187
187
|
|
|
188
188
|
override_repo_git_work_tree = f"--work-tree={override_repo_path}"
|
|
189
|
-
override_repo_git_git_dir = f"--git-dir={override_repo_path /
|
|
189
|
+
override_repo_git_git_dir = f"--git-dir={override_repo_path / '.git'}"
|
|
190
190
|
override_repo_url, override_repo_remote_ref = git.get_repo_info(
|
|
191
191
|
override_repo_git_git_dir
|
|
192
192
|
)
|
|
@@ -229,7 +229,7 @@ def update_recipe_repo(recipe, git_info, disable_recipe_trust_check, args):
|
|
|
229
229
|
|
|
230
230
|
if current_branch != git_info["override_trust_branch"]:
|
|
231
231
|
logging.debug(
|
|
232
|
-
f"override_trust_branch: {git_info[
|
|
232
|
+
f"override_trust_branch: {git_info['override_trust_branch']}"
|
|
233
233
|
)
|
|
234
234
|
git.create_branch(git_info)
|
|
235
235
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.0"
|
|
@@ -19,7 +19,7 @@ def send_notification(recipe, token):
|
|
|
19
19
|
if not recipe.results["failed"]:
|
|
20
20
|
task_description = "Unknown error"
|
|
21
21
|
else:
|
|
22
|
-
task_description = ("Error: {} \
|
|
22
|
+
task_description = ("Error: {} \nTraceback: {} \n").format(
|
|
23
23
|
recipe.results["failed"][0]["message"],
|
|
24
24
|
recipe.results["failed"][0]["traceback"],
|
|
25
25
|
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.0"
|
autopkg_wrapper/utils/args.py
CHANGED
|
@@ -100,7 +100,7 @@ def setup_args():
|
|
|
100
100
|
"--branch-name",
|
|
101
101
|
default=os.getenv(
|
|
102
102
|
"AW_TRUST_BRANCH",
|
|
103
|
-
f"fix/update_trust_information/{datetime.now().strftime(
|
|
103
|
+
f"fix/update_trust_information/{datetime.now().strftime('%Y-%m-%dT%H-%M-%S')}",
|
|
104
104
|
),
|
|
105
105
|
help="""
|
|
106
106
|
Branch name to be used recipe overrides have failed their trust verification and need to be updated.
|
|
@@ -102,8 +102,10 @@ Please review and merge the updated trust information for this override.
|
|
|
102
102
|
|
|
103
103
|
g = Github(git_info["github_token"])
|
|
104
104
|
repo = g.get_repo(git_info["override_repo_remote_ref"])
|
|
105
|
-
pr = repo.create_pull(
|
|
106
|
-
|
|
105
|
+
pr = repo.create_pull(
|
|
106
|
+
title=title, body=body, head=git_info["override_trust_branch"], base="main"
|
|
107
|
+
)
|
|
108
|
+
pr_url = f"{git_info['override_repo_url']}/pull/{pr.number}"
|
|
107
109
|
|
|
108
110
|
logging.debug(f"PR URL: {pr_url}")
|
|
109
111
|
return pr_url
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: autopkg-wrapper
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2025.6.1
|
|
4
4
|
Summary: A package used to execute some autopkg functions, primarily within the context of a GitHub Actions runner.
|
|
5
|
-
Home-page: https://github.com/smithjw/autopkg-wrapper
|
|
6
|
-
License: BSD-3-Clause
|
|
7
|
-
Author: James Smith
|
|
8
|
-
Author-email: james@smithjw.me
|
|
9
|
-
Requires-Python: >=3.12,<4.0
|
|
10
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Dist: chardet (>=5)
|
|
14
|
-
Requires-Dist: idna (>=3)
|
|
15
|
-
Requires-Dist: pygithub (>=2)
|
|
16
|
-
Requires-Dist: requests (>=2)
|
|
17
|
-
Requires-Dist: ruamel-yaml (>=0.18)
|
|
18
|
-
Requires-Dist: toml (>=0.10)
|
|
19
|
-
Requires-Dist: urllib3 (>=2)
|
|
20
5
|
Project-URL: Repository, https://github.com/smithjw/autopkg-wrapper
|
|
6
|
+
Author-email: James Smith <james@smithjw.me>
|
|
7
|
+
License-Expression: BSD-3-Clause
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: ~=3.12
|
|
10
|
+
Requires-Dist: chardet>=5
|
|
11
|
+
Requires-Dist: idna>=3
|
|
12
|
+
Requires-Dist: pygithub>=2
|
|
13
|
+
Requires-Dist: requests>=2
|
|
14
|
+
Requires-Dist: ruamel-yaml>=0.18
|
|
15
|
+
Requires-Dist: toml>=0.10
|
|
16
|
+
Requires-Dist: urllib3>=2
|
|
21
17
|
Description-Content-Type: text/markdown
|
|
22
18
|
|
|
23
19
|
# autopkg-wrapper
|
|
@@ -56,4 +52,3 @@ An example folder structure and GitHub Actions Workflow is available within the
|
|
|
56
52
|
|
|
57
53
|
- [`autopkg_tools` from Facebook](https://github.com/facebook/IT-CPE/tree/main/legacy/autopkg_tools)
|
|
58
54
|
- [`autopkg_tools` from Facebook, modified by Gusto](https://github.com/Gusto/it-cpe-opensource/tree/main/autopkg)
|
|
59
|
-
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
autopkg_wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
autopkg_wrapper/autopkg_wrapper.py,sha256=FGZW6o9V-YHlh521BesRstWo-wKg94L5uhylV6KoGAM,13042
|
|
3
|
+
autopkg_wrapper/notifier/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
autopkg_wrapper/notifier/slack.py,sha256=aPxQDGd5zPxSsu3mEqalNOF0ly0QnYog0ieHokd5-OY,1979
|
|
5
|
+
autopkg_wrapper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
autopkg_wrapper/utils/args.py,sha256=sWZgTL4c4MSC8k33tH7RIp_TQxQFcaIUmQo5MMoA_sY,4718
|
|
7
|
+
autopkg_wrapper/utils/git_functions.py,sha256=LIQ3SEnPOn1srGrhQuR1pVeurupJXDVaAsmO3pjcRwc,2989
|
|
8
|
+
autopkg_wrapper/utils/logging.py,sha256=3knpMViO_zAU8WM5bSImQaz5M01vMFk_raB4lt1cbvo,324
|
|
9
|
+
autopkg_wrapper-2025.6.1.dist-info/METADATA,sha256=WsZ3Vc2D_UU2XknijbgVpBYatMWgvBunJnoeQq0Sn78,2552
|
|
10
|
+
autopkg_wrapper-2025.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
autopkg_wrapper-2025.6.1.dist-info/entry_points.txt,sha256=TVIcOt7OozzX1c00pwMGbBysaHg_v_N3mO3juoFqPpo,73
|
|
12
|
+
autopkg_wrapper-2025.6.1.dist-info/licenses/LICENSE,sha256=PpNOQjZGcsKFuA0wU16YU7PueVxqPX4OnyZ7TlLQlq4,1602
|
|
13
|
+
autopkg_wrapper-2025.6.1.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
autopkg_wrapper/__init__.py,sha256=LH37MkR079fO0oez0_vLvmySB5pH_U7FgoqJn5fRbuI,25
|
|
2
|
-
autopkg_wrapper/autopkg_wrapper.py,sha256=7hi8QmQgAqX5LHlv89ongl06NIvznXo8Qqhy4srHXQw,13042
|
|
3
|
-
autopkg_wrapper/notifier/__init__.py,sha256=ShXQBVjyiSOHxoQJS2BvNG395W4KZfqMxZWBAR0MZrE,22
|
|
4
|
-
autopkg_wrapper/notifier/slack.py,sha256=nKHeSmgDaTaSUo19ZgnjjjKzeWgg34fMHUwNj9C5FMY,1982
|
|
5
|
-
autopkg_wrapper/utils/__init__.py,sha256=ShXQBVjyiSOHxoQJS2BvNG395W4KZfqMxZWBAR0MZrE,22
|
|
6
|
-
autopkg_wrapper/utils/args.py,sha256=5VyPP28DYHttuwBD6iPTLMWSy1IiJ11md01GpkIWt8s,4718
|
|
7
|
-
autopkg_wrapper/utils/git_functions.py,sha256=zMMzwRG9V2VFaQk3y_o1H63_hzI1qohwBKaetNDS2mY,2975
|
|
8
|
-
autopkg_wrapper/utils/logging.py,sha256=3knpMViO_zAU8WM5bSImQaz5M01vMFk_raB4lt1cbvo,324
|
|
9
|
-
autopkg_wrapper-2024.8.1.dist-info/LICENSE,sha256=PpNOQjZGcsKFuA0wU16YU7PueVxqPX4OnyZ7TlLQlq4,1602
|
|
10
|
-
autopkg_wrapper-2024.8.1.dist-info/METADATA,sha256=D5E6qm9B79Ezm6lEkJp0-ACksXweM8kFMN6kdecRwHw,2756
|
|
11
|
-
autopkg_wrapper-2024.8.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
-
autopkg_wrapper-2024.8.1.dist-info/entry_points.txt,sha256=-whajEGfgetm2CroLN1IMolYlyM9QqUPM7oJZWQrVfE,72
|
|
13
|
-
autopkg_wrapper-2024.8.1.dist-info/RECORD,,
|
|
File without changes
|