Commit Graph

10 Commits

Author SHA1 Message Date
Zuul 86d1aa8378 Merge "Use unittest.mock instead of mock" 2020-08-17 16:07:38 +00:00
Hervé Beraud 24fc79fe24 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I453515f347a59f4c6f60e0dcba2c327cf2a40426
2020-08-17 17:43:44 +02:00
Ghanshyam Mann b161ecca7a [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40207

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>

Change-Id: Id3df43c47a3bdfce317331e1e3e4df775c4b4f32
2020-08-04 00:33:17 +00:00
Sean McGinnis c2ecc30f16
Remove demjson from requirements
This package is not actually used anymore in this repo, so this cleans
this up so it can be removed from global requirements.

Change-Id: I6f6065138760ba8af46f45f45e3a9bb7e8e0f75b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-23 14:49:19 -05:00
Andreas Jaeger 7ee77130c4 Switch to newer openstackdocstheme and reno versions
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: I5f985549671e3b4f8c438f247fae0818d25b21f5
2020-05-29 12:45:49 +02:00
gujin 70cef7f849 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ief136815d6a0e1dfa0b8d1ffb42500fef38e39fe
2019-11-01 14:54:19 +08:00
Andreas Jaeger 06d7ac27b7 Update docs building
Use sphinx-build and cleanup unused config.
Switch to openstackdocstheme 1.20.0 and remove obsolete settings from
conf.py files.

Update some RST files, they had wrong indentation.

Change-Id: Iaad2841db809f8a343fb8b1031cf8d0587d70442
2019-08-11 09:48:06 +02:00
Andreas Jaeger 0ebc4cc42e Update hacking
Update hacking requirement to current 1.1.0 release.

Change-Id: Ieddf10f6876dc8a85bf3c92c321fa0a610f685b7
2018-12-11 08:19:26 +01:00
Vu Cong Tuan 500911422f Switch to stestr
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: Ibbad6f4e63efbef4e2e144f3ba4218ce6579371a
2018-07-11 13:10:05 +07:00
Doug Hellmann 3e766d6c0a add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

Add missing dev packages for libxml and libxslt to the bindep config
file.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I4a51633916661bdfa926eb231b8e482628887e90
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-25 09:16:50 -04:00