Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Publishing (forked) package on a pypi

Vyacheslav edited this page Nov 15, 2018 · 1 revision

If you need to publish custom build of the ansible-container for your organization, either on pypi or private pypi repository, you would need twine tool:

sudo pip install twine
python setup.py sdist
twine upload -r pypi dist/*

where parameter -r pypi stands for alias of the repository to push to/

You might also need to let tool know about repositories. This can be done in ~/.pypirc

[distutils]
index-servers =
    pypi
    pypitest

[pypi]
repository: https://upload.pypi.org/legacy/
username: <USERNAME>
password: <PASS>

[pypitest]
repository: https://test.pypi.org/legacy/
username: <USERNAME>
password: <PASS>

Upon successful builds, you might also need to compile and push conductor images

python bakery.py

You can rebuild specific conductor image

python bakery.py --distros=ubuntu

alternative syntax

BASE_DISTRO=ubuntu python bakery.py

If you are building custom conductor images for your organization, you might use

CONDUCTOR_PROVIDER=<ORGANIZATION> BASE_DISTRO=ubuntu python bakery.py
Clone this wiki locally