Local build of the PyPi module#
build#
GitLab Continuous Integration system is used to build automatically the PyPI packages. However, it is possible to build it locally. It is mainly useful to test the building procedure.
On a server running AlmaLinux9 or rel9 and for the package p400-xxx
(replace ‘xxx’, by ‘qa’, ‘uc’, ‘model’, etc.):
(venv) $ cd p400/p400-xxx
(venv) $ python -m build -w
Thus, the wheel package is in p400-xxx/dist/
Install#
the recipe to install and run the newly created package (release 1.0.0) is:
(venv) $ cd p400/p400-xxx
(venv) $ pip install dist/p400xxx-1.0.0-py3-None-any.wheel
Basic use#
To use it, from any location, you home directory for exemple:
(venv) $ cd
(venv) $ python3
>>> import p400xxx as xxx
>>> ...