Skip to main content

"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:

  1. Package a remote repository (e.g. on github) and archive them (perhaps into a zip).
  2. 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

archive_and_release-0.9.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

archive_and_release-0.9.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

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

Hashes for archive_and_release-0.9.3.tar.gz
Algorithm Hash digest
SHA256 bd1b20c755ea45071285245a0ba867069b0bd31018ade073013f1dc46bf9993b
MD5 a60cc886baa5ec4bd7ca9b7b697f74d7
BLAKE2b-256 f791c21cf7decc55742520a6aa316cf165de5b3142f98abb5035f6144eb1ff90

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file archive_and_release-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for archive_and_release-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fffefa617b7bcd07179cbf1cd3b079369746053f234ff5ea521dc4c81ccd8813
MD5 b4787c46e79ae431b7f4e6d5ffc38fa8
BLAKE2b-256 e98b6109050702e179be1d027e54d4ca74753e29eeab432c13615b0f7d7f665d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page