Commit Graph

102 Commits (2409d79d62462acd46c35caf01c8888790f31b15)

Author SHA1 Message Date
Ghanshyam Mann 2409d79d62 Use unittest.mock instead of third party mock
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: I4869426a4c39071a9e6d60c02ed13f8e5bb72536
2020-08-01 14:44:56 -05:00
Andreas Jaeger 9995eee4c0 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' as name.

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.

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.

See also

Change-Id: I628af06b3702925bef790b3b3d1c47c2d7c7cbb0
2020-05-22 17:25:34 +00:00
Ghanshyam Mann e61fcc58bd Fix hacking min version to 3.0.1
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


Change-Id: I76d48e28a9c0a987acde2bb8262fc02aded302ef
2020-05-12 21:55:20 -05:00
Ghanshyam Mann 4f2a24dcc4 Fix typo in contributor guide
There are few typo in contributor guide which were
added recently.

Change-Id: I0c140c0afdd506c20ac109be893c7d50b1eda494
2020-04-22 21:54:05 -05:00
Ghanshyam Mann 772d75cc46 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

Story: #2007236
Task: #38554

Change-Id: Ie02405c3b89b8d5f338191b7d8e58853186b4938
2020-04-19 17:56:05 -05:00
Andreas Jaeger 339f23dcf5 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/ to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine

Change-Id: Ib70fcdc751a1e84d3160558361a76bbd328f4625
2020-04-17 17:08:58 +02:00
Andreas Jaeger e80d1be437 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new

Change-Id: I8297a152273c5accda885df64ccedd247994076c
2020-03-30 17:40:08 +02:00
Andreas Jaeger 77cdf205d4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

fix issues found by flake8.

Change-Id: I2f14cb6f67a0c9b4c0dcbf8d93c26eb99b9b9d33
2020-03-28 10:47:17 +01:00
Ghanshyam Mann 157f0c0ae7 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

coverage2sql is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal:

Change-Id: I7e523bff1144d827dd1377c00d4a51512e265a85
2020-02-03 18:50:34 +00:00
Masayuki Igawa 1f3763636b
Add PDF documentation build
This commit adds PDF documentation build target 'pdf-docs' that will
build PDF versions of our docs. And this commit also updates 'docs'
target to use sphinx-build command as well as 'pdf-docs' target.

This is one of the Train community goals:

Change-Id: Iae6bc9ae92fe61385c424923eaad35dc449880e9
Story: #2006070
Task: #35455
2019-10-02 18:48:31 +09:00
Corey Bryant 696e2b5256 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:

Change-Id: I41cbb002ac07dde1380c1edc6b05495aac67f04a
Story: #2005924
Task: #34240
2019-07-17 05:08:43 +00:00
Ghanshyam Mann 55f5c8fdcf Fix gate error "mysqladmin: command not found"
mysqladmin package is required in tools/
so adding bindep.txt file for this binary dependencies


Change-Id: I6e624fe1b99a6257147deb694e0da87590e4102e
2019-07-17 04:34:45 +00:00
Masayuki Igawa 05bfc7613e
Update and fix docs
This commit updates and fixes the of documentation.

Change-Id: I23dbefa2a91417f5b2ce9b854dbfe4ab623aa6aa
2019-06-07 12:07:40 +09:00
Zuul ad2d8ae2dd Merge "Update envlist and classifier" 2019-06-03 12:05:17 +00:00
Zuul 03c18e3cef Merge "Add openstack-python37-jobs" 2019-06-03 11:48:10 +00:00
Masayuki Igawa 75ad13d330
Separate requirements for documents tox job
This commit separates the requirements libraries for the docs job in
tox.ini. The latest sphinx doesn't work in Python2 environments anymore.
So, we need to split that into the test and docs jobs.

Change-Id: I7255cd9af0dfb5c1f66c1aa65d0ddfb144079836
2019-06-03 19:01:50 +09:00
Le Hou 9f1e5b4adf Use opendev repository
Change-Id: I688953064faafb12a1828795960cbeaecb606367
2019-04-23 17:16:38 +08:00
Zuul 7f3f36825b Merge "Introduce doc8" 2019-04-22 08:18:29 +00:00
Zuul 72d121560c Merge "Add metadata column to coverage table" 2019-04-22 08:18:28 +00:00
Zuul a394b0290a Merge "Add usage to README.rst and usage document" 2019-04-22 08:14:32 +00:00
Zuul 53b10c680b Merge "Remove unused config entries from sample config" 2019-04-22 08:14:31 +00:00
Zuul e20a6068be Merge "Ignore *.db file from git repo" 2019-04-22 08:11:39 +00:00
Masayuki Igawa acbbc79ba3
Update envlist and classifier
This commit updates envlist in tox.ini and adds Python3.7 in classifier.
We should have py37 instead of pypy.

Change-Id: I2f7a6b7eb8099cfd34f0fe84bb01f23c115c9dda
2019-04-22 16:54:11 +09:00
Masayuki Igawa 5a4e6eed0a
Add openstack-python37-jobs
This commit adds openstack-python37-jobs to ensure it. It should work on
the environment as well.

Change-Id: Ie08aaf10707c275e301d0c79c22853e8b7ba2a2c
2019-04-22 16:51:53 +09:00
Ghanshyam Mann ae7bad6a6f Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:


Change-Id: Ib3ad13631f24983ac13531bb47f90897732bec60
2019-04-22 03:26:07 +00:00
OpenDev Sysadmins 0ff1867857 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at with any
questions you may have.
2019-04-19 19:36:21 +00:00
Masayuki Igawa 85216dc2fb
Introduce doc8
This commit introduces doc8 package to sanity the documents. As a
result, one minor doc8 violations were found and fixed.

Change-Id: I0e9d6212536e59e438a14f632c4fc6016c31cc60
2019-04-18 16:34:13 +09:00
Masayuki Igawa 52c7cfde08
Add metadata column to coverage table
This commit adds metadata column to the coverage table. This should be
useful to filter results in the future.

Change-Id: I224d340b70ddd2c3cf7923f517281020470a9e45
2019-04-18 16:17:36 +09:00
Masayuki Igawa c8415e0849
Add usage to README.rst and usage document
This commit adds an example usage to README.rst and usage document
for convenience.

Change-Id: Id1d6e58eea5f6f70568a1716f19add4d531f4ab1
2019-04-17 16:25:00 +09:00
Masayuki Igawa a4b97d3329
Remove unused config entries from sample config
This commit removes unused config entries from the sample config file to
avoid confusion.

Change-Id: I13afaf2f0e5990a3f8a959033e93d1989b94c3f3
2019-04-17 15:47:06 +09:00
Masayuki Igawa 1dafed5642
Ignore *.db file from git repo
This commit add *.db to .gitignore to ignore the files for testing. We
don't need to track such files.

Change-Id: If2cdc7169453c46324d0f6e100448b07b9ffd68c
2019-04-17 15:40:38 +09:00
Zuul 4704d56363 Merge "fix tox python3 overrides" 2019-03-27 07:37:38 +00:00
Zuul 71bf261e0d Merge "Removed older version of python3.4" 2019-03-27 07:17:40 +00:00
huang.zhiping 2c8b965bac Update home-page
Change-Id: I9b83d293aae638f0e6516bb17d681e26f75f7bf4
2019-01-11 12:25:54 +00:00
huang.zhiping f2cecbb2e8 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: I22f6e478534a5fd90af565812dc81a0fac2f2132
2019-01-11 06:10:34 +00:00
qingszhao 955eed08c9 Removed older version of python3.4
Change-Id: I1c594041c393ef7b05fcee23d98828d46030ec92
2018-12-25 06:37:13 +00:00
98k 97b3c40428 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I3ae175a8d2a48d2ea4f0cdb2e5f7db0c83036651
2018-12-05 15:05:00 +00:00
Doug Hellmann f5a1c60493 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: I66d77a977b76118d3a7b74f1f5b238370b43a38d
Signed-off-by: Doug Hellmann <>
2018-09-26 18:47:47 -04:00
zhangzs f4f003bdb6
Update url in HACKING.rst
Change-Id: Id55b1468ece144cf139ea55b8c1da02d0e110bd9
2018-09-12 16:49:35 -06:00
zhangzs dec89a600f
replace http with https
Change-Id: I538bf4e38c798616e577bb78c2f98daf9eda59d3
2018-09-12 16:37:00 -06:00
Andreas Jaeger b2dce848a5 Use openstack-tox-cover template
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Remove jobs and use template instead.

Change-Id: I998c864f6d63921d6b424f81b0d38561edf5675c
2018-09-09 06:07:27 +02:00
Doug Hellmann ed276c520b add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:

Change-Id: Id87ec090147d51f7dbf4d52fcbf7bfc1c78b7e10
Story: #2002586
Task: #24327
2018-09-08 22:54:13 -04:00
Doug Hellmann 88bb93afb3 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:

Change-Id: I5ece9bc05363937be7e0cfda8d73098129ad6fe9
Story: #2002586
Task: #24327
2018-09-08 22:53:57 -04:00
Doug Hellmann f51f4da5b1 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are

See the python3-first goal document for details:

Change-Id: Ie230833a7a49ccd49c67a3969adb0a0ff7b798b7
Story: #2002586
Task: #24327
2018-09-08 22:49:41 -04:00
Zuul 2cfa2dfbf4 Merge "Update links in README" 2018-09-05 06:19:05 +00:00
wu.chunyang ef3ee1031c Add release note link in README
Change-Id: I1544c6d41ca7be89c03c5bf057a84b8034fb74a7
2018-07-05 23:56:08 +08:00
XiaojueGuan eb9ef962de Update links in README
Change the outdated links to the latest links in README

Change-Id: I0c57f419bba60bf1a3f0356f0a65794e8994ce76
2018-06-12 15:22:40 +08:00
wangqi 8d0f69a295 Update links in README
Change the outdated links to the latest links in README

Change-Id: I8bfa10a1dca78c3bee1692087f269a54f0beb621
2018-03-08 11:29:10 +00:00
Zuul 51217c4942 Merge "update the docs url in the readme" 2017-12-25 06:50:57 +00:00
Masayuki Igawa e541da94aa
Switch to use stestr instead of os-testr
This commit switches to use stestr instead of os-testr. It should be
better to reduce the test runner complexity.

Change-Id: Ia16ad5ed6d9ed7be9dc6902f875b0144b24a938a
2017-12-16 17:45:42 +09:00