flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Ifcf204b037130057dc27e42d10473c1b3e45c922
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.
Fix problems found.
Change-Id: I4418c77b622f0a0f2f729b957cceb577d20f30d9
Now that we no longer support py27, we can use the standard library
unittest.mock modules instead of the third party mock lib.
Change-Id: I328fd430e61b666147095f860d02a2badcfd3072
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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
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
building of docs fails due to incompatibilities between sphinx and other
packages. Sync requirements with global requirements, this fixes the
build problems.
Change-Id: I2060945854515fa54a8c5e3e9598a9255e5493e4
This commit removes the file storing from the rss endpoint. The code
is buggy and also a potential sec issue. It also isn't actually needed
as most (if not all) rss reader will handle missing entries fine, as
long as the ids are unique it shouldn't matter. So even if we lose old
entries on a crash or restart it won't be an issue.
Change-Id: I595abc566880ae6c778b00affde12e2227c9ec35
This commit updates the requirements that comes from global
requirements. But some of libraries are not in global-requirements[1].
So I've added the licenses for them. And we may need to add them to
global-requirements later.
[1] flask-jsonpify, numpy, pandas, subunit2sql
Change-Id: I05a04406f966917e35c91aca3f8b0cd870e9a498
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