Commit Graph

29 Commits

Author SHA1 Message Date
Takashi Kajinami 610a2e4fe6 Retire PowerVMStacker SIG: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/909535
Change-Id: I9983db89974e37134cde612d55affb6b6b38230a
2024-02-20 22:53:37 +09:00
VedaAnnayappa 7ca211e700 Enable support for both python3.6 and python3.7
Change-Id: Ia74d470a6d593a6a81779788e2848c5b5995c44f
2019-09-16 23:52:14 -04:00
VedaAnnayappa f3008d1ee2 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: Ic60993c2315e8b10da8abb1fb02e33151a1e2b98
2019-08-26 16:01:37 +00:00
Zuul ec05201839 Merge "Use opendev repository" 2019-04-24 12:19:52 +00:00
Le Hou df7773b39f Use opendev repository
Change-Id: I618d128ebe4d00a3eb7a79380932e8e7cfa44903
2019-04-24 10:27:24 +00:00
Ghanshyam Mann bebf0c5f5c 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: I327f77002bb752025bf158d6e675705f8034ed7d
2019-04-22 23:05:10 +00:00
Matthew Edmonds 7bf69d7bee More py3.x support
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
2018-12-11 12:57:15 -05:00
Elod Illes 8049cef264 Install ceilometer from pypi
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
2018-10-11 14:21:20 +02:00
Matthew Edmonds 23b1ad1d42 docs: Modernize build process
This mirrors changes recently merged in nova-powervm to fix [1],
cleanup[2], and modernize [3] our doc building.

[1] 8a0a82fba9e6069f54316c6f0cc4eb4f73d9baae
[2] 5b4d0f82265dbb86fcb044bf9dfe4577e2106904
[3] b0256a71b2195791cda4da9f633a3b5448ee2540

Change-Id: I79d53bcde102ad1d5b7ba65b623ea4a3fba3bfec
2018-08-15 10:06:19 -04:00
Vu Cong Tuan 1bd1f9e639 Switch to stestr
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
2018-07-24 08:34:10 +07:00
Doug Hellmann 183726646d add lower-constraints job
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>
2018-07-20 10:27:43 -04:00
Eric Fried 054ba58c41 Use tox 3.1.1 and basepython fix
tox 3.1.1 fixed https://github.com/tox-dev/tox/issues/477 which
mishandled the basepython directive. Require this version and remove the
workarounds.

http://lists.openstack.org/pipermail/openstack-dev/2018-July/132085.html

Change-Id: Id7d904e42a87576c5e9b3fa34c7e2b036722e52d
2018-07-12 16:44:27 -05:00
huang.zhiping 527cda1bfb fix tox python3 overrides
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
2018-06-08 19:13:34 +00:00
Matthew Edmonds 0d0f882dcc Use py3 for pep8
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
2018-04-04 12:29:35 -04:00
Andreas Jaeger 00774de466 Avoid tox_install.sh for constraints support
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
2017-12-02 17:03:40 +00:00
gengchc2 ef83477a74 Remove support for py34 for ceilometer-powervm
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
2017-04-11 17:51:48 +00:00
Adam Reznechek 85ef946a09 Add tox_install.sh for pypowervm upper-constraints workaround
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
2016-11-16 19:59:51 +00:00
Drew Thorstensen 95c7897367 Use upper constraints
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
2016-10-31 09:37:03 -04:00
xiaozhuangqing e63fb59de8 remove openstack/common from the exclude list of flake in tox.ini
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
2016-08-29 18:49:42 +08:00
Ondřej Nový dafcfb78d7 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I5c2fedbdb26f2617b99cc15c3f82c89263745977
2016-02-10 23:05:19 +01:00
kairoaraujo 2bb305dd39 Port over pretty_tox.sh from nova-powervm
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
2016-02-10 15:35:29 -02:00
Drew Thorstensen 77724acfe9 Update flake8 rules
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
2016-01-23 20:59:05 +00:00
adreznec dda22a657b Change pypowervm repo location
Update the pypowervm repo location in code and docs
for the pypowervm->powervm github org rename

Change-Id: Ic1f3ea5139a56213fc2ade7127870d3c72557c15
2015-11-18 15:03:45 -06:00
Drew Thorstensen a5c8f66e18 Switch to develop branch for pypowervm
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
2015-11-04 09:15:29 -05:00
Adam Reznechek 24dfec6c4b Add base devstack plugins support
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
2015-10-29 21:55:18 -04:00
Drew Thorstensen 38bda20d72 Initial PowerVM Inspector Framework
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
2015-07-06 16:19:49 -04:00
Adam Reznechek ff24e565f7 HEAD cleanup of repository before open sourcing
Removal of sensitive data from the HEAD before cleaning history

Change-Id: I483eb1de0798d929ffe64eba30ea6840dbd7f9ca
2015-01-26 13:54:29 -06:00
Drew Thorstensen badf05a969 Import python-powervm into ceilometer-powervm
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
2014-10-31 10:16:25 -05:00
Adam Reznechek a540907f32 Initial Load of Ceilometer PowerVM Project
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
2014-10-23 09:41:37 -05:00