"A cli archiving bunch of files (e.g. bash scripts), from a git repository made up of a number of (public/private) sub modules, and optionally tagging it and creating a github release for it with the resulting archive."
Project description
archive-and-release
! More detail is coming ! Imagine you have a number of scripts in a repository. Maybe they help to build an entire suite of servers. Perhaps they are written in bash, or just a collection of files that somehow work together to acheive your goals. Importantly, they don't represent an application like a python cli appliction for example. Perhaps there is method and structure to your madness and the repository is built up of a number of submodules (and some are private...). Unless you want to put a personal token into your github actions (usually seen as a bad idea), these submodules can't be accessed in them. So this cli can help.
Locally, you can specify your personal token that can see all submodule repositories in a local virual environment, install this package into it and:
- Package a remote repository (e.g. on github) and archive them (perhaps into a zip).
- Package a remote repository (e.g. on github) and archive them (perhaps into a zip), tag (and push) the git repository, create a release from the tag and upload the archive to the release.
In both cases you can choose to 'clean' the repository before archiving it by removing a number of wildcarded files and folders (for example .git) that is not required in a target server.
Install: pip install archive-and-release
Commands: Full options/help: archive-and-release -h
Command options/help: archive-and-release -h
To build a release file: archive-and-release build_frontend archive-and-release build_backend archive-and-releasee build --repo "https://github.com/<repository_owner>/<repository_name>" --branch main --repo_target_dir "<clone_target_dir>" --release_target_dir "<created_release_target_dir>" --release_file_name "<created_release_file_name>"
To build, create a tag and create a release: archive-and-release release_frontend --tag_version "<tag_version>" --tag_description "<tag_description>" archive-and-release release_backend --tag_version "<tag_version>" --tag_description "<tag_description>" --release_version "<release_version>" --release_description "<release_description>" archive-and-release release --repo "https://github.com/<repository_owner>/<repository_name>" --branch main --repo_target_dir "<clone_target_dir>" --release_target_dir "<created_release_target_dir>" --release_file_name "<created_release_file_name>" --tag_version "<tag_version>" --tag_description "<tag_description>"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archive_and_release-0.9.3.tar.gz.
File metadata
- Download URL: archive_and_release-0.9.3.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1b20c755ea45071285245a0ba867069b0bd31018ade073013f1dc46bf9993b
|
|
| MD5 |
a60cc886baa5ec4bd7ca9b7b697f74d7
|
|
| BLAKE2b-256 |
f791c21cf7decc55742520a6aa316cf165de5b3142f98abb5035f6144eb1ff90
|
Provenance
The following attestation bundles were made for archive_and_release-0.9.3.tar.gz:
Publisher:
build-release.yml on dan-east/archive-and-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archive_and_release-0.9.3.tar.gz -
Subject digest:
bd1b20c755ea45071285245a0ba867069b0bd31018ade073013f1dc46bf9993b - Sigstore transparency entry: 272481939
- Sigstore integration time:
-
Permalink:
dan-east/archive-and-release@3bd3d988e3616e8d8c7152bda3e41f797eefc2a5 -
Branch / Tag:
refs/tags/v0.9.3 - Owner: https://github.com/dan-east
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-release.yml@3bd3d988e3616e8d8c7152bda3e41f797eefc2a5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file archive_and_release-0.9.3-py3-none-any.whl.
File metadata
- Download URL: archive_and_release-0.9.3-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fffefa617b7bcd07179cbf1cd3b079369746053f234ff5ea521dc4c81ccd8813
|
|
| MD5 |
b4787c46e79ae431b7f4e6d5ffc38fa8
|
|
| BLAKE2b-256 |
e98b6109050702e179be1d027e54d4ca74753e29eeab432c13615b0f7d7f665d
|
Provenance
The following attestation bundles were made for archive_and_release-0.9.3-py3-none-any.whl:
Publisher:
build-release.yml on dan-east/archive-and-release
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archive_and_release-0.9.3-py3-none-any.whl -
Subject digest:
fffefa617b7bcd07179cbf1cd3b079369746053f234ff5ea521dc4c81ccd8813 - Sigstore transparency entry: 272481941
- Sigstore integration time:
-
Permalink:
dan-east/archive-and-release@3bd3d988e3616e8d8c7152bda3e41f797eefc2a5 -
Branch / Tag:
refs/tags/v0.9.3 - Owner: https://github.com/dan-east
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-release.yml@3bd3d988e3616e8d8c7152bda3e41f797eefc2a5 -
Trigger Event:
release
-
Statement type: