Commit Graph

125 Commits

Author SHA1 Message Date
Martin Kopec d6ef9a22cd Switch testing to Antelope testing runtime
Updating the testing template to Antelope testing runtime:
https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: I2e0b6d679d1262bd63b0f9375ec28eb2affa135d
2023-01-19 11:20:12 +01:00
Zuul 316035d7ec Merge "Update python testing as per zed cycle teting runtime" 2022-06-16 14:45:04 +00:00
LiZekun 7bf6a65ff9 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: Ie3c38ca062b2bce644d11c48403c9c77ca0de9a1
2022-06-16 10:59:50 +02:00
Hervé Beraud 625bddff52 Fix formattiing of release list
Change-Id: Ie0e0df49b442aac9271b31467c2d19eaf2c465f7
2022-05-27 14:02:35 +02:00
Martin Kopec dfbac15677 Add openstack-tox-py310 job as nv
Let's test against py3.10 to prepare and to make sure the project
is compatible with py3.10.

Change-Id: Ie259e3c1f1324d42dc6fda1a7db80dbab2f19105
2022-05-11 14:18:58 +02:00
LiZekun 142a34e3f6 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I72a05b539b87cceae35ab479eb4441e3f2690287
2022-02-16 10:24:35 +00:00
Ghanshyam Mann 169c4a9c52 Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Also, as coverage2sql is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.

Change-Id: Ieb7cf6334a6deedfd9d72f348d1cbc1cd100b054
2021-11-03 21:08:03 +00:00
tushargite96 e9889ae093 Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I3a715d59a40eb965b870252335ee73c0da781919
2021-09-29 08:59:36 +05:30
Zuul 2f65fd868e Merge "setup.cfg: Replace dashes with underscores" 2021-06-07 15:47:07 +00:00
Anand Bhat 2a81af8bd3 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Id582b9d916081d11edfc1928f87742df5d54888f
2021-06-02 16:11:44 +05:30
Ghanshyam Mann 9321c5255a Update IRC network to OFTC
Change-Id: Ic0e0214f9b9522847cd01deeddf83870b279ec4c
2021-05-31 15:06:33 -05:00
Zuul 66d4c2c803 Merge "Remove Six" 2021-05-06 08:10:05 +00:00
Zuul 5f066f5c46 Merge "Changed minversion in tox to 3.18.0" 2021-05-06 08:08:49 +00:00
Zuul 206a07bff5 Merge "Switch testing to Xena testing runtime" 2021-05-06 08:08:46 +00:00
Martin Kopec 8c53ac098f Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: Ic0a086d06aa78280cc29a893c68c4dceb73dd1a3
2021-04-29 14:46:23 +00:00
tushargite96 0d12aae281 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Ie0d1d3964043e6dd518f3b7020f58f4f3b2de76c
2021-02-25 22:38:30 +05:30
liyou01 93876369f3 remove unicode from code
Change-Id: I73b98a49229da9107203b11c7fefd3c59481a9b6
2021-01-07 10:40:35 +08:00
liyou01 82ed0f3ba0 remove unicode from code
Change-Id: Ib37849cbcedc697bf15c84b726e05378ab1aed43
2021-01-07 10:38:32 +08:00
xuanyandong fea43c4dd2 Remove Six
Change-Id: I0a7a770165f4841ab5d81cb13645c063aedccebf
2021-01-02 10:25:29 +08:00
Zuul 599e92589a Merge "Stop to use the __future__ module." 2020-11-04 15:39:07 +00:00
Ghanshyam Mann 726b149452 [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#1885825
Fix user creation with GRANT in MySQL 8.0(Ubuntu Focal)
Ubuntu Focal (20.04) has mysql 8.0 and with mysql 8.0 there
is no implicit user creation with GRANT. We need to
create the user first before using GRANT command.

Story: #2007865
Task: #40212

Closes-Bug: #1885825

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

Change-Id: I7feffa300fea7d86749143aae5fb547beb54406d
2020-08-02 19:33:34 +00:00
Vishakha Agarwal 75f0726947 Switch testing to Victoria testing runtime
Upating the testing template from ussuri to victoria
testing runtime
- https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: Id8c5862b59188f2607c45392fa3b01b681825488
2020-08-01 19:45:42 +00:00
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
Hervé Beraud 12b53e108a Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I46f1872407495af231e65cfe784cee731b345f3b
2020-06-02 20:09:13 +02: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 docs.openstack.org
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
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

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
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

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].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
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 setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py 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
version.

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
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

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:

 https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

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:
https://governance.openstack.org/tc/goals/train/python3-updates.html

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/test-setup.sh
so adding bindep.txt file for this binary dependencies

- http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html

Change-Id: I6e624fe1b99a6257147deb694e0da87590e4102e
2019-07-17 04:34:45 +00:00
Masayuki Igawa 05bfc7613e
Update and fix docs conf.py
This commit updates and fixes the conf.py 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:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

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:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

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 https://opendev.org/ 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