Commit Graph

30 Commits

Author SHA1 Message Date
Eyal b6db5313e5 Fix tox 4 changes
Change-Id: I313fd8f23479dc465bd1c5ac9eb28216395c49e0
2023-02-16 19:50:14 +00:00
Ghanshyam Mann e26a7d2b15 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I649b222bef9d4ac3ab505ec483194f7043b40044
2022-05-01 13:03:19 -05:00
Zuul b6e7be9c8b Merge "Follow-up patch for fixing coverage issue" 2021-04-28 13:50:34 +00:00
HeroicHitesh 096b484a7c Follow-up patch for fixing coverage issue
Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: Ief1c7eb6b3f3d28e9321280718df59eebaca786f
2021-04-27 09:54:51 +05:30
zhangboye 77bcc1bb2c Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I0d8cbd5417638defb99b1c44153529c9b787c70f
2021-04-20 15:21:44 +08:00
HeroicHitesh 63610f006e Migrate from testr to stestr
Signed-off-by: HeroicHitesh <email.hiteshkumar@gmail.com>
Change-Id: Ia92a4bea657df6b6a1f236297b3bb1ce6d5dfc94
2021-04-19 17:21:03 +05:30
Eyal 3b976540d9 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I3734e725abb56ab4515cf1d958ae33386333ef67
2020-11-17 14:22:05 +02:00
wu.shiming 68cd2decf1 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I437ad6c4c96ef1ac3e11757e3ae2e4a5a04e500b
2020-09-15 09:54:06 +08:00
Sean McGinnis 30e83fb473
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I68ded089d6a1cf9439eb2f35c8482e68d2030360
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:59 -05:00
Eyal 715b7c2683 Update hacking and fix warning
Change-Id: I10a988cccda87c6948fbc44169da13da9ecdbbb5
2020-01-07 15:17:09 +02:00
Ghanshyam Mann b6d3d31674 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

pythn-vitrageclient 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://review.opendev.org/#/c/691178/

Change-Id: I6f4cc04134130a3fa36bb65492b01dff63f94e32
2019-12-13 23:44:06 +00:00
pengyuesheng 6811e1fb78 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I1ffce2030e3f8e5df036a82fecfbc59dc9e10a41
2019-09-23 16:54:43 +08:00
Corey Bryant e50c885f67 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: I465654f6cc71acf19bfcf284949f05d8b021cc7d
Story: #2005924
Task: #34255
2019-07-05 16:43:52 -04:00
jacky06 c8ce0bcf2e Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I08e0fe10af872af6f9d34c63bb0797a9224057d0
2019-04-30 13:21:45 +08:00
Eyal 7ca6c8406a Support python 3.6 and 3.7
According to 'Tested Runtimes for Train' [1] we need to support
Python 2.7, Python 3.7 and Python 3.6 runtimes.

[1] https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I41aff6a8dc52d4038431ce7566ff8177e25cea6b
2019-04-16 12:20:50 +03:00
Ghanshyam Mann d29eb4b278 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: I08dd390fee518403d04cfa149ab9c3c9517c93ab
2019-04-15 01:52:44 +00:00
Vieri 7a47a7d8da 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: Iab434fd4a741ea2a69137fcab0eec01faee2c426
Story: #2002586
2018-11-28 08:11:42 +00:00
Doug Hellmann 2ad7a77ae5 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: Ia8ba790125fb3610d41b19ca682efca9012a5b7b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:20 -04:00
Doug Hellmann f7eb8c59c4 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: I7ecdc42f0ddb44e4054a9773c8dabb79a2e0d854
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 18:07:56 -04:00
Nguyen Hai 367b46c2e4 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

This patch also changes minor things in doc.

Change-Id: I545bab01d42bbddbfd30eb41dc386d8f7df8aea7
2018-03-21 00:52:19 +09:00
Andreas Jaeger 0e164982df 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: Ie218549ea695899e206278dde0911d56b274df75
2017-12-02 16:58:55 +00:00
Eyal 471cc55dcd add validation for topology and post event for cli
* check that limit is a positive number in 'vitrage topology show'
* check that time is an iso8601 timestamp in 'vitrage event post'
* add tests to check this

Change-Id: If5c4b26578f865c68709027b6e815376e4ee9e1e
2017-06-27 15:18:50 +03:00
rajat29 049e527d1a Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: I158cbfd4d030afbbcd9dfaa75fa2e1e094e0a64d
2017-04-26 08:39:18 +05:30
kavithahr f5de8d2322 Remove support for py34
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: I30585fff6fdf119a96ef379d7e86964c8569d110
2017-03-08 18:58:55 +05:30
Eyal a4b3c01b0b use upper constraints
use tox install script to enable using upper constraints

Change-Id: Id6e114f3c5001c7072a31d59c19f7399b4f154a7
2017-03-01 11:57:01 +02:00
Sharat Sharma 1f0fcc8f6a Added the releasenotes
All the components of openstack maintain releasenotes. Similarly,
python-vitrageclient must also maintain releasenotes. This adds
the releasenotes directory to the vitrageclient repo.

Change-Id: I74e9f10da38b3e11888b3d00f78fd61b2910a46c
Implements: blueprint maintain-releasenotes
2017-01-10 11:09:38 +00:00
qinchunhua a06798673d Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: I72aa8e5a1f09a2cc50cba30e7cfcc53d57eeb262
2016-08-02 02:17:10 -04:00
Eyal dc920403a0 update tox version
Change-Id: I0d25790535a1afa9b18c691abbda4c51d5ed9d7b
2016-04-24 13:19:08 +03:00
Eyal 94a8e37447 add documentation and py34
add README file
make tox run a py34 env
support py34

Change-Id: I9f694e1e62d139a519dfba3931abd4ba6d374b58
2016-03-02 15:34:11 +02:00
mgrosz d48de0cfdd python-vitrageclient project init
Change-Id: I1e5cbd787bcda8606714825d8377a30344968e3f
2015-11-15 13:29:00 +02:00