In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.
Also, as openstack-health is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.
Change-Id: I894984577bf8c83669c96fd627bb9767237c3f68
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: 35466
Change-Id: Iefa8795ba985f502f952001cdc616dae20847ef9
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
Change-Id: Ied0e774f0efda76794ecfb0f67a5fd51bb380258
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.
Fix problems found.
Change-Id: I4418c77b622f0a0f2f729b957cceb577d20f30d9
Because sphinx and oslosphinx module is not for the unit test.
I remove sphinx and oslosphinx from test-requirements.txt.
Add doc/requirements.txt and modify doc/source/_static/conf.py
Beacause of the build of py27 is failed(Zuul), I write this patch.
Change-Id: I306795ca0192675d8ffb9bbc2f1fa04165a45209
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.
Change-Id: I3a1583c2019e8cf990a8864c5a1b3350e5e08a9f
Closes-Bug: #1801488
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: Ica8253d82288ecf2e281b521b7ade989c8d6c442
This commit switches to use stestr[1] instead of ostestr. We don't need
to use ostestr layer because we can use stestr directory.
[1] https://github.com/mtreinish/stestr
Change-Id: I566dca2f3052520a09558bf315b433984c221034
This commit adds py35 to the tox.ini envlist. We should support not only
python 3.4 but also python 3.5. And this commit also fixes the envlist
order to avoid the testr execution error with dbm usage.
Change-Id: I9e48a66f47ad5f73c117e2d6ddb10ebd4b1e2bba
--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: Ibb5c178ccd9063f94fc3b3fac4d395494c3539b3
This adds two new test environments for npm test and npm lint so that
developers can just call tox and be sure all tests have been run.
Change-Id: I71d8f5d566b9dbab65e893474b6df56c86c73903
Co-Authored-By: Dhiana Deva <ddeva@thoughtworks.com>
The tox.ini pep8 command was running flake8 on the whole repo, however
when also testing the frontend side of the project some of the js
dependencies pull down python code. We don't want to run flake8 on
external code. This commit adjusts the command to only run flake8
on the openstack_health dir which will limit it to our code.
Change-Id: I003e1b87c4990fd09596a222cb506b113eb47abb
This commit adss the basic framework for unit tests of the rest api
and 2, yes 2, unit tests to cover the /runs and /tests endpoints.
This will be expanded in the future, but this is to just give us a
starting point as we expand the api.
Additionally, to unblock the repo this adds missing tox envs which
are needed to pass the docs job. It also takes care of the other
missing pieces to pass a build sphinx run.
Change-Id: Id46476285612789e3b7817eacc45125cf6c3a548
This commit adds the basic python infrastructure to the repo. The
backend rest api on top of the data stores will live in the repo
but before we can add that we need to be able to support python code
in the repo.
Change-Id: I869f42e148c2f5c2369fb5613d43b4ec25aaa2db