Commit Graph

432 Commits

Author SHA1 Message Date
Ghanshyam Mann bb7d4b67cb Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I4c4ec3ef3f6016206cab1ae697985eaef8e95293
2022-04-30 20:30:48 -05:00
OpenStack Release Bot 46c852b254 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

- Bump decorator in lower-constraints

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

Change-Id: Ifbaf90732e367e0156b6832f8c4ab4e88d2abc31
2022-04-04 18:29:54 +02:00
OpenStack Release Bot a6de158590 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Ia316252b4dc58c84448407392c68dbaa2cc6d872
2022-03-04 17:17:20 +00:00
OpenStack Release Bot 7c9a22bd0d Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: Idf4e7ea7d97716df6fd7f3cfe8e43b6dfb0d278b
2021-09-10 14:32:43 +00:00
OpenStack Release Bot 7412971ec2 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I0e0d182ef68c0e90be5c376556a44e8aa56b60c7
2021-09-10 14:32:41 +00:00
Pierre Riteau 6d04502de7 Fix Docker build
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I70984db7af7ce5f7028077db4debcd2cd9bd7c45
2021-05-20 18:26:11 +02:00
Martin Chacon Piza cf4d9cc470 Fix zuul publish docker image job
Add tag to docker push command with specific branch name

Change-Id: I878f30ccdbd4244ec49c551ee24acd5426dfb6c9
2021-04-07 14:13:49 +02:00
OpenStack Release Bot 09709ed29b Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I9cc48f3ecb8768ed2b7345f53cab16662efeb1ac
2021-03-18 11:18:11 +00:00
OpenStack Release Bot d28ec212d3 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: If845e76f0f1de749363ac2c4ecce5adb177cd5a3
2021-03-18 11:17:36 +00:00
Pierre Riteau 75e44a1e5f Uncap PrettyTable
The requirements project uncapped PrettyTable [1] as it is now
maintained as a Jazzband project [2]. Keeping a local cap makes the
requirements-check job fail:

ERROR: Requirement for package PrettyTable excludes a version not excluded in the global list.
  Local settings : {'<0.8'}
  Global settings: set()
  Unexpected     : set()

[1] https://review.opendev.org/c/openstack/requirements/+/774917
[2] https://github.com/jazzband/prettytable

Change-Id: Ieeb3770c5b378218c218d1bcd91b962c4978f1b8
2021-03-01 10:33:01 +01:00
Martin Chacon Piza 952c4c12fc Fix zuul publish docker image job
Add tag to docker push command

Change-Id: I6deeb7f5205d045e45c70729c87168cc6445534a
2021-02-08 12:28:32 +01:00
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
OpenStack Release Bot 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
OpenStack Release Bot 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" 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
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
OpenStack Release Bot 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
OpenStack Release Bot 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" 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
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
OpenStack Release Bot 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
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