Commit Graph

16 Commits

Author SHA1 Message Date
Takashi Kajinami 36ec0010f6 Replace the old UPPER_CONSTRAINTS_FILE env
... by the new TOX_CONSTRAINTS_FILE env, according to the changes made
in the OpenStack projects.

This also adds the constraints to the doc target, to avoid issues
caused by too new versions being pulled.

Change-Id: I3e99c1c24032cc3f4bc85ab07c28f830122beed4
2024-03-04 11:36:30 +00:00
Adrian Vladu e09af5f15b tox: fix py3 / docs gates
Bump version of tox to 4.02 and add requirements for the docs.

Change-Id: Ib4131d1278d742a4730935240b59e6b0e3d94555
2023-01-18 16:05:56 +02:00
Adrian Vladu 28f4fbbd45 Fix Python 3 unit tests
Removed the functools partial from being mocked, as it is used
internally in the mocking implementation and generates unit test error.

Updated tox / unit test requirements according to new OpenStack gate
requirements.

Updating the tox requirements added a new set of flakes rules that had
to be skipped for now, which will be addressed in upcoming patches.

Change-Id: I231ca3b15313541e2c43785e80d9db5659aa1cc3
2020-09-30 15:14:05 +03:00
Adrian Vladu d6506b1fba zuul: use python3 for coverage gate
The zuul gates do not support Python 2.7 and latest
setuptools, switching to Python 3.

Change-Id: Id1a7c16b988a8e88f7650d4e13ad59775c1c76b3
2020-01-13 17:03:12 +02:00
Adrian Vladu 208405289e docs: change theme to sphinx_rtd_theme
Changed docs theme to a better, mobile friendly one:
https://github.com/readthedocs/sphinx_rtd_theme

The duplicate labels were removed, as the sphinx extension
sphinx.ext.autosectionlabel requires unique titles (labels).

Change-Id: Ife17206c3b2370250388692a9330585f5193e450
2019-11-15 19:06:09 +02:00
Zuul 303ce0ed6f Merge "Deprecated tox -downloadcache option removed" 2019-07-29 07:05:50 +00:00
Andreas Jaeger e370fc937c Update docs building jobs
Replace build-sphinx job with tox-docs (using template
build-openstack-docs-pti) job as best practice for building docs.
Update tox.ini for this and remove now obsolete section from setup.cfg.

Fix doc building: Remove option from doc/source/conf.py for an unused
directory.

The tox.ini file already contains python3 for releasenotes, update the
job now to do this as well.

Change-Id: I7552c802a99f0338ff6a5a3bba1f24902c55bed4
2019-07-12 08:46:35 +02:00
Zuul ed8a41fc49 Merge "fix tox python3 overrides" 2019-06-19 07:34:20 +00:00
Zuul 113bed28a7 Merge "Remove unused pylint tox target" 2019-06-14 14:37:55 +00:00
Vieri 6ef695d76e fix tox python3 overrides
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: I6a4fb2fbd45b6292ee0222685211081289960726
2018-10-12 08:55:16 +00:00
Claudiu Belu a54fc82106 Updates tox.ini's cover environment
The openstack-tox-cover job expects a coverage report at the end.
This patch updates the cover environment in tox.ini, bringing it
in line with the other repos.

This also adds stestr in test-requirements, which is needed by the
new coverage env.

Finally, removes the cloudbaseinit import from releasenotes.
According to [1], a project shouldn't necessarely be installed
in order to build its releasenotes.

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html

Change-Id: I77dfe57f1190fc62f7bd19284e2c86d55bb1804a
2018-10-05 08:14:04 -07:00
Sean McGinnis ae8bb3d192 Remove unused pylint tox target
The pylint target referenced a script that does not exist in the repo,
so obviously this tox target is not used.

This also cleans up an empty [hacking] section since we're cleaning up
tox.ini.

Change-Id: I6fcd1caecd84effdab2f4053821e7cb7933aae7a
2018-06-05 11:05:38 -05:00
Claudiu Belu 74e3457769 Adds releasenotes configuration
Adds the necessary bits for the reno support.

Change-Id: Ib76aeb5e2e5616bfb6a293684de50eb727e012a7
2017-07-21 11:25:12 +00:00
Adrian Vladu 34fb5a065f Use the openstack upper requirements
If the requirements and test requirements are not pinned,
there can be failures when the pypi repos are updates with packages
that are not backwards compatible.

By using OpenStack's upper requirements, this issue is mitigated.

Change-Id: I96b7f810644c3179979057f7e1f137b12e487f16
2017-05-17 14:30:55 +03:00
Ondřej Nový 09efcd1894 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Icca41ecec0c3704714b46929990c989c7946a9e0
2015-12-11 22:53:51 +01:00
Alessandro Pilotti c1bf5e36a0 Adds tox.ini 2014-09-10 12:57:37 +03:00