Commit Graph

31 Commits

Author SHA1 Message Date
Zuul 6af54cf481 Merge "CI: constrain deps for tests" 2024-02-26 22:13:23 +00:00
Tim Burke 3c529ceb70 CI: constrain deps for tests
Previously, we ran unconstrained so we could piggy-back off our extras,
but it causes issues in stable gates.

Change-Id: I5b04a1e4d6fb46cdcd50b547aa52290b8bf022ab
2024-02-26 10:49:34 -08:00
Matthew Oliver 1e0ab242ca lint: Up-rev hacking
Without up-reving hacking python 3.12 can't be used for pep8/flake8
checks. Also address a few new pyflakes issues that seem reasonable
to enforce:

   E275 missing whitespace after keyword
   H214 Use assertIn/NotIn(A, B) rather than
        assertTrue/False(A in/not in B)
   H211 do not compare types, use assert{Is,IsNot}Instance

Add F811 (redefinition of unused 'function'), as this check makes
client.py fail.

And noqa some longer lines that we're happy to carry.

Change-Id: Ic97698a310ffe7114b668b8c4bc0195f6997bb45
2024-02-21 17:14:27 +00:00
Tim Burke 5d451fb920 More cleanup following py2 removal
* Drop py2-only hacking pin from test-requirements.

* Remove quote() helper; urllib.parse.quote() works fine.

* Remove some useless code.

Change-Id: I9ffc923f58f1d11538f83ff26f7beb53cdf134c3
2022-05-24 08:33:02 -07:00
Steve Kowalik 20c97e83d3 Remove use of mock
Since Python 3.4, the unittest module has provided mock, negating the
need for the external dependancy. Switch to using unittest.mock.

Change-Id: Idec3aaed2fddd1ece3ed86ee0bcc48f7616d56fa
2022-05-24 11:56:35 +10:00
Tim Burke 5cb9061487 Clean up some requirements
* Drop the py26 marker for futures; we don't support 2.6 anymore.
* Split hacking version used based on python version.
* Clean up sphinx split -- 2.0+ aren't available to install on py2,
  anyway.

Depends-On: https://review.opendev.org/#/c/752340/
Depends-On: https://review.opendev.org/#/c/752736/
Change-Id: I5a6ba8e65c23ada7297f6684dcbdd886591d0af5
2020-09-18 12:22:01 -07:00
Tim Burke 02e8f4f228 Blacklist stestr 3.0.0
It claims py2 support, but that's a lie.

Also, switch our tempest job to the py3 variant, now that glance (at
least) is py3-only and tempest-full is broken.

Change-Id: Ic30fe82ff72fe4d138ec4823d36f2a1cc56f1ac7
2020-04-08 12:48:36 -07:00
Tim Burke c4bef14fc1 v1auth: support endpoint_data_for() api
...so we can be used with openstacksdk.

Also, add a few functests that use openstacksdk.

Change-Id: Ie6987f5de48914ec8932254cde79a973a0264877
2019-11-06 08:47:24 +00:00
Tim Burke 113eacf3b8 Isolate docs requirements
...since modern sphinx won't install on py27.

While we're at it, clean up some warnings and treat warnings as errors.

Also, fix up how we parse test configs so we can run func tests.

Related-Change: Id3c2ed87230c5918c18e2c01d086df8157f036b1
Change-Id: I3718f69610545b0dbcb0a2ab45b400da3a45682c
2019-06-27 16:48:33 -07:00
Dirk Mueller 5333f3e98a Remove oslosphinx usage
The client actually uses the newer openstackdocstheme.

Change-Id: If78d5fba58cf9e611253259fcdff2191ad3b8709
2019-03-23 23:19:45 +01:00
ZhijunWei 2ff36fde57 Update hacking version
1. update hacking version to latest
2. fix pep8 failed

Change-Id: Ifc3bfeff4038c93d8c8cf2c9d7814c3003e73504
2019-01-03 13:09:22 +08:00
Vu Cong Tuan 9acdfe0b46 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: Ic098f8560599554e0b6bb16ae326d4d30a8a5504
2018-11-05 09:52:03 +07:00
Doug Hellmann b5ed14f90a 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.

Update the dependencies needed to make the unit tests pass while
constrained to the lower bounds.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: I2a8f465c8b08370517cbec857933b08fca94ca38
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-25 09:33:54 -04:00
Tim Burke ed0858a4e4 Add releasenotes tox env
After this, we need to

* add release notes jobs for python-swiftclient in openstack-infra/project-config
* add release notes links for python-swiftclient in openstack/releases

For the corresponding change in the swift repo, see
I4e5f1ce1fcfbb2943036c821a24a0b4a3a2d9fc8

Change-Id: Iea6ed2ee26873edb3ef10146cdc906cf1a236255
2017-08-08 22:03:59 +00:00
Ondřej Nový f1b9352883 Require newer version of oslosphinx
This newer version contains show_other_versions option, which is used in
conf.py

