hacking 3.0.1 fix the pinning of flake8 to avoid bringing in a new
version with new checks.
bumping the min version for hacking so that any older hacking versions
which auto adopt the new checks are not used.
Change-Id: I8d00d1e6617e556511430b8ed546a525e7e22d37
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Disable openstackdocs_auto_name to use 'project' variable as name.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I13e5de067ad381d058060bc5e297a0360804e119
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Cleanup releasenotes/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Update to hacking 3.0 for Sphinx 3 support, fix problems found
Change-Id: Id7cab423584af9280da54f12a29daa1f60a3ca35
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I7590895d9812f61fcf57c956a26f27d0d567613e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Use doc/requirements for documentation requirements, this avoids pulling
in sphinx into the python environments and thus solves the problem that triggered
https://review.opendev.org/658224 as well.
Note that both changes are needed in general, while the problem is solved
with either.
Switch to openstackdocstheme instead of oslosphinx, update sphinx
requirements for this and sync with global requirements.
Change-Id: I360c185af8740a71ebc0f5f49debd5b6032161ec
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I49de3c0afde9bf3be15b02017031f44bbefcb1e7
Introduce ''stub_out'' method to base test class
We would like to fully remove mox from the test tree.
Even for tests that don't use mox's validation, many of
them are using the symbol patching with self.stubs.Set. We can
do the same thing with the monkeypatch fixture instead.
This introduces self.stub_out to os_net_config/tests/base.py
and modifies the self.stubs.Set usage to self.stub_out.
We also remove the mox dependency.
Change-Id: Ib2fba5ecbbca5526bce2a4405704efb69ab7b5f0
Signed-off-by: Charles Short <zulcss@gmail.com>
It appears os-net-config is not in the sync list for g-r. We should
add it, but in the meantime this will get us up to date.
Change-Id: I828a394ce72824eaabe904b563f73734a88c21f8