From 82c307a0341547eba6f71395cc3ea7170fe7fc68 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Fri, 19 Apr 2024 17:48:59 +0100 Subject: [PATCH] enable release jobs This change adds the publish-to-pypi job template for the whitebox-tempest-plugin. This change also correct the syntax error in the README.rst preventign the twine check command form passing. this will enable releases to be done via commits to the release repo via pypi https://pypi.org/project/whitebox-tempest-plugin/ a side effect of this process is the creation of git tags and release tarballs for each tagged release. Change-Id: I5cf0e3072c0502320866de1ce9771d61f1e0ec1b --- .zuul.yaml | 2 ++ LICENSE | 1 - README.rst | 19 +++++++++++-------- setup.cfg | 1 + 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 9e0c55ff..29a11ba1 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -181,6 +181,8 @@ images_type: default - project: + templates: + - publish-to-pypi check: jobs: - whitebox-devstack-multinode diff --git a/LICENSE b/LICENSE index 68c771a0..67db8588 100644 --- a/LICENSE +++ b/LICENSE @@ -173,4 +173,3 @@ defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - diff --git a/README.rst b/README.rst index 9f22face..ebe47ade 100644 --- a/README.rst +++ b/README.rst @@ -34,6 +34,8 @@ Install, configure and run This should be done from source. :: + .. code-block:: shell + WORKSPACE=/some/directory cd $WORKSPACE git clone https://opendev.org/openstack/whitebox-tempest-plugin @@ -46,13 +48,14 @@ Install, configure and run ``whitebox_tempest_plugin/config.py`` instead. As an example, here is a configuration for a multinode TripleO deployment:: - [whitebox] - ctlplane_addresses = compute-0.localdomain:192.168.24.6,compute-1.localdomain:192.168.24.12 - ctlplane_ssh_username = heat-admin - ctlplane_ssh_private_key_path = /home/stack/.ssh/id_rsa - containers = true - max_compute_nodes = 2 # Some tests depend on there being a single - # (available) compute node + .. code-block:: ini + + [whitebox] + ctlplane_addresses = compute-0.localdomain:192.168.24.6,compute-1.localdomain:192.168.24.12 + ctlplane_ssh_username = heat-admin + ctlplane_ssh_private_key_path = /home/stack/.ssh/id_rsa + containers = true + max_compute_nodes = 2 # Some tests depend on there being a single (available) compute node 3. Execute the tests. :: @@ -61,7 +64,7 @@ Install, configure and run .. important:: Whitebox expects its tests to run one at a time. Make sure to pass - `--serial` or `--concurrency 1` to `tempest run`. + ``--serial`` or ``--concurrency 1`` to ``tempest run``. How to add a new test diff --git a/setup.cfg b/setup.cfg index 8b24d3a6..085a239d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ name = whitebox-tempest-plugin summary = Tempest plugin for whitebox testing. For testing things not exposed through the REST APIs. description-file = README.rst +long_description_content_type = text/x-rst author = OpenStack author-email = openstack-discuss@lists.openstack.org home-page = https://opendev.org/openstack/whitebox-tempest-plugin