autopkg-wrapper 0.2.1__py3-none-any.whl → 2024.2.2__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.
@@ -1 +1 @@
1
- __version__ = "0.2.1"
1
+ __version__ = "2024.2.2"
@@ -0,0 +1 @@
1
+ __version__ = "0.0.0"
@@ -0,0 +1 @@
1
+ __version__ = "0.0.0"
@@ -52,7 +52,7 @@ def setup_args():
52
52
  action="store_false",
53
53
  help="If set recipe override trust verification will be disabled. (Default: True)",
54
54
  )
55
- parser.add_argument("--slack-token", default=os.getenv("SLACK_WEBHOOK_TOKEN", None))
55
+ parser.add_argument("--slack-token", default=os.getenv("SLACK_WEBHOOK_TOKEN", None), help=argparse.SUPPRESS)
56
56
  parser.add_argument("--github-token", default=os.getenv("GITHUB_TOKEN", None))
57
57
  parser.add_argument(
58
58
  "--branch-name",
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.1
2
+ Name: autopkg-wrapper
3
+ Version: 2024.2.2
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.2.0)
14
+ Requires-Dist: idna (==3.6)
15
+ Requires-Dist: pygithub (==2.2.0)
16
+ Requires-Dist: requests (==2.31.0)
17
+ Requires-Dist: ruamel-yaml (==0.18.5)
18
+ Requires-Dist: toml (==0.10.2)
19
+ Requires-Dist: urllib3 (==2.2.0)
20
+ Project-URL: Repository, https://github.com/smithjw/autopkg-wrapper
21
+ Description-Content-Type: text/markdown
22
+
23
+ # autopkg-wrapper
24
+
25
+ `autopkg_wrapper` is a small package that can be used to run [`autopkg`](https://github.com/autopkg/autopkg) within CI/CD environments such as GitHub Actions.
26
+
27
+ The easiest way to run it is by installing with pip.
28
+
29
+ ```shell
30
+ pip install autopkg-wrapper
31
+ ```
32
+
33
+ ## Command Line Parameters
34
+
35
+ ```shell
36
+ -h, --help Show this help message and exit
37
+ --recipe-file RECIPE_FILE Path to a list of recipes to run (cannot be run with --recipes)
38
+ --recipes [RECIPES ...] Recipes to run with autopkg (cannot be run with --recipe-file)
39
+ --debug Enable debug logging when running script
40
+ --override-trust If set recipe override trust verification will be disabled. (Default: True)
41
+ --github-token GITHUB_TOKEN A token used to publish a PR to your GitHub repo if overrides require their trust to be updated
42
+ --branch-name BRANCH_NAME Branch name to be used where recipe overrides have failed their trust verification and need to be updated.
43
+ By default, this will be in the format of "fix/update_trust_information/YYYY-MM-DDTHH-MM-SS"
44
+ --create-pr If enabled, autopkg_wrapper will open a PR for updated trust information
45
+ --autopkg-overrides-repo-path AUTOPKG_OVERRIDES_REPO_PATH
46
+ The path on disk to the git repository containing the autopkg overrides directory. If none is provided, we will try to determine it for you.
47
+ ```
48
+
49
+ ## Example
50
+
51
+ An example folder structure and GitHub Actions Workflow is available within the [`actions-demo`](actions-demo)
52
+
53
+ ## Credits
54
+
55
+ - [`autopkg_tools` from Facebook](https://github.com/facebook/IT-CPE/tree/main/legacy/autopkg_tools)
56
+ - [`autopkg_tools` from Facebook, modified by Gusto](https://github.com/Gusto/it-cpe-opensource/tree/main/autopkg)
57
+
@@ -0,0 +1,13 @@
1
+ autopkg_wrapper/__init__.py,sha256=2YNfdrLK5NX4c2WTDg1SBuDWUXakjhklXdyzmT1zlHg,25
2
+ autopkg_wrapper/autopkg_wrapper.py,sha256=wcB-rnc6YyXGM0E4t8Dksz_Ppw85TXUn6FXEgiXLwx8,7426
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=5Nms6mmymI3mOyP969kajDEa2O8CxAvl1Kk-tvNmPhk,2730
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.2.2.dist-info/LICENSE,sha256=PpNOQjZGcsKFuA0wU16YU7PueVxqPX4OnyZ7TlLQlq4,1602
10
+ autopkg_wrapper-2024.2.2.dist-info/METADATA,sha256=8wuOxABD1MFqAQqJtRh9ADnvdZYj-udbW8tp-s21DbU,2658
11
+ autopkg_wrapper-2024.2.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ autopkg_wrapper-2024.2.2.dist-info/entry_points.txt,sha256=w9VfrX4aY0ZzJndvzjSI5lLe_sCP2tIq0I5bRLlEKJc,125
13
+ autopkg_wrapper-2024.2.2.dist-info/RECORD,,
@@ -1,3 +1,4 @@
1
1
  [console_scripts]
2
+ autopkg-wrapper=autopkg_wrapper.autopkg_wrapper:main
2
3
  autopkg_wrapper=autopkg_wrapper.autopkg_wrapper:main
3
4
 
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: autopkg-wrapper
3
- Version: 0.2.1
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.2.0)
14
- Requires-Dist: idna (==3.6)
15
- Requires-Dist: pygithub (==2.1.1)
16
- Requires-Dist: requests (==2.31.0)
17
- Requires-Dist: ruamel-yaml (==0.18.5)
18
- Requires-Dist: toml (==0.10.2)
19
- Requires-Dist: urllib3 (==2.1.0)
20
- Project-URL: Repository, https://github.com/smithjw/autopkg-wrapper
21
- Description-Content-Type: text/markdown
22
-
23
- # autopkg-wrapper
24
-
@@ -1,13 +0,0 @@
1
- autopkg_wrapper/__init__.py,sha256=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
2
- autopkg_wrapper/autopkg_wrapper.py,sha256=wcB-rnc6YyXGM0E4t8Dksz_Ppw85TXUn6FXEgiXLwx8,7426
3
- autopkg_wrapper/notifier/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- autopkg_wrapper/notifier/slack.py,sha256=nKHeSmgDaTaSUo19ZgnjjjKzeWgg34fMHUwNj9C5FMY,1982
5
- autopkg_wrapper/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- autopkg_wrapper/utils/args.py,sha256=UEpbZqR3uX8B9JpPGxb_yiUttfTZrFZqC9Ha7KE9AP4,2706
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-0.2.1.dist-info/LICENSE,sha256=PpNOQjZGcsKFuA0wU16YU7PueVxqPX4OnyZ7TlLQlq4,1602
10
- autopkg_wrapper-0.2.1.dist-info/METADATA,sha256=GZDq_5_goPo5cAu97c_kCFBrokjrWZEblnfycchsWyU,840
11
- autopkg_wrapper-0.2.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
- autopkg_wrapper-0.2.1.dist-info/entry_points.txt,sha256=-whajEGfgetm2CroLN1IMolYlyM9QqUPM7oJZWQrVfE,72
13
- autopkg_wrapper-0.2.1.dist-info/RECORD,,