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: Ida2ec7793c3863836e1c626eb72e0aa9f48b6810
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
CONFspirator was written to just specifically for Adjutant
and it allows us to do oslo.config style config management
and definition with nested groups and for yaml.
This is a major change that touches vast amounts of the
code simply because of how much the config touches.
Actions, Tasks, DelegateAPIs, and Notification Handlers
now can define config in their own class and this will
be added to the config.
All the other config is located in `adjutant.config`,
with everything now registed nicely on the config tree,
and grouped in much saner ways.
CONFspirator will also now allow Adjutant to be entirely
configured via environment variables.
We have removed `modify_dict_settings` because that is
now entirely handled by CONFspirator's test utils.
`NotificationEngine`s are now `NotificationHandler`s.
`test_settings.py` is gone! And we now have better ways
to define test settings and defaults.
Project line length bumped to 88, and bugbear added to enforce
that instead.
Story: 2004488
Change-Id: I1d97d72d06b3a3a5df90355d3a4b4fe414381424
Follow PTI [1] for doc building:
* Create doc/requirements.txt file with all docs requirements.
* Switch to openstackdocstheme and update conf.py for this.
* Move doc8 to pep8 section since it's a linter.
Additionally:
* Fix all build errors with doc building.
* Update requirements list with license info.
* Use hacking instead of flake directly.
* Remove unused _static files, those are not needed.
* Update git URLs, fix contributor guide URL
* Move README.md to RST, everything else in this repo is RST
* Publish documents to docs.o.o - note that
https://adjutant.readthedocs.io/en/latest/ was last updated in March
2018
This adds jobs for building of release notes - only building since
there's no content yet - and publishing of documentation.
Publishing of api-ref can be done via:
https://review.opendev.org/675766
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
Change-Id: I82f56ef5ea800899b2a8db795b6cf2b21d03ac7a
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="
Change-Id: I86e633512de5e35384f8dc7aa0b29a1fc07aef97
Sync up requirement files with global-requirements,
and set tox default envs to be 'py3' over 'py35'
Change-Id: Ic78246a4a75b88027b4896664874d1efc587582c
* API Reference and documentation as two seperate sphinx
document sets
* Information from the Devstack guide and README moved over
to the new documentation
* Configuration examples
* Examples of building plugins
* Both use the new sphinx-rtd-theme
Change-Id: If347905aa14b77b5943f1a9de97f6e287b98ce95
* also fixing test posargs to allow single test running
* fixing up random pep8 failures
* removing empty or unused test modules
Change-Id: I59bb2fedeeac2b8eeb45740d16768fec59fb3e4b