Commit Graph

52 Commits

Author SHA1 Message Date
Elod Illes 862c7bee70 Fix tox 4 compatibility
Change-Id: Iab73c1909110a6d6742c3ba5ed98f6cb98ec787d
2023-02-17 20:42:10 +01:00
Stephen Finucane 3b44adc6e7 requirements: Uncap prettytable, remove l-c
Fix the requirements job by uncapping this dependency. The upper cap
will now be managed by global-requirements like everything else.

Since we're modifying the requirements, the requirements job are run and
we see that the lower-constraints job is failing. Remove this job and
related artefacts also.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I09bdc40e34b219c6bdf880d2511585a921018477
2021-10-13 12:17:56 +01:00
wu.shiming 99a1dee1e5 Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I39ffe733f2768e7eaea3ba31eb2c68583dc7da8c
2020-09-15 17:36:37 +08:00
Andreas Jaeger 8054a326d1 Small cleanups
- Remove Babel from requirements, it's not needed for running.
- remove unused file setup.sh
- Update to hacking 3.1.0; fix problems found.
- Remove hacking and friends from lower-constraints, they are not
  needed there at all.

Depends-On: https://review.opendev.org/736382
Change-Id: I8b2a8c06de0282f797fab51d90aeac1ca2eef9c4
2020-06-18 09:43:43 +02:00
zhurong 85abf25358 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Remove babel.cfg, this is not needed here at all
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete

