Skip to main content

This tool downloads and installs release binaries from GitHub repositories.

Project description

girsh - Git Install Released Software Helper

python version PyPI Build status codecov Commit activity License

This tool downloads and installs released binaries from GitHub repositories on Linux type systems.

Description

This script reads input from a YAML file to define GitHub release pages, binary package patterns, and extraction rules. The script handles downloads, extraction, renaming, and copying to the appropriate binary folder based on user permissions.

The script checks whether the user has root privileges to copy binaries to /usr/local/bin; otherwise, it defaults to ~/.local/bin.

Development

1. Clone the repository

First, clone the project repository, and then run the following commands:

git clone ssh://git@github.com:palto42/girsh.git

2. Set Up Your Development Environment

Then, install the environment and the pre-commit hooks with

make install

3. Run the pre-commit hooks

Initially, the CI/CD pipeline might be failing due to formatting issues. To resolve those run:

uv run pre-commit run -a

or run

make check`

4. Test the code

Run the Python unit tests with the command:

make test
  • For a console coverage report, run coverage report
  • For a local HTML coverage report, run coverage html

5. Commit the changes

Lastly, commit the changes made by the two steps above to your repository.

git add .
git commit -m 'Fix formatting issues'
git push origin main

You are now ready to start development on your project! The CI/CD pipeline will be triggered when you open a pull request, merge to main, or when you create a new release.

To finalize the set-up for publishing to PyPI, see here. For activating the automatic documentation with MkDocs, see here. To enable the code coverage reports, see here.

Releasing a new version

  • Create an API Token on PyPI.
  • Add the API Token to your projects secrets with the name PYPI_TOKEN by visiting this page.
  • Create a new release on Github.
  • Create a new tag in the form *.*.*.

For more details, see here.

3. Use make commands

make command Description
install Install the virtual environment and install the pre-commit hooks
check Run code quality tools.
test Test the code with pytest
build Build wheel file
clean-build Clean build artifacts
publish Publish a release to PyPI.
build-and-publish Build and publish.
docs Build and serve the documentation
docs-test Test if documentation can be built without warnings or errors

Note: make check validates the files stages with git add. Otherwise it may show only "(no files to check)Skipped" messages.

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

girsh-0.1.33.tar.gz (123.6 kB view details)

Uploaded Source

Built Distribution

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

girsh-0.1.33-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file girsh-0.1.33.tar.gz.

File metadata

  • Download URL: girsh-0.1.33.tar.gz
  • Upload date:
  • Size: 123.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for girsh-0.1.33.tar.gz
Algorithm Hash digest
SHA256 87cf894cac2c3469ca753fab359772d5fd85f5e9f24a4bc2724c9c7a745f59a4
MD5 2d8ba6ad2e87135e06d348e225f97621
BLAKE2b-256 65ac69c5b8f8cdb206b3c80e81fe267251b1bd05a0fdd3fb8101fb178bd5663d

See more details on using hashes here.

File details

Details for the file girsh-0.1.33-py3-none-any.whl.

File metadata

  • Download URL: girsh-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for girsh-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 930464b7701b7f3014ee04e600949e77a093a49a321ec2341700237e3b6f12bd
MD5 2702a5301b4f384a04fdd5cb9d459cfd
BLAKE2b-256 057036117c6290e49f07161a3c4056c8c037847eca33d52e46453cf2943bdd86

See more details on using hashes here.

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