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: Ic60993c2315e8b10da8abb1fb02e33151a1e2b98
The Stein supported runtimes proposal [1] has chosen py36 over py35
due to the communities move to testing on Ubuntu 18.04, where py36
is the default runtime. We update tox.ini and setup.cfg accordingly.
We also add a py37 option to the tox.ini to facilitate future-looking
tests per the resolution on keeping up with Python 3 releases [2].
The py35 option will eventually need to be removed from tox.ini, but
this keeps it for now in order to allow time for folks to transition.
As previously commented, automatic tox envs (pyXX) will use the python
version appropriate to that env and ignore basepython inherited from
[testenv], so we no longer specify a basepython explicitly for these.
[1] https://review.openstack.org/611080
[2] https://review.openstack.org/613145
Change-Id: Ia7bc930de383d8522509488194e93e711f51590f
Since ceilometer is introduced in upper-constraints.txt [1], tests are
failing, as ceilometer was installed via tox.ini directly from github,
but pip doesn't like that:
"Could not satisfy constraints for 'ceilometer': installation from path
or url cannot be constrained to a version"
[1] https://review.openstack.org/#/c/601498
Change-Id: I9a018f625e6f252fe64ee2b8b93f5f2e0b464309
According to Openstack summit session [1], stestr is maintained project
to which all Openstack projects should migrate. Let's switch to stestr
as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I4defbb8d866ae847253d4873891f7d2eb2593ed6
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Ic189fc2d55534557029fec4150f7a7f3c9562d6e
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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 can't set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36 due to https://github.com/tox-dev/tox/issues/425
Change-Id: I27cdedcdd7d499da545444174efb06a0f5b3948e
We should use py3 for pep8 as it is stricter than pep8 on py2.7
and for consistency with nova-powervm [1].
[1] https://review.openstack.org/#/c/558868/
Change-Id: I247333e34762b2bf996b4795e266df5f284a9881
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: Ie3e9a337a2ee160ccdbcdd3681d2caeb6518c085
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.
Change-Id: I3ac8d6d8818bff06f19a49f75867e08440397933
With the recent addition of pypowervm to upper-constraints, installs
of ceilometer-powervm are now by default enforcing the version set there.
Since the master branch of ceilometer-powervm depends on the develop
version of pypowervm, this causes installs to fail.
This changeset adds a wrapper script (tox_install.sh) that edits
the upper-constraints file and replaces the pypowervm version pin
then sets pypowervm to be installed from source instead.
Change-Id: Ib60ee84ecb168991439ac5d097ba07a62d2329a7
This changes the tox command to use the upper constraints. This will
avoid known issues with newer versions of the library.
Change-Id: I85a03fc40356ca1493d6dcf550f63f0deba8dd84
Closes-Bug: 1637938
The directory openstack/common was used to keep codes from oslo-incubator,
we have retired oslo-incubator, so don't use this directory any more.
Change-Id: I38abf7f3da42b36648535c2b63167a089c186e24
nova-powervm has a bash script that uses the ostestr package to
format the output from tox in a 'pretty' format. It makes it
much more readable. pretty_tox.sh is pulled from Nova and
nova-powervm as-is and enabled in tox.ini.
Change-Id: I9e90c4d595b95ae02be244163f27d87409e3a078
Remove all the flake8 ignore rules. The core ceilometer project is no
longer ignoring any, and as such the ceilometer-powervm project should
not either.
Change-Id: Ibb10aa723a3a8700c28f58265480e7143d4969b8
The master branch of ceilometer-powervm should be paired to the
'develop' branch of pypowervm.
Other stable branches (or release candidates) will eventually point to
version levels that are published to PyPi (or to stable branches).
Change-Id: I4ba962acb322851b982689bb50958769be21c53c
Add support for installing ceilometer powervm through the devstack
plugins infrastructure. This allows you to simply enable the plugin
in a devstack localrc, provide any non-default config, and run
stack.sh to configure/install it.
- Added plugin files
- Added README
- Added bashate to tox test environments for scripts
Change-Id: I4f95b710026a418bda07767f1e04ddb3fd855316
Provides the initial structure for the inclusion of PowerVM as a plugin
based compute inspector. Also includes a fixture for upcoming unit
tests. Implementation of the inspector functions are to be included in
upcoming change sets.
Partially Implements: bp/powervm-compute-inspector
Change-Id: I613161f2fe368b926bd679685b9beeff27a52896
This change set supports bringing in the python powervm REST API
library for initial use within ceilometer-powervm.
This change also fixes pep8 issues, mainly around the copyright rules
that are needed (do not copyright empty files).
Also updates the tox file such that we run the new oslo concurrency
as ceilometer removed the integrated package.
Change-Id: I12739ca702e004cd048067ad25e9e07d1ef106e6
Initial work to enable the Ceilometer PowerVM project in git.
The work done here provides:
- .gitignore - Indicate which files not to track within Git.
- .gitreview - Input to the git-review command on how to send to
Gerrit.
- .testr.conf - Conf file input for the testr command (UT)
- CONTRIBUTING.rst - Information on how to contribute.
- HACKING.rst - Information on what needs to be done for updates.
- LICENSE - The license for the project
- README.rst - Information on what this project is. Currently this is
the blueprint.
- openstack-common.conf - Required openstack configuration for all
projects
- setup.cfg - Input to the setup.py on how to execute certain actions.
- setup.py - Used for build of the project.
- requirements.txt - Required packages (and levels) to run the code.
- test-requirements.txt - Required packages (and levels) in addition
to the requirements, that indicates what is
needed to run the UT.
- tox.ini - The input for the tox commands.
In addition, a base set of packages for the agent and unit tests were
loaded in.
Change-Id: I49f23751b8694f6e3595fe8b4f39822737e68f31