autopkg-wrapper 0.2.1__tar.gz → 2024.2.2__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.
- autopkg_wrapper-2024.2.2/PKG-INFO +57 -0
- autopkg_wrapper-2024.2.2/README.md +34 -0
- autopkg_wrapper-2024.2.2/autopkg_wrapper/__init__.py +1 -0
- autopkg_wrapper-2024.2.2/autopkg_wrapper/notifier/__init__.py +1 -0
- autopkg_wrapper-2024.2.2/autopkg_wrapper/utils/__init__.py +1 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/autopkg_wrapper/utils/args.py +1 -1
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/pyproject.toml +4 -3
- autopkg_wrapper-0.2.1/PKG-INFO +0 -24
- autopkg_wrapper-0.2.1/README.md +0 -1
- autopkg_wrapper-0.2.1/autopkg_wrapper/__init__.py +0 -1
- autopkg_wrapper-0.2.1/autopkg_wrapper/notifier/__init__.py +0 -0
- autopkg_wrapper-0.2.1/autopkg_wrapper/utils/__init__.py +0 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/LICENSE +0 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/autopkg_wrapper/autopkg_wrapper.py +0 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/autopkg_wrapper/notifier/slack.py +0 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/autopkg_wrapper/utils/git_functions.py +0 -0
- {autopkg_wrapper-0.2.1 → autopkg_wrapper-2024.2.2}/autopkg_wrapper/utils/logging.py +0 -0
|
@@ -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,34 @@
|
|
|
1
|
+
# autopkg-wrapper
|
|
2
|
+
|
|
3
|
+
`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.
|
|
4
|
+
|
|
5
|
+
The easiest way to run it is by installing with pip.
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
pip install autopkg-wrapper
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Command Line Parameters
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
-h, --help Show this help message and exit
|
|
15
|
+
--recipe-file RECIPE_FILE Path to a list of recipes to run (cannot be run with --recipes)
|
|
16
|
+
--recipes [RECIPES ...] Recipes to run with autopkg (cannot be run with --recipe-file)
|
|
17
|
+
--debug Enable debug logging when running script
|
|
18
|
+
--override-trust If set recipe override trust verification will be disabled. (Default: True)
|
|
19
|
+
--github-token GITHUB_TOKEN A token used to publish a PR to your GitHub repo if overrides require their trust to be updated
|
|
20
|
+
--branch-name BRANCH_NAME Branch name to be used where recipe overrides have failed their trust verification and need to be updated.
|
|
21
|
+
By default, this will be in the format of "fix/update_trust_information/YYYY-MM-DDTHH-MM-SS"
|
|
22
|
+
--create-pr If enabled, autopkg_wrapper will open a PR for updated trust information
|
|
23
|
+
--autopkg-overrides-repo-path AUTOPKG_OVERRIDES_REPO_PATH
|
|
24
|
+
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.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
An example folder structure and GitHub Actions Workflow is available within the [`actions-demo`](actions-demo)
|
|
30
|
+
|
|
31
|
+
## Credits
|
|
32
|
+
|
|
33
|
+
- [`autopkg_tools` from Facebook](https://github.com/facebook/IT-CPE/tree/main/legacy/autopkg_tools)
|
|
34
|
+
- [`autopkg_tools` from Facebook, modified by Gusto](https://github.com/Gusto/it-cpe-opensource/tree/main/autopkg)
|
|
@@ -0,0 +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",
|
|
@@ -5,21 +5,22 @@
|
|
|
5
5
|
name = "autopkg-wrapper"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
repository = "https://github.com/smithjw/autopkg-wrapper"
|
|
8
|
-
version = "
|
|
8
|
+
version = "2024.2.2"
|
|
9
9
|
|
|
10
10
|
[tool.poetry.scripts]
|
|
11
11
|
# When built and installed by pip, the command autopkg_wrapper will be availble in to run within that environment
|
|
12
|
+
autopkg-wrapper = "autopkg_wrapper.autopkg_wrapper:main"
|
|
12
13
|
autopkg_wrapper = "autopkg_wrapper.autopkg_wrapper:main"
|
|
13
14
|
|
|
14
15
|
[tool.poetry.dependencies]
|
|
15
16
|
chardet = "5.2.0"
|
|
16
17
|
idna = "3.6"
|
|
17
|
-
pygithub = "2.
|
|
18
|
+
pygithub = "2.2.0"
|
|
18
19
|
python = "^3.12"
|
|
19
20
|
requests = "2.31.0"
|
|
20
21
|
ruamel-yaml = "0.18.5"
|
|
21
22
|
toml = "0.10.2"
|
|
22
|
-
urllib3 = "2.
|
|
23
|
+
urllib3 = "2.2.0"
|
|
23
24
|
|
|
24
25
|
[tool.poetry_bumpversion.file."autopkg_wrapper/__init__.py"]
|
|
25
26
|
|
autopkg_wrapper-0.2.1/PKG-INFO
DELETED
|
@@ -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
|
-
|
autopkg_wrapper-0.2.1/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# autopkg-wrapper
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|