Skip to content

Commit 0a7f269

Browse files
committed
Remove references to Python 2.7
We don't support it anymore. This is just noise now. Change-Id: I3640e7d8e520db69f83f95e9c7759279f7c15008 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
1 parent cb6659d commit 0a7f269

2 files changed

Lines changed: 8 additions & 28 deletions

File tree

HACKING.rst

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ OpenStack Style Commandments
77

88
General
99
-------
10+
1011
- thou shalt not violate causality in our time cone, or else
1112

1213
Docstrings
@@ -85,23 +86,3 @@ commandline arguments, etc.) should be presumed to be encoded as utf-8.
8586
returntext = do_some_magic_with(mytext)
8687
returnstring = returntext.encode('utf-8')
8788
outfile.write(returnstring)
88-
89-
Python 3.x Compatibility
90-
------------------------
91-
92-
OpenStackClient strives to be Python 3.3 compatible. Common guidelines:
93-
94-
* Convert print statements to functions: print statements should be converted
95-
to an appropriate log or other output mechanism.
96-
* Prefer to x.items() over six.iteritems(x).
97-
98-
Running Tests
99-
-------------
100-
101-
Note: Oh boy, are we behind on writing tests. But they are coming!
102-
103-
The testing system is based on a combination of tox and testr. If you just
104-
want to run the whole suite, run `tox` and all will be fine. However, if
105-
you'd like to dig in a bit more, you might want to learn some things about
106-
testr itself. A basic walkthrough for OpenStack can be found at
107-
http://wiki.openstack.org/testr

doc/source/contributor/developing.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ To run the full suite of tests maintained within OpenStackClient.
5959
virtualenvs. You can later use the ``-r`` option with ``tox`` to rebuild
6060
your virtualenv in a similar manner.
6161

62-
63-
To run tests for one or more specific test environments(for example, the most common configuration of
64-
Python 2.7 and PEP-8), list the environments with the ``-e`` option, separated by spaces:
62+
To run tests for one or more specific test environments(for example, the most
63+
common configuration of the latest Python version and PEP-8), list the
64+
environments with the ``-e`` option, separated by spaces:
6565

6666
.. code-block:: bash
6767
68-
$ tox -e py27,pep8
68+
$ tox -e py38,pep8
6969
7070
See ``tox.ini`` for the full list of available test environments.
7171

@@ -96,9 +96,9 @@ Using PDB breakpoints with ``tox`` and ``testr`` normally does not work since
9696
the tests fail with a `BdbQuit` exception rather than stopping at the
9797
breakpoint.
9898

99-
To run with PDB breakpoints during testing, use the `debug` ``tox`` environment
100-
rather than ``py27``. For example, passing a test name since you will normally
101-
only want to run the test that hits your breakpoint:
99+
To run with PDB breakpoints during testing, use the ``debug`` ``tox``
100+
environment. For example, passing a test name since you will normally only want
101+
to run the test that hits your breakpoint:
102102

103103
.. code-block:: bash
104104
@@ -207,4 +207,3 @@ Example
207207
from openstackclient import shell
208208
from openstackclient.tests import utils
209209
from unittest import mock
210-

0 commit comments

Comments
 (0)