421 Commits

Author SHA1 Message Date
Hervé Beraud
45df91ada8 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Iac7d5ec69724206453c5fc74cbd61efde9b9a1ee
2021-01-11 15:07:40 +01:00
wangzihao
43203ea025 Update doc8 version
The doc8 lib supports Py36 starting from version 0.8.1

Change-Id: Ifcff34d4432771ae9401f97d9abeb9b609fb0c6a
2021-01-06 16:54:19 +08:00
Zuul
66a9c2ff7f Merge "Remove six" 2020-11-03 10:07:18 +00:00
wangzihao
feb22145a1 Remove six
Remove all usages of six

Change-Id: I3a5dedade263337aeef12eac1c4daf2f7e82e306
Story: 2008305
Task: 41190
2020-11-03 03:27:56 +00:00
20e1d9f4d9 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8b5deb1798ea049637fa5c53d3add708cd426b6b
2020-09-11 21:59:48 +00:00
7f124942b6 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I6d2a986341c84c835b9aef6daf01bdac9f658e50
Sem-Ver: feature
2020-09-11 21:59:43 +00:00
Zuul
4c3eef6277 Merge "Bump default tox env from py37 to py38" victoria-em 2.2.1 2020-09-08 14:07:40 +00:00
Hervé Beraud
152a1a2e7c 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: I932c7c332a26bd33ecb59bc299cabf63f63c84b2
2.2.0
2020-06-02 20:49:51 +02:00
Zuul
77a7e2b03e Merge "Add py38 package metadata" 2020-05-28 13:43:29 +00:00
Zuul
6e3afd0550 Merge "Switch to newer openstackdocstheme and reno versions" 2020-05-27 08:48:17 +00:00
Andreas Jaeger
30fdf5ff21 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.

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
2020-05-20 21:47:56 +02:00
lidong
a03959ff32 Add releasenotes link to README
Change-Id: I9b4b6f13b6c9afd9c598cd1a687792674ecc9c98
2020-05-20 10:35:50 +08:00
Witek Bedyk
5a73c6aa4e Update CONTRIBUTING.rst
Change-Id: I821b2e48169f7ba49456b700d7bc2ed353df5e81
2020-05-19 16:31:51 +02:00
Ghanshyam Mann
4866bf8ec9 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: I117c0ff7fe10fa6a1fd1dee7c6de3ea1a1ee06f6
2020-05-12 19:33:37 -05:00
Sean McGinnis
b628032342
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Iff25bf057492ab20c114e9b89a22bed6ca12ba3e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:56 -05:00
Sean McGinnis
c3aaeb9782
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I119bc3dbfa01acf25b9552b5db404c1732622c88
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:17 -05:00
Zuul
2a2ebb350c Merge "Use unittest.mock instead of third party mock" 2020-04-23 13:20:28 +00:00
Zuul
1571a1a3e4 Merge "Fix mock import statements" 2020-04-21 12:44:24 +00:00
Sean McGinnis
ae6b76babf
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: Id77149ec55f6bc1ca6572ae36c50021ec44629bc
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:58:50 -05:00
30fe7506af Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8cd7e6034509da7ea4cba4092e373f10eb774160
2020-04-18 15:10:05 +00:00
33ccf34a8b Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I9ae8645ced6ce6ef8bc2cdb67731160a5b5cc576
Sem-Ver: feature
2020-04-18 15:10:02 +00:00
Zuul
b07e4b55cc Merge "Don't hard code notification types into Monasca client" ussuri-em 2.1.0 2020-04-18 12:51:02 +00:00
Zuul
557fd9cf06 Merge "Allow users to set periodic notifications on all notification types" 2020-04-18 12:50:59 +00:00
Witek Bedyk
78569fec5b Fix mock import statements
As we dropped Python 2 support we don't have to use the third party
mock library with Python 2 compatibility and can move to Python 3
standard library. The change updates the import statements to reflect
that.

Change-Id: I39d9410ae43a2d9e6f6d6eaf74d06a82f2c33524
2020-04-16 18:44:52 +02:00
Zuul
2e4252d1e8 Merge "Cleanup py27 support" 2020-04-14 13:41:17 +00:00
Andreas Jaeger
c917387402 Cleanup py27 support
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
2020-04-08 11:43:54 +02:00
Andreas Jaeger
a09afa37b0 Update hacking for Python3
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
2020-03-31 22:07:59 +02:00
Doug Szumski
5c78113e65 Don't hard code notification types into Monasca client
Available notification types depend on what is enabled in Monasca
Notification. As such, we should avoid hard coding them into the
client and rely on the Monasca API to validate whether a type is
supported, and to list the supported types.

Change-Id: Icc18bffa04806235583459721f8cb8e36a247f05
Story: 2005551
Task: 37848
2019-12-19 10:39:43 +00:00
Doug Szumski
b228dfa61e Allow users to set periodic notifications on all notification types
In some cases, users may want to send periodic notifications for
notification types other than webhooks.

Change-Id: I0256e9a8c3dacaf8bc6066b00daefaa993460a2d
Story: 2006837
Task: 37420
2019-12-19 10:05:21 +00:00
Ghanshyam Mann
2504eeda60 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-monascaclient 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: If739012908f458acccba1e40fe6bb8dbd231fca7
2.0.0
2019-12-15 00:40:37 +00:00
Zuul
a6ff997871 Merge "Sync Sphinx requirement" 2019-10-22 10:43:05 +00:00
kangyufei
118611756f Switch to Ussuri jobs
Change-Id: I7c38bbe089608ce3b7ddd1b43e1bd8db69fe5e1c
2019-10-22 14:18:14 +08:00
pengyuesheng
50e38ad677 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: Ia888ea1358c4132f7f154ab616b93247f8051d31
2019-10-10 15:22:27 +08:00
pengyuesheng
2fd24a217e Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I00453b0ca98d8b7146d78149f3c5b327f9b57b97
2019-09-25 14:15:18 +08:00
363fa0e920 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: If868118c74f73cf8dffb73816206d44bd2e55d93
Sem-Ver: feature
2019-09-20 17:41:33 +00:00
Corey Bryant
3b9ec1177f 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: I1296a80e7a08504e6e6afba52510085393e68d81
Story: #2005924
Task: #34223
1.16.0 train-em
2019-07-05 13:19:27 -04:00
tushargite96
45043b43ce Switch python3 versions of test jobs to match Train PTI
In Train, we will use python 3.6 and 3.7 for python3 runtime
in our gate jobs [1]. This commit also adds python 3.7.

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

Change-Id: Ie0f55b10077547e9842aa476caff0478068dd059
2019-06-24 14:43:37 +05:30
Arseni Lipinski
d02db953dc Change repository links usage in Dockerfile and build image
Used to be: git.openstack.org/openstack/monasca-persister?h=stable/pike
Now : opendev.org/openstack/monasca-persister/src/branch/stable/pike

Since the way links to specific branches changed, usage of
those links has to be changed as well.
CONSTRAINTS_BRANCH variable was removed because CONSTRAINTS_FILE
contains link to the upper-requirements file with specified branch.

Story: 2005666
Task: 31056
Depends-On: https://review.opendev.org/659073
Change-Id: Iea51da2f0d3c19ffd5b3204d495d01e4c9b31750
2019-05-23 08:52:23 +00:00
Zuul
eb7083de7b Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-22 10:42:35 +00:00
jacky06
4d6b0fa1c0 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I9db86cdb44bf72c6aefe63df6dd35e2399844871
2019-05-22 10:50:59 +02:00
Ghanshyam Mann
b51a5ab36d 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: I437843a6b6173473ee783de152bae69ec11fb52f
2019-05-14 13:05:51 +02:00
OpenDev Sysadmins
03b0753414 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:34:48 +00:00
Dobroslaw Zybort
c63faad25b Push Docker image to Docker Hub
Story: 2001694
Task: 30514

Change-Id: I170da7ef833a003222f234930c87cad0ca6dd8e0
2019-04-15 15:20:00 +02:00
Zuul
64d1b0be6e Merge "Create Docker image and build in Zuul" 2019-04-08 13:16:11 +00:00
Michał Piotrowski
112f8c0402 Create Docker image and build in Zuul
Change-Id: I0f74e087d42f84c554c7e05389bc82210bf237fd
Story: 2001694
Task: 29755
Depends-On: https://review.openstack.org/649242
2019-04-02 08:36:21 +00:00
Zuul
2beeae31e3 Merge "Replace openstack.org git:// URLs with https://" 2019-03-25 15:04:56 +00:00
Michał Piotrowski
52707a31a1 Fix metric list formatting with Python 3
Story: 2005269
Task: 30113
Change-Id: Ia12e9b15262eb87594c4724e2c84e003b360b643
2019-03-25 15:35:10 +01:00
Ian Wienand
95e2cc2da9 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I3d07ca6f9c67c306d9aa1b56c6c103f6c43177e7
2019-03-24 20:35:53 +00:00
a9ce3623e5 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I1b0fa25f35b680879cd5c0f95ce6c56cac59ebe8
Sem-Ver: feature
2019-03-18 14:53:25 +00:00
Zuul
a1d50c6055 Merge "Update json module to jsonutils" 1.14.0 2019-03-06 13:55:38 +00:00