Python¶
This package was extracted from standardlib to rkd_python, but is maintained together with RKD as part of RKD core.
Set of Python-related tasks for building, testing and publishing Python packages.
:py:publish¶
Package to import | Single task to import | PIP package to install | Stable version |
---|---|---|---|
rkd_python | rkd_python.PublishTask | pip install rkd_python== SELECT VERSION |
Publish a package to the PyPI.
Example of usage:
rkd :py:publish --username=__token__ --password=.... --skip-existing --test
:py:build¶
Package to import | Single task to import | PIP package to install | Stable version |
---|---|---|---|
rkd_python | rkd_python.BuildTask | pip install rkd_python== SELECT VERSION |
Runs a build through setuptools.
:py:install¶
Package to import | Single task to import | PIP package to install | Stable version |
---|---|---|---|
rkd_python | rkd_python.InstallTask | pip install rkd_python== SELECT VERSION |
Installs the project as Python package using setuptools. Calls ./setup.py install.
:py:clean¶
Package to import | Single task to import | PIP package to install | Stable version |
---|---|---|---|
rkd_python | rkd_python.CleanTask | pip install rkd_python== SELECT VERSION |
Removes all files related to building the application.
:py:unittest¶
Package to import | Single task to import | PIP package to install | Stable version |
---|---|---|---|
rkd_python | rkd_python.UnitTestTask | pip install rkd_python== SELECT VERSION |
Runs Python’s built’in unittest module to execute unit tests.
Examples:
rkd :py:unittest
rkd :py:unittest -p some_test
rkd :py:unittest --tests-dir=../test