Commit Graph

23 Commits

Author SHA1 Message Date
Martin Chacon Piza 9dbfe8056e Remove project content on master branch
This is step 2b of repository deprecation process as described in [1].

[1] https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Change-Id: I210c2fe3bbe2a702f42ec1df95f328b8011d8014
2021-02-22 15:16:37 +01:00
Andreas Jaeger a0c6625d20 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: Ica99c9a4affd2b693ef74f1e3ef7c8ea2c6a46d6
2020-03-31 06:49:19 +00:00
Ghanshyam Mann 4259f74ff1 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-ceilometer 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: I2143a5d345737ab5028151232557263e3b308412
2019-11-16 16:56:51 +00:00
Corey Bryant 15697d9d3a 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: Id4f9e8b2468e3216086d10eaaab390e47030b04e
Story: #2005924
Task: #34223
2019-07-05 13:06:28 -04:00
adisky 6e5217a0c3 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: Idcedcf7f1629d7b462692270d4345e52e23d3e32
2019-06-24 08:18:38 +00:00
Ghanshyam Mann aa38f946cd 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: I57ef50b7f210cd2ddb934c283652c565028774ec
2019-04-15 00:16:21 +00:00
Nguyen Hai Truong 7756026d43 Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I1d9ae44d4956d6c76bda9232ef8aee8c965164e2
2018-11-08 01:25:21 -08:00
Joseph Davis 29e61263fd Remove setup.py check from pep8 job
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: I8a7b18ed2b8cd2386f6a44598545bb7e37e77de4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:01:58 -07:00
qingszhao d54179f00f 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 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: Ib4546226c254ef59d2b1b872f32267d2541e72de
2018-09-27 14:20:21 +00:00
Joseph Davis 8b0fb6d048 Refactor out Ceilometer V2 API related code
As of Queens the Ceilometer V2 API has been removed.  Storage
driver related code in monasca-ceilometer can thus be removed.

Backport some refactoring that came up in creating
https://review.openstack.org/#/c/562400/
Realized some class names could be clearer and fit better with
Ceilometer.

Update test-requirements.txt with Rocky release of
python-monascaclient.  Also include more license info.

Specify py35 instead of py34 in tox.ini (gates already using py35).

Include updates to devstack configuration to keep up with master
ceilometer.  These include adding values for the [monasca] section
in ceilometer.conf and refreshing setup.cfg as well as updating
how the connection url to Monasca API is configured.

Also include some testing notes in devstack/README.md

Change-Id: I9291dfc06d67f18109a0ff66184bd418c6361977
2018-08-09 10:11:28 -07:00
Witold Bedyk 6ebd2dc1c2 Fix README.rst and add syntax check
Change-Id: I2e2ec99b643475fa64a4b5b67201ff38c10e52a8
Story: 2002163
Task: 24400
2018-08-08 18:07:03 +02:00
Charles Short f2ee99e68e 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

Change-Id: Ib1f69777740eceece1e4d4e1ef6979383fb714d7
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-06-20 09:40:38 -04:00
Jui Chandwaskar cf0bcfc5bc Update pep8 check
Set max line length to 100

Change-Id: I49c22858da8399b8beb4e3816f93623e4280b59d
Signed-off-by: Jui Chandwaskar <jchandwaskar@op5.com>
2018-04-11 16:17:58 +02:00
Ashwin Agate 8cff9c154b Remove oslo config global conf dependency
Ceilometer in Ocata made several changes to
move away from  oslo config's global conf.
Instead ceilometer/service.py now creates a
oslo config object that gets passed to the
publisher.

To keep up with the changes had to make
the following changes in monasca-ceilometer
1.) Monasca Publisher now extends
ConfigPublisherBase, with conf as argument
2.) monasca_client now takes conf as an
argument during intialization.
3.) Added monasca_ceilometer_opts to
intialize all ConfigOpts. This will have
to be regiested in ceilometer/opts.py.
(will need a additional line in opts.py)
4.) Introduced three new properties
service_username, service_password and
service_auth_url since username, password
and auth_url were removed from
[service_credentials] section.
5.) Added api/health.py, service.py
and opts.py from ceilometer code base
which were modified to read
monasca ceilometer options via
monasca_ceilometer_opts.py
6.) Added ostestr to test requirements
and updated tox.ini to run tests in
serial (to avoid problems with
singleton mapping classes, stepping
on each other test values  when
run in parallel)

List of Ceilometer changes to remove
global conf
[1] https://review.openstack.org/#/c/384834
[2] https://review.openstack.org/#/c/384624
[3] https://review.openstack.org/#/c/386025

This change also modifies test-requirements.txt
to bring this master branch up to the stable/pike
version of ceilometer, and python-monascaclient
up to 1.7.1 (pike).

Change-Id: Ieb7962a50fdb5d12ea6238c96ed116e8b2c83c48
2018-01-21 14:40:54 -08:00
Davanum Srinivas f181e467e3 Adds [testenv:venv] section to tox.ini
'publish-to-pypi' Zuul job tries to execute 'tox -evenv python setup.py sdist'
and fails without 'venv' being set.

See exact change made in monasca-log-api project:
I90462831c8ecfe9fcdf42fbebe95dc314d03aef6

Change-Id: I72df080b222596c35e982c14ca2a5b5501f4a1bf
2016-04-05 09:33:32 -04:00
Janonymous f04e4df5f4 Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: I104f9db83d59b22e69e543092ad4e9d468a8f3ea
Closes-bug: #1489059
2015-12-22 18:24:03 +05:30
Ondřej Nový 178cbed72a 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: I4d371b9b2c007892c6f5e2906960d0fac66ec980
2015-12-11 21:19:40 +01:00
Haiwei Xu 459e32bd37 Delete python bytecode before every test run
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: Ib095a107537446d6e43a222cf68f7b84b9368f60
Closes-Bug: #1368661
2015-12-02 13:33:07 +09:00
Rohit Jaiswal 865dab02b7 Migrate monasca-ceilometer to be liberty compatible
List of changes:
* Changed oslo-incubator imports to oslo-service
* Refactored tests to functional and unit packages
* Upgraded test requirement versions
* Added py34 test capability
* Upgraded hacking(pep8) version
* Added devstack plugin and settings to deploy Ceilosca
* Modified setup.cfg to use liberty entry points
* Refactored storage driver to compatible with v2 api liberty changes

Change-Id: Id6711e6661cde14df3decba6f56e52d391981f42
2015-11-18 16:52:53 +00:00
Srinivas Sakhamuri f38c9f6c4a Improve unit tests
- Force pep8 to use correct python interpreter
- Add py27 checks
- Use smaller requirements file for pep8 checks

Change-Id: I4a2a642f60c17986739355187c67f403febb79fc
2015-07-23 17:15:50 +00:00
Srinivas Sakhamuri fcef6c383b Ceilometer integration with monasca
Storage driver and publisher for integrating ceilometer with monasca
using monasca API

Change-Id: I67bef022db73fa6fbef804544126a188df4d9fac
2015-07-10 17:00:38 -06:00
Christian Berendt 111fab60b4 Add hacking as test requirement
Change-Id: I8e162785abb153bacf06cebc42b8035f6a0176fc
2014-07-24 10:52:29 +02:00
Craig Bryant 59be51266d Get initial build to work.
Set up tox.

Fixed pep8 warnings

Change-Id: Ia1cce729d1c0360321a66e8da41190a627f43cfe
2014-07-18 13:21:16 -06:00