diff options
author | Matt Riedemann <mriedem@us.ibm.com> | 2015-08-21 18:09:21 -0700 |
---|---|---|
committer | Matt Riedemann <mriedem@us.ibm.com> | 2015-08-23 17:44:06 -0700 |
commit | c213ffda17d09a68fdbb619ba6db4b8a101e85a9 (patch) | |
tree | f0a4cc0ee92931230707c0dd589e2dd2e48b02f6 | |
parent | bb4d2ab59c4de9389667eeed255642f51e276f1e (diff) | |
download | python-swiftclient-c213ffda17d09a68fdbb619ba6db4b8a101e85a9.tar.gz |
Update from global requirements
This syncs up the requirements with global-requirements on stable/juno.
We need this to cap the dependency on futures to avoid a conflict
with capped futures in the version of taskflow in stable/juno, otherwise
setting up devstack with cinder enabled fails.
Also update .gitreview for stable/juno since this is the first patch
on the new branch.
Also sets up the tox func target, which is basically a cherry pick of
commit 8aff0bda9c35ab96146f4f419803e62710ab5618. Note that while we
make it possible to run the functional tests, we exclude them in
Jenkins runs since they are also excluded from stable/kilo due to
instability in the gate.
Depends-On: I5a2d3f7860aeae6bf442e9372286eedbc290d6a8
Change-Id: I507aade31da19be71900b81880cd5568b351663e
Partial-Bug: #1486576
-rw-r--r-- | .gitreview | 1 | ||||
-rw-r--r-- | requirements.txt | 11 | ||||
-rw-r--r-- | setup.py | 9 | ||||
-rw-r--r-- | test-requirements.txt | 21 | ||||
-rw-r--r-- | tox.ini | 10 |
5 files changed, 38 insertions, 14 deletions
@@ -2,3 +2,4 @@ host=review.openstack.org port=29418 project=openstack/python-swiftclient.git +defaultbranch=stable/juno diff --git a/requirements.txt b/requirements.txt index e7c0d41..19377ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ -futures>=2.1.3 -requests>=1.1 -simplejson>=2.0.9 -six>=1.5.2 +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +futures<=2.2.0,>=2.1.6 +requests!=2.4.0,<=2.2.1,>=2.1.0 +simplejson<=3.3.1,>=2.2.0 +six<=1.9.0,>=1.7.0 @@ -1,4 +1,3 @@ -#!/usr/bin/env python # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,6 +16,14 @@ # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass + setuptools.setup( setup_requires=['pbr'], pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt index 5427920..efbbee3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,10 +1,13 @@ -hacking>=0.8.0,<0.9 +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. +hacking<0.9,>=0.8.0 -coverage>=3.6 -discover -mock>=1.0 -oslosphinx -python-keystoneclient>=0.7.0 -sphinx>=1.1.2,<1.2 -testrepository>=0.0.18 -testtools>=0.9.34 +coverage<=3.7.1,>=3.6 +discover<=0.4.0 +mock<=1.0.1,>=1.0 +oslosphinx<2.5.0,>=2.2.0 # Apache-2.0 +python-keystoneclient<1.2.0,>=0.10.0 +sphinx!=1.2.0,<1.3,>=1.1.2 +testrepository<=0.0.20,>=0.0.18 +testtools!=1.4.0,<=1.5.0,>=0.9.34 @@ -25,6 +25,16 @@ commands = python setup.py testr --coverage [tox:jenkins] downloadcache = ~/cache/pip +[testenv:func] +setenv = OS_TEST_PATH=tests.functional +whitelist_externals = + coverage + rm +commands = + python setup.py testr --coverage --testr-args="--concurrency=1" + coverage report -m + rm -f .coverage + [testenv:docs] commands= python setup.py build_sphinx |