This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.
Story: 2006070
Task: 35468
Change-Id: I1d1448153fceece36470547b5f1b646e194dc51d
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I76aacd74de837877d0a2c34a6173ee08108332b6
This commit adds deprecation comments to README, the user doc and
warning message to in the command. We already switched to use
`stestr` command instead of `ostestr`. And we haven't maintained
this command recently. So, it would be good to make it clearer for
users.
Change-Id: I3a6084db9f86627e3e94abaa4fb4aec52a01126a
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I721815ac34e3cd0bc84a5e69104aecfe7fd62e79
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I37fdd240862d4369160c3e7a7e5a004a154a5944
Apparently if -t is not specified, the path to the unit test directory
follows immediately the "discover" keyword.
This fixes the discovery for the .testr.conf in the sahara repository
(even if is being replaced by .stestr.conf, the fix may still be
useful).
Also, split the code which discover the legacy values in its own function
to simplify the testing.
Finally, disable hacking rule H405 which kept flagging incorrectly a long
multiline string as docstring.
Change-Id: Ide155a8e6b2b746c81388bacc0822c68d853b5a1
This commit switches the ostestr command to use stestr under the covers.
This simplifies the majority of the logic, eventually ostestr will
be deprecated as a result of this migration. (since almost all the logic
here is contained in stestr already)
Depends-On: I2c7618a742439fd2ed26879f3114f0f66fd6337f
Change-Id: Id7cb2a39a8308f1413608dcf19273a1d7f33592e
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove os-testr.
Change-Id: I258a88eda480c264386947cecbf99631dc777757
The directory openstack/common was used to keep codes
from oslo-incubator, we have retired oslo-incubator,
so don't use this directory any more.
Change-Id: I8bec126e0e1b66cfde8f683901bd3c5b4d974962
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.
[1] https://review.openstack.org/#/c/217847/
Change-Id: I0430fd696752c1cd8e33bb2d146e08e442ebc3f8
Python 3.3/2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.
Change-Id: Ib4c347038aa894ef808c0ab731d9b38982a47b40
This commit fixes the coverage section in tox.ini to get coverage and
also changes .gitignore to ignore the cover directory and .coverage
directories.
Change-Id: Ia58b5d109ad045833d6c37e16fd0fe3705212ed0
This commit adds a command for deleting *.pyc before executing ostestr
with tox. This patch would help that removing unnecessary *.pyc files
when we rename, move or remove *.py ones.
Change-Id: Ifa0eb18a10c7e7ee7e15ce7cc69a1b007a016a76
So it turns out we weren't actually using ostestr for running the
os-testr unit tests. We probably should use the test runner runner
wrapper we're developing to run the unit tests for the test runner
runner wrapper and the other utilities in the package.
Change-Id: I88af9104352163f2412c2a3cbaf6c88d0a937988