Skip to content
Tami Takamiya edited this page Dec 12, 2023 · 5 revisions

Build

  1. Change to a work directory like /var/tmp
  2. Download the PR branch:
git clone [email protected]:ansible/ansible-content-parser.git
cd ansible-content-parser/
git checkout 'ttakamiy/skip-ansible-lint-short-option'
  1. Make sure python3 > 3.10 and create & activate venv
python3 -V
python3 -m venv venv
source venv/bin/activate
  1. Upgrade pip and install dependencies
pip install --upgrade pip
pip install -e '.[test]'
  1. Reactivate venv
deactivate
source venv/bin/activate
  1. Run tox to build installable images (it also runs unit tests)
tox
  1. Install the .whl file built by tox
pip install dist/ansible_content_parser-xxxxxxx-py3-none-any.whl
  1. Reactivate venv
deactivate
source venv/bin/activate
  1. Run ansible-content-parser with the --version option
ansible-content-parser --version
Clone this wiki locally