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.
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.
Set openstackdocs_auto_name to use 'project' 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.
Depends-On: https://review.opendev.org/729744
Change-Id: Ia2c49cfc3a933a04d6ee4aea6c827935bebd3c41
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: I117c0ff7fe10fa6a1fd1dee7c6de3ea1a1ee06f6
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:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Use sphinx-build everywhere
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I23a3b98e41099b74a4da95cc5c6e2d3171c0809c
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
there.
Change-Id: I14aee6250d80b7485c5c582a20abf4efafcc28c2
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
Change-Id: Ia888ea1358c4132f7f154ab616b93247f8051d31
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository and .testr.conf
are unnecessary and should be removed.
This patch also switch from "test" to "stestr" for coverage job .
[1] https://review.openstack.org/571716
Change-Id: I6b506a19edf06a5bc40472f84a51eaae98583a62
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
Also clean up requirements.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Ic9317d0d2e71ffcc5012184510b554453a7e322f
Signed-off-by: Charles Short <zulcss@gmail.com>
osc-lib library is foundation on which a CLI client
for openstack can be built. It is meant to facilitate several
aspects, that were previously hard-coded in client:
* keystone communication handling
* supporting multiple authentication methods (not only password)
* common authentication parameters (i.e. environmental OS_*)
* communicating over http with service endpoint
* interactive CLI mode
Thanks to those items, it was possible not only to drop
nearly 3k lines of code and replace them with osc-lib but also
increase reliabity of the client in terms of new openstack releases.
Also it allowed to greatly simpify existing set of unit-tests.
They are now testing only actual logic instead of mocking
entire process of calling shell (i.e. MonascaShell.run(args)) or
mocking HTTP communication. Both items are handled by osc-lib thus
not they are not subject of monascaclient unit tests layers.
Note:
This change is partial integration with osc-lib and its main
purpose is to move the responsibility of:
* keystone communication
* rest-ful communication with service endpoint
to underlying library thus allowing client to implement only
necessary functionality and not supporting boilerplate code,
mentioned above.
Story: 2000995
Task: 4172
Change-Id: I1712a24739438e2d8331a495f18f357749a633c5
Mocking out the entire http layer means there is no testing being
performed that a request is actually being sent out as expected.
requests-mock mocks requests and responses at the point where it would
be sent out over the wire so we can better see actual made requests.
Change-Id: I66657ecc6a53b23cecfe92c911aee6fd27c68f40
This is a manual sync with global-requirements in order to verify that
python-monascaclient is compatible and ready.
I needed to remove argpase, as it isn't in g-r and also isn't needed.
Change-Id: I0bb43d63dcef87582dd75ef6d495d907a1e2e3c6