This is deprecated in pbr. While we're here, we also clean up some
formatting and remove an unnecessary MANIFEST.in file (pbr doesn't need
these)
Change-Id: I9d5023a083905da76c20bde503a6ec65f0849573
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
requirements.txt is unnecessary when run tox -e docs,
docs relative stuffs is in doc/requirements.txt, this ps to
remove the requirements.txt from tox.ini
Change-Id: I69b5a12128669de877a27fbbd09ffde8d8149508
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.
Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.
pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)
For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks
Change-Id: Ib2e545d2dc93e18055ade232599e76f319a44e6b
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Change-Id: I4a4ec207f87d3afb58b6427825ce9b3872823008
Test python 3.7 instead of 3.5 for Train now.
Update docs building to have separate dir for dirtrees so that they do
no get published.
Change-Id: Ica60dc6ffa6c14e0a07489ac8a8b2be4800caa31
- Moved to py3 by default
- Moved to testr
- Updated docs venv to match PTI
- Fixed a slight py3 compat issue
- Added py35 and py36 jobs
Change-Id: Id3a8c1c30ecfe9b6538bff6357aecca7ecd0ed81
Signed-off-by: Graham Hayes <gr@ham.ie>
The jobs are not working with Zuul v3 as is, we need
to update all job configuration and add a new job
1) Add os-api-ref-nova-src job
Replace the legacy version with a new shiny one.
2)
Avoid tox_install.sh for constraints support
Follow https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh, we can build without it.
Depends-On: I97448d681e3e48753496818fa248ee96dd36d65b
Change-Id: Ia9c8672c820a415746e43d3b1fccb2df2f574b24
tox_install.sh already takes care of package installation, respecting
upper constraints. we don't need to rerun installation without
constraints afterwards.
Change-Id: I6599d1532daba8dbabbbf2a15dfb4d2b08b8c981
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-api-ref.
Change-Id: I7ad1c2afda29b095ff3d53db5eec7101f8816c2e
sphinx and sphinx_testing doesn't appear to be fully concurrent
safe. For now, lets just run in a single process.
Change-Id: I0b1bd24878a7641bc8c456141bf091b48c19619d
This mirrors in the version of the sphinx extension from Nova commit
1f67ab311422234335cda0e21e74186524617904 which includes the warnings
for out of order parameters.yaml files.
Static assets are stored in the assets/ sub directory, which includes:
* bootstrap files (including fonts) - MIT licensed
* api-site specific js and css fixes
The extension is updated to move these assets into the build directory
when building html, and to register these assets when we first start
up.
pep8 126 error fixed, and E129 ignored (because it's not compatible
with emacs indentation, and annoys me).
This builds the Nova api-ref tree correctly, which is not bad for a
Friday afternoon.
Change-Id: Ifd4fd570c8dbd981564326486f79b826f059543f