Change-Id: I57d447e034c088c83fdd5fb8854dbd9826a200a8
2020-05-11 11:06:58 +08:00
Sean McGinnis 1b0d7a8fb9
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: Iad033e86072ac394e5371ff38432ed72cb97648a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:56 -05:00
Ghanshyam Mann 482a66018f [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-muranoclient 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: I88134b5253cdf2f30cd004d77b2a40aa6764b77f
2019-12-15 00:40:36 +00:00
zhurong e4db579c4b 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: I7234a0d87b66095a2acabbb0f17cbc0438de0ee0
Story: #2005924
Task: #34214
2019-07-03 17:18:31 +08:00
zhurong 89122a7f3b Update contraints url
Change-Id: I8be79e80d694715b5192944c140b21f92d4b72d9
2019-06-18 14:59:28 +08:00
jacky06 f4c2251e26 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Iad6b06a96727b5aa05d2a2a0eeee1389fa3e0104
2019-04-26 10:36:04 +08:00
Ghanshyam Mann 8a14b09cf4 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: Iacf8716367b3d346279aca7c1b158e6abe7b5f3c
2019-04-15 00:41:00 +00:00
huang.zhiping 3c1a6e6320 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Id9eaa2cb2d9aa6648d6ac345029cebae96f9b37e
Closes-Bug:  #1801683
2018-11-05 08:28:28 +00:00
zhurong 2c2d512124 Use standard cover tox env
Change-Id: I22baa3240adbc1290954cde444df85b4b91a7034
2018-09-10 11:39:00 +08:00
zhurong 77430f0ac9 Update py27-ocata to py27-queens
Change-Id: I79fd2fe5f5477e618ba7639e35ca42568d25abd0
2018-07-31 16:09:00 +08:00
Vu Cong Tuan a90ede0d6c 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: I9a52c912ef5ad19fe24e9294f573a2770436d5e3
2018-07-13 07:57:12 +07:00
Doug Hellmann b8d1e70871 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: I2cf11f815eee3aee188ddf51f9fbeadfb8885dda
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:18 -04:00
malei c742bfa73b 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
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: Icc5ea5aeafaa517f910620c75f9d401e4fd06b05
2018-04-13 23:25:38 +09:00
Doug Hellmann 9e5e762cc5 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: Ifa9219475d600591cf7ca181779824f89ddb048e
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 17:56:07 -04:00
Andreas Jaeger 8c911c6dce 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: I614992cea6044be9ca21f4f18ceef92b282dfff1
2017-12-02 16:58:21 +00:00
Rui Chen 01f586cbd7 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: Ie050c97796ffffbcbf4f6971aaf43d9b8edc6354
2017-02-09 11:04:49 +08:00
Jenkins d0f0929bba Merge "Exclude build dir for flake8 test" 2017-01-24 16:26:07 +00:00
zhurong b76fc2f87c Exclude build dir for flake8 test
Change-Id: I6575d7e4dd75c9a9f45c6468834a5434e7552569
2017-01-17 12:04:37 +08:00
zhurong 8be8fd8faa Add debug to tox enviroment
We can simply run `tox -e debug <test_name>` to debug test.

Change-Id: Ib5fe98014dc91fa81809f336264856cd0f86e950
2017-01-17 11:09:05 +08:00
Steve Martinelli 9283ededba move old apiclient code out of openstack/common
As part of the first community-wide goal [1], teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

The package, apiclient, was moved to a top level location
and cliutils was moved to the common module. There are no oslo
specific libraries, the recommended solution is to move it
in tree and maintain it there.

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html

Change-Id: Ic6447da0ab3be843d231f9761d1767ed77fd81a2
2016-11-08 10:35:15 -05:00
MStolyarenko 399b2a2740 Add Glare to python-muranloclient tests
Add possibility to python-muranloclient tests to maintain global
variable for GLARE

Targets bp: murano-glare-devstack-testing
Depends-On: Ia0eb97587dc6a1f2f66006f8cce14997577c4707
Change-Id: Ic14ab4c07434936264690b84e07d7af1d5e682ad
2016-09-19 17:31:10 +03:00
AvnishPal 4868e12168 Use upper constraints for all jobs in tox.ini
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.

Change-Id: I841a6ab55ee01677dc5279d96416923303be339b
Closes-Bug: #1614361
2016-08-23 09:53:08 +05:30
OlehBaran bce18eea17 Add script for unit test coverage job
This commit will add script and coverage config file that will allow to run
non voting coverage job which will detect any changes in the code coverage
for each commit on review.

Change-Id: I4559c86c840b40b9154f80b04b9e1c741e3236e0
2016-08-11 10:41:44 +00:00
LiuNanke 2cdc2edbf9 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: I0e4d710126aaf75892e19e59c9004e7edc95a2f1
2016-08-01 20:07:24 +08:00
Kirill Zaitsev 9d7c49e962 Add py27-mitaka tox target
Adding a mitaka tox target, that will allow testing current
code against mitaka upper constraints.

Change-Id: Id112efac797b3f9a0a916dcd04896c703f4a570e
2016-07-11 20:41:14 +03:00
zhurong 157ae8c905 Use upper-constraints in tox test environments
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.

The releasenotes job has no constraints file, so override the install
command there.

Change-Id: I531606ce2ed981bddc618dac046ab081de2805eb
Partial-bug: #1598906
2016-07-07 11:14:10 -04:00
Yosef Hoffman a6775a2200 Modified docstrings to comply with pep8 H405 style check
Change-Id: I2d866d3df0d3a475b88b84518350637f9a16eb71
Closes-Bug: #1563270
2016-06-06 13:43:11 +00:00
Janonymous cdbf173c2c Put py34 first in the envlist 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: I58246fbcdbfd4390f07563157889f4e217e6c086
Closes-bug: #1489059
2015-12-22 22:40:49 +05:30
hparekh 7e2c95b1bd Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fixes this problem.

Change-Id: I62c537aecc0a706afe048427a96b98a51abfc26b
Closes-bug: #1524824
2015-12-11 09:05:00 +09:00
ricolin f5f92e4482 Remove py26 support
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Closes-Bug: 1519510

Change-Id: I4997706a854e3a0e761776dbf0609e556c1d803d
2015-12-03 08:50:41 +08:00
Kirill Zaitsev d6f88f2a65 Add reno for RElease NOtes
Change-Id: I4a59364e87df86267ae2de64a3f638fb1b6c299a
2015-12-01 16:58:22 +00:00
Kirill Zaitsev 1627a5a24f Add python 3 support
Use six versions of StringIO, urllib and raw_input
Use BytesIO instead of StringIO, where relevant
Added ability to distinguish binary and non-binary modes in utils.File
Use six.b for lyterals where relevant
Use six.iteritems, where relevant

Targets blueprint: client-py34-support

Depends-On: Id0e92840eb896ed487aafdcc39074aedefb55dda
Change-Id: I78a914cd77da7263d2bd0f871b8a478b5adadaee
2015-11-11 20:32:17 +00:00
Tetiana Lashchova f703e7ece9 Enable F812 and H904 style check
There are no shadowed variables in list comprehensions so
F812 can be enabled.
Also enable H904 because it was removed since hacking 0.10.0 [1]

[1] http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

Change-Id: I11e55066f2ec883c5706774d72c4f21b928ebde5
2015-09-17 14:57:45 +03:00
Victor Ryzhenkin 96a6063fcb Add passenv parameter for tox G.variables passthrough
- Add passenv parameter for OS_* variables that needed for functional testing

Change-Id: I6e61bd475476e61bdf86380b4e2bb7de1bbee469
Closes-Bug: #1473411
2015-07-10 14:33:55 +03:00
Ruslan Kamaldinov 7d1443f2fc First pass at tempest_lib based functional testing
Begin moving tempest based CLI tests out of murano repo and into this
repo using tempest-lib. This patch adds the framework to run the functional
tests.

Use standard OpenStack environment variables to get keystone auth.

Change-Id: Ic0952dcf721a4d20378cc593d59a7c1e1e794cfc
2015-05-09 15:16:40 +03:00
Ruslan Kamaldinov 5aadf96d05 Move unit tests into unit test directory
In order to pave the way for functional testing, move existing unit
tests into a directory labeled unit. A subsequent patch will add a
directory for functional tests.

Change-Id: I08e592c328104139386b1199cdc9c3aa9841805f
2015-05-09 14:45:49 +03:00
Jenkins 1ac7558bb0 Merge "Use pretty-tox for better test output" 2015-02-02 11:44:37 +00:00
Ekaterina Chernova 17e5148c22 Remove obsolete checks from tox.ini
Change-Id: Iedf149bdf1587e3a30d25bced50563efcce5035f
2015-01-22 18:15:27 +03:00
Ekaterina Chernova 78a1af57ac Use pretty-tox for better test output
Change-Id: I51465b390fea770f40731fb1c53e13691d49a397
2015-01-22 16:47:35 +03:00
Christian Berendt 29f37787de Bump hacking to 0.9.x series
Change-Id: I83f6b95a6f756d7eaec264a8d591cb2f128fabb1
2014-08-14 14:14:36 +04:00
Ekaterina Fedorova ba40a6799f Update package-import command
Categories is now an optional parameter during package uploading.
Also, ability to add list of categories were added.

Change-Id: I1cce9487147c4dce4fdf3e382ecf4c40660e1e0c
Targets: blueprint murano-cli-client
2014-07-03 19:32:23 +04:00
Ekaterina Fedorova 1a7db5f125 Infrastructure update
* Update Openstack common (aa7c658156e1e46315cdce1d580718f30054da2f):
- apiclient
- importutils
- strutils
- jsonutils
- cliutils
- apiclient
* Switch from nosetests to testtools
* Update shell.py to the actual state
Change-Id: I2b8f3393ba3e700f65f1a794caae713f12856035
2014-06-24 13:28:36 +04:00
Ekaterina Fedorova ae3802108c Run hacking in a right way
All pep8 issues are resolved

Change-Id: Ie6dbd68e17e69cfe7b974831ab5f532310c8c9f9
2014-05-16 16:37:15 +04:00
Igor Yozhikov 59920a3d63 Cherry-pick following change-ids from release-0.2.
I155d42b0b45444fe239cb4ac9bd7e26e5c835aa5
Ie8559212b3850a191e61b7eace489ac369f7bfab
I42d3f577270c8330595c1e006e488c6fc4567d12
Ic75310c28e3d65e8871cc974699146c6767a4c6b
Ibf5ded656f7ae2c80e00aeb4c757bf238b7595aa

Change-Id: Ic260349de80e4ab92239c8eef8e492507bbc40e9
2013-09-03 15:15:02 +04:00
Ekaterina Fedorova eb5a86baff Fix http.py to initial
Change-Id: Ife9d53b316839a6c8145b68c9f0cd568cbee7afd
2013-08-12 14:02:35 +04:00
Serg Melikyan 048fcbf927 Added .gitreview file
Change-Id: I3245862dffd095f2d263bd53b46ba31f3cf6a7ed
2013-05-15 17:13:52 +04:00