Skip to main content

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.

Metadata

Release files for girsh 0.1.38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for girsh 0.1.38
File Size Uploaded Provenance Actions
girsh-0.1.38.tar.gz 127.5 kB Without provenance Details for girsh-0.1.38.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for girsh 0.1.38
File Interpreter ABI Platform Actions
girsh-0.1.38-py3-none-any.whl Python 3 none any Details for girsh-0.1.38-py3-none-any.whl

Total release size: 154.0 kB

Release files / girsh-0.1.38.tar.gz

Download URL girsh-0.1.38.tar.gz
Size 127.5 kB
Tags Source
SHA-256 checksum
How to use checksums
55ff32bff3a353574b33dc84fae67d1e801879b810e68434f90fde0b1495e4fe
BLAKE2b-256 checksum
How to use checksums
354210a1d4447d266bf2b80ea9908913ed8ccb9e1285513070c8d740bd2b707a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / girsh-0.1.38-py3-none-any.whl

Download URL girsh-0.1.38-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfea812a161724604e1c96b90a13234b9ec4410bc862e88dfea1611821f49cee
BLAKE2b-256 checksum
How to use checksums
831f96dec97c5fe11bc1db097e2d36ea97cb72dbbde1e8b193d6acddf4cad05c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for girsh 0.1.38

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page