Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I7a3555dd0f0c4bcd1969ca7d3669369d7517a6be
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/615557
* do not use system classloader
* upgrade maven-surefire-plugin to ver. 2.22.1
Change-Id: I8bc83a59164c4a79bae036600cacb450cdc8feb9
Story: 2004256
Task: 27792
monasca-common is used also by monasca-log-api. Therefore each change in
the library should be also tested with integration tests for logs
pipeline.
Change-Id: I50737e658507f7ec320d7a30c9996a2c6b020baa
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: I068ac92a340a5a31af53f77b69a702c5c138b4c8
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: Idd29b6d5460510ec02ec10853a0809185e5823cd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
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
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I7d718f96fb1a545afbfb07d40a77ccde5c3841a6
Story: #2002586
Task: #24312
5 min was copy/paste from official docs. After reading more about health
checks in real world usage most examples was using duration around
5 seconds for interval. By default docker will show if service is
unhealthy after 3 intervals return error. So in previous timing service
would be taken out of poll (by e.g. docker swarm) after 15 min. For all
this time it would be returning errors for any communication to it. Now
it will be removed from poll of running services after 15 seconds.
Regarding timeout more examples was using something shorter. For all
services we are using if anything respond longer than 2 seconds then
something is wrong with this service. Monasca is not web service but
back-end service that should have high throughput.
Change-Id: I4486c4974de38dea33739fdc470f38fd99d428fa
* move Python section to the top
* add license, source code and bugs references
* add caution notice about `pom.xml` in root directory
Change-Id: If9df2ffca621ee0b6b21d29ed91a6dde59684150
Story: 2002163
Task: 23055
Creating the release would fail if the syntax of README.rst is not
correct. Let's check it in the pep8 environment.
Story: 2002163
Task: 23044
Change-Id: I2856622af08cec7c801959ca85f4c77252263db5
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
Change-Id: Iebd6f34335e4ef0dd3629e970661d8c9ef08754a
Signed-off-by: Charles Short <zulcss@gmail.com>
Errors running `python setup.py check -r -s` due to required
metadata for the package caused by having 'author' set but
not 'author-email'.
Full error is:
```
python setup.py check -r -s
running check
warning: check: missing meta-data: if 'author' supplied, 'author_email' must be
supplied too
error: The docutils package is needed.
```
This updates both author and author-email to be consistent
with the values used in other OpenStack projects.
Change-Id: Icdcb9b9328e361ba4883af5b464c9968f72607e8
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: Ia156a087ff8f04307f255e61f3f2e9ffdae42861
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
The type 'long' no longer exists under python 3. The runtime execution
of the code using it in the metrics module already detects the python
version, but when the linter is run under python 3 it does not apply
the same check. Add a noqa pragma to tell the linter to ignore the
line where 'long' is referenced to avoid an error.
Change-Id: If806e6461358ea523708eceed6fdcc3dfb8d75a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>