Skip to content

ansible/galaxykit

Repository files navigation

Galaxykit

Galaxykit is a client library for galaxy_ng, designed for use in internal testing.

It's intended to be a low-dependency and low-abstraction client for performing actions on a remote Automation Hub or galaxy_ng instance.

Prerequisites

Ansible.

pip3 install ansible

Installing:

To install the latest development version, run pip3 install -e . in the root of your checked-out copy of this repository.

To set up the pre-commit hooks we are using (currently just autoformatting with black), run the following snippet:

pre-commit install
pre-commit install-hooks

After running those commands, make sure to run the following command to the latest unreleased version:

pip3 install ansible git+https://github.com/ansible/galaxykit.git@master

After that's been done, the first commit you make will have to install any of those dependencies, and may take a few minutes.

Distributing

To build a distribution package you need to install build tool, a build-backend agnostic and standartized tool for building dictrubiton packages.

pip install build

After installation, execute it as following:

python -m build