Change-Id: Iad82206cbed81d13e80e62b7faaca9dcc736ea15
2016-09-27 07:53:42 +00:00
Tim Burke 52eab61e7e Move python-keystoneclient to "extras"
This should make it more clear to users that they may want to install
it.

Change-Id: I8bb4f3eba1fc6d2b7b23c3bd51663678e755a69e
2016-03-07 11:21:33 -08:00
Tim Burke bed6bbd5ef Drop testtools from test-requirements.txt
My understanding is that it was mainly being used so we could have sane
testing on py26.  With py26 support being dropped, we no longer need it.

Also drop discover from test-requirements.txt, as we don't seem to
actually use it.

Change-Id: Iee04c42890596d3b483c1473169480a3ae19aac8
Related-Change: I37116731db11449d0c374a6a83a3a43789a19d5f
2016-02-12 09:57:58 -08:00
Christian Schwede 7c7f46a33d Update mock to get away from env markers
Closes-Bug: 1476585

Bug has been reproduced on a fresh installed SAIO using
https://github.com/swiftstack/vagrant-swift-all-in-one.

Change-Id: I0300319baf7e2d8c27d1c19957894396505caeb8
2015-08-06 14:51:10 -07:00
Tim Burke 87c0a83988 Update mock requirements
The last version supporting python 2.6 was 1.0.1.

Change-Id: Ib7d51157f9654d240cdd67a0a1e6fcb14a70c84a
2015-07-10 13:56:48 -07:00
Tim Burke 70afe207cf Bump hacking in test-requirements
The gate-swiftclient-dsvm-functional job takes updates from
openstack/requirements and tries to run functional tests against them.
However, the global requirements recently added environment markers
(like "futures>=3.0;python_version=='2.7' or python_version=='2.6'")
which require pbr>=1.2. pbr was getting capped at 1.0 by hacking<0.9, so
bump it to get newer pbr.

Change-Id: I10af36602d23db78c2863d84c0012835b310bbdd
2015-07-01 11:11:53 -07:00
Steve Martinelli 6b836ac368 Update theme for docs
The current developer docs theme used is out of sync with the other
openstack projects. This patch will update the docs to provide a more
consistent look and feel when using developer docs

Change-Id: I2c66f60f6cfdd7b7b50a457c931f11851f668fa6
2014-07-24 20:59:45 -04:00
OpenStack Jenkins fa65fbbce5 Updated from global requirements
Change-Id: I96dfa12efee068be885f8acc94175ce3b60fe827
2014-04-02 23:20:12 +00:00
Victor Stinner ac92c5cd7f Python 3: Add six dependency
Change-Id: I350eb089e02b4c33cf34c9fdb65289a2ad77f9c9
2014-03-28 09:25:11 +01:00
zhang-jinnan 26e644f7bb Use six.StringIO instead of StringIO.StringIO
Keep Python 3.x compatibility

Change-Id: If7a8f0630bd2582ca9488313dcc59805c2ce1835
2014-03-03 16:16:07 +08:00
OpenStack Jenkins f09abbf116 Updated from global requirements
Change-Id: I36af2ac149fe6b56ee3e0c54f13f1592c2f97343
2014-02-23 09:32:05 +00:00
OpenStack Jenkins b9b8b8b423 Updated from global requirements
Change-Id: Icebd5bed50a50930bde0305191e32628d93348c0
2014-01-24 22:41:07 +00:00
John Dickinson 50ad1e0b14 Fix Sphinx version issue
Change-Id: Ib72ebf210486972538f5d2ef7eb225d57f84eeac
2013-12-11 16:17:16 -08:00
Monty Taylor 66e8c5a384 Sync with global requirements
Specifically, removing d2to1 is the important part. While we're at it
though, use hacking to get the pyflakes/pep8 pins.

Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6
2013-09-13 11:02:05 -05:00
Darrell Bishop 1d4d51b218 Allow storage url override for both auth vers.
When --os-storage-url is specified on the command-line to bin/swift, it
will override the used storage URL regardless of authentication for both
authentication version 1 and version 2.  This can be used to bypass a
load-balancer to hit a specific proxy server for testing/debugging
purposes.

Within the client library, this feature is accessed by passing the
desired storage URL into swiftclient.client.Conection.__init__() via the
os_options keyword argument.  For example:

  conn = Connection(auth_url, user, key, os_options={
    'object_storage_url': 'http://overridden.storage.url/AUTH_foo'})

This patch also adds a dependency on mock>=0.8.0, which is the same as
openstack/swift.

Change-Id: Id2a36ed6abffd65e7762b6beea5bbfc6c036e848
2013-07-05 14:12:59 -05:00
Monty Taylor e885f87a3e Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: If1a97a574dbc0370a0a2de5d99a92610b048907d
2013-06-11 11:28:13 -07:00
niu-zglinux 2d12f09c66 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: I9c1356f22f6527be44b4b3f6a77012156ff1637b
Fixes: bug #1179008
2013-05-30 22:14:28 +00:00