diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..23fd917 --- /dev/null +++ b/.envrc @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +python3 -m venv .venv +source ./.venv/bin/activate +unset PS1 diff --git a/.gitignore b/.gitignore index a258834..1e6d0ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .secrets.cfg* +.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..a5c4c76 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.0 diff --git a/bin/script-template b/bin/script-template new file mode 100755 index 0000000..88ad260 --- /dev/null +++ b/bin/script-template @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +from bundlewrap.repo import Repository +from os.path import realpath, dirname + +repo = Repository(dirname(dirname(realpath(__file__)))) +domains = set() + +for node in repo.nodes: + domains.update( + set(node.metadata.get('opendkim/domains', [])) + ) + +print(domains) + +# Do in Metaproc diff --git a/bundles/l4d2/metadata.py b/bundles/l4d2/metadata.py index d5294e3..c3b4514 100644 --- a/bundles/l4d2/metadata.py +++ b/bundles/l4d2/metadata.py @@ -2,6 +2,6 @@ def steam(metadata): return { 'steam': { - 222860: 'l4d2', + '222860': 'l4d2', }, } diff --git a/nodes/home.backups.py b/nodes/home.backups.py index 0967ef4..3a24e7c 100644 --- a/nodes/home.backups.py +++ b/nodes/home.backups.py @@ -1 +1,3 @@ -{} +{ + 'metadata': {}, +} diff --git a/nodes/htz.games.py b/nodes/htz.games.py index 11ccb41..2033dac 100644 --- a/nodes/htz.games.py +++ b/nodes/htz.games.py @@ -3,4 +3,5 @@ 'steam', 'l4d2', ], + 'metadata': {}, } diff --git a/requirements.txt b/requirements.txt index 0aa2c10..93d2099 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ bundlewrap>=4.8.0 +PyNaCl