Commit Graph

32 Commits

Author SHA1 Message Date
Hervé Beraud 37411e792a 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.

/!\/!\/!\
Notice that I voluntarily added the doc directory even if no docs
are generated here because zuul will try to pull this requirements from
there first and the contained requirements are needed for reno but AFAIK
the releasenotes dir is ignored by zuul. c.f [4] for further details.
/!\/!\/!\

Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at [5]

Fix Flake8 E741 [6]

[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
[5] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html
[6] https://www.flake8rules.com/rules/E741.html

Change-Id: Ic1504a18a780b0f517c5aa3dd3bfb04998d42e74
2021-01-18 10:55:41 +01:00
Martin Chacon Piza 6b60c25db1 [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).

Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Bump cassandra-driver to 3.21.0 in lower-constraints.txt
since it is the min version with py3.8 support [2]

Bump kazoo to 2.8.0 in lower-constraints.txt
since it is the min version with py3.8 support [3]

Story: #2007865
Task: #40197

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://pypi.org/project/cassandra-driver/3.21.0/
[3] 6b6ffe62a0

Change-Id: I3a465aa0b26dd72432696d2dd19c955eb3e974e5
2020-10-13 16:07:06 +02:00
Andreas Jaeger d2fef4b60b 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.

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: I002235658290ffd494f4507dc0a6c78f94794b19
2020-05-31 19:48:11 +02:00
Ghanshyam Mann 6a5885aeb1 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: Ie2b4f889d814431246b1049381ab57bcdf5284c1
2020-05-12 19:29:45 -05:00
Zuul c6aa372579 Merge "Update hacking for Python3" 2020-04-23 17:27:53 +00:00
Zuul 9f8d247742 Merge "Cleanup py27 support" 2020-04-23 11:18:54 +00:00
Andreas Jaeger b306576d27 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, it's not needed
there.

Change-Id: Iadf750a1e6d3181b645ceccdf75cf910bc23adfd
2020-04-21 19:27:10 +02:00
Witek Bedyk dc8956d7b8 Migrate from ujson to simplejson
The change updates the imports to use simplejson library and fixes three
unit tests. In particular TestUtils.test_parse_alarm_state_hist_message
has been slightly changed to make testing more robust.

Also, Python 2 specific implemetation has been removed from
influxdb.line_utils .

Additionally, standard library unittest.mock is used instead of the
third party mock lib.

Depends-On: https://review.opendev.org/718014
Depends-On: https://review.opendev.org/720188
Change-Id: I64b1a60e8be929c25c005a0f429b1274cb8570e6
Story: 2007549
Task: 39390
2020-04-21 12:35:08 +02:00
Andreas Jaeger a2fcddc99b 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
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I95fb0ca759471f7ad7189a7d54c1dac2cc018fc4
2020-04-05 09:58:52 +02:00
Arseni Lipinski 72cc931159 Fix constraints and requirements to fix failing tests
Commit contains cassandra-driver version upgrade due to
older version lacking some components used in monasca-persister

Change-Id: I6d6f5dbf6533f820c954bc910a1de64803c11a2f
2020-02-12 11:20:37 +00:00
Ghanshyam Mann 29c6c96d09 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-persister 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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I628603dadcaabbe24d4d166dfb47d4413c9dbaac
2019-11-15 16:12:10 +00:00
Zuul 276d569380 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-10-22 11:20:59 +00:00
pengyuesheng 3b6e17c0b6 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I56c61bfda9fa68c6068ec008f81a8d04f28b2bbb
2019-10-11 16:59:22 +08:00
pengyuesheng 71e4101187 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: I21fa71d8471fcce5994439dc4558d3b54077f7d2
2019-10-09 16:36:42 +08:00
Arseni Lipinski ca77fb44cd Change lower-constraints for cassandra-driver
Cassandra client version had to be changed because its earlier version
doesn't contain DCAwareRoundRobinPolicy and TokenAwarePolicy in
cassandra.cluster (those are located in cassandra.policies instead),
needed in persister (specifically cassandra/connection_util.py).

Change-Id: I9f9eb478808ad978815c19a5c4e1baaa35fa6d28
2019-07-04 17:53:48 +02:00
melissaml e1ce058430 Update hacking version to latest
Story: 2004930
Task: 29316

Change-Id: I30518a05c3b216eadfbe2661348cbfa33cf202fd
2019-02-19 14:33:05 +01:00
Thomas Bechtold fe88e8f796 Add job for releasenotes
With changeset [1], releasenotes are added to monasca-persister. To
make the release notes available, the notes can be build now with
tox ("tox -e releasenotes") and the standard zuul
job (release-notes-jobs-python3) was added to build and publish the
notes.
Also adjust elasticsearch requirement to "<3.0.0" to be inline with
the global-requirements list. This fixes:

  Requirement for package elasticsearch excludes a version not excluded
  in the global list.

[1] Ida11c326b3e6771b5ccf994205c55874db05bc5c

Change-Id: I16268797151a6b997610c8fbded4c9eeb9265597
2019-02-19 10:46:25 +00:00
Witold Bedyk 8ec36eb94a Add check for README.rst syntax
Change-Id: Ie84446d03da4a8f357d6e52a8797bf8123705ec8
2018-08-06 17:17:23 +02:00
Charles Short 6f587b4bfc Switch to using stestr
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Also fix the lower-requiremenst.txt to pass the gate.

Change-Id: I498282defd87c4ea16979b729600a179cdd3d01f
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-07-24 11:15:47 +00:00
OpenStack Proposal Bot 4cdd2389b9 Updated from global requirements
Change-Id: Id40be63dab88f77ecd4413dce2e4feea7e09abf1
2018-01-16 04:13:25 +00:00
OpenStack Proposal Bot 42d3b09f41 Updated from global requirements
Change-Id: I5d533619e4bf363fa577b465dfb740e46b75626e
2017-09-13 00:06:36 +00:00
OpenStack Proposal Bot 7e60c4415b Updated from global requirements
Change-Id: Ib1aa2b69eaab953305ea36c6115406c2b5cba4fc
2017-08-18 04:43:29 +00:00
OpenStack Proposal Bot 472cb81410 Updated from global requirements
Change-Id: Ib1b7b0fbcd75f43ab6c92f7cd089155d2c0e9d7b
2017-05-15 09:38:29 +02:00
Dobroslaw Zybort b7184a8ddd Remove nose from test-requirements
Clean after tests properly.

Change-Id: I44c8d26dc22d0e2cb88c3dd365e4691a8af76117
2017-05-15 07:36:36 +02:00
OpenStack Proposal Bot fa65d9ab57 Updated from global requirements
Change-Id: I03f1ee2f3a0225d85b8dfbbaf46d04a5b6b63059
2017-02-09 13:53:45 +00:00
Craig Bryant 7082ded836 Turn on bandit check as part of pep8
Add bandit job as part of pep8 in tox.ini

Had to fix one issue and mark two instances of try except pass as OK so that
bandit will pass

Change-Id: Ia1c96e27d1bae360c6ae0d4131665e2b712f573f
2017-02-08 11:22:18 -07:00
OpenStack Proposal Bot 3e6f070d1a Updated from global requirements
Change-Id: Ie2ba989c47f74c9ff997ac628a821807613a7183
2017-01-12 15:06:23 +00:00
Laszlo Hegedus b3f9359608 Add persister.py unit tests
Add unit tests for persister.py in root directory.
Additionally:
* switched to testr as it seems to be used in many
openstack projects
* enabled coverage

Change-Id: I429ef6a900808c192ad5613c13808583d33fde24
2017-01-12 09:18:29 +00:00
OpenStack Proposal Bot 96fbd64a14 Updated from global requirements
Change-Id: I4670edcbf8d1145a78c3dcf886852effa292925e
2016-08-31 18:25:52 +00:00
Micu Matei-Marius 43194f0d72
Removed H302, H305 and H307
I unlock the hacking requirements in test-requirements.txt

Change-Id: I2a26845f16064be8c082d9cbe2e2d2bc48339314
Signed-off-by: Micu Matei-Marius <mmicu@cloudbasesolutions.com>
2016-06-30 22:22:23 +03:00
Deklan Dieterly 31bb8ba21d Always store value_meta
If value_meta is null or blank, store an empty string.

Change-Id: I6286d9b2f30b6ee6f8839c80c690721af09c5e75
2015-06-02 07:24:18 -06:00
Deklan Dieterly 3cf22f1c0d Add files for pypi.
Change-Id: Ib382ed1e15a7c124cab2124692e7d2e8e31bab1c
2014-09-30 15:21:50 -06:00