-
Notifications
You must be signed in to change notification settings - Fork 4
Build
Tami Takamiya edited this page Dec 12, 2023
·
5 revisions
- Change to a work directory like
/var/tmp
- Clone the repository
git clone [email protected]:ansible/ansible-content-parser.git
cd ansible-content-parser/
- (If needed) switch to a branch
git branch -a
git switch 'branch_name_here'
- Make sure python3 > 3.10 and create & activate venv
python3 -V
python3 -m venv venv
source venv/bin/activate
- Upgrade
pip
and install dependencies
pip install --upgrade pip
pip install -e '.[test]'
- Reactivate venv
deactivate
source venv/bin/activate
- Run
tox
to build installable images (it also runs unit tests)
tox
- Install the .whl file built by
tox
pip install dist/ansible_content_parser-xxxxxxx-py3-none-any.whl
- Reactivate venv
deactivate
source venv/bin/activate
- Run
which ansible-content-parser
to verify it is installed in the venv
which ansible-content-parser