18 Commits

Author SHA1 Message Date
Tim Burke
ee12a11e70 Add attrs to lower-constraints
Future work: Assuming we're going to keep the l-c job, we should make
sure it fails if packages get installed that aren't in the constraints
file.

Change-Id: I61750a1083a1c97a6222ec9040f90980ee73acc8
2023-01-09 09:00:27 -08:00
Tim Burke
ef155bd74a Switch to pytest
nose has not seen active development for many years now. With py310, we
can no longer use it due to import errors.

Also update lower contraints

Closes-Bug: #1993531
Change-Id: I215ba0d4654c9c637c3b97953d8659ac80892db8
2022-12-09 11:38:02 -08:00
Alistair Coles
5079d8429d internal-client: pass global_conf to loadapp
The internal client previously provided no easy way to programatically
customise the configuration of the proxy-server app or other
middlewares in its wsgi pipeline.  This patch allows a global_conf
dict to be passed via the InternalClient constructor to the wsgi
loadapp function. Items in the global_conf dict will override options
loaded from the config file. An example use case would be to change
the log_name from the default 'swift', which would be useful to
differentiate logs from different processes using an internal client.

The minimum version of PasteDeploy is increased to 2.0.0 to make the
global_conf behavior predictable: in older versions global_conf would
not override options in the conf file DEFAULT section, but since 2.0.0
it will.

Change-Id: Ida39ec7eb02a93cf4b2aa68fc07b7f0ae27b5439
2021-12-20 18:16:32 +00:00
Tim Burke
1895213d25 Update some constraints for py2
We've recently started seeing some failures in the gate related to these
projects, and they have final py2-supporting versions.

Change-Id: If81fc352c8b2b1f03f3fa7b79c56dfcf981ced70
2021-04-06 11:33:44 -07:00
Tim Burke
f819fc8c24 Give functional tests another chance to pass
In the process, move from using os-testr to stestr.

Change-Id: Ib6651aab8b009605bf0855ec217003936c0fae6e
2021-03-26 10:13:19 -07:00
Tim Burke
0d37492c65 Clean up requirements a bit
* Drop osc from test-requirements (and lower-constraints)

  I'm not clear on where/how we use it; I think it was a hold-over from
  swift3?

* Pin python-keystoneclient in our py2-constraints

  Something sees to have changed with the pip resolver that means it
  keeps trying to install a newer, py3-only version for our py2 jobs.

Change-Id: Ie37ac077517e1ece5fa6bf163d1ab5e316ced509
2020-12-01 15:41:18 -08:00
likui
0f97d8e920 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: Ic777b435723f663b408c778f661811439b486071
2020-10-27 11:35:53 +08:00
Andreas Jaeger
3d105b623d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I131850d2a5c6164dfd48c9c95885d4754b5236c6
2020-06-03 08:31:04 +02:00
Andreas Jaeger
96b56519bf Update hacking for Python3
The repo is Python using both Python 2 and 3 now, so update hacking to
version 2.0 which supports Python 2 and 3. Note that latest hacking
release 3.0 only supports version 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: I9bd913ee1b32ba1566c420973723296766d1812f
2020-04-03 21:21:07 +02:00
Tim Burke
51c9b13082 Add unittest2 back to lower-constraints.txt
testtools (required by os-testr) still requires unittest2; until

  * testtools no longer requires unittest2 and
  * we bump up our minimum-supported version of testtools to a version
    that doesn't reference unittest2,

we should continue listing unittest2 in lower-constraints.txt (just in
case they ever have a new release).

Admittedly, that seems unlikely at this point -- unittest2's latest
release was back in 2015.

Change-Id: I09301bf81d68357ec006a21dd37e72c56cefffe3
2020-01-27 08:47:28 -08:00
Sean McGinnis
5b26b749b5
Drop use of unittest2
unittest2 was needed for Python version <= 2.6, so it hasn't been needed
for quite some time. See unittest2 note one:

https://docs.python.org/2.7/library/unittest.html

This drops unittest2 in favor of the standard unittest module.

Change-Id: I2e787cfbf1709b7f9c889230a10c03689e032957
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 03:13:41 -06:00
Tim Burke
c19d09f60b Give ECAppIter greenthreads a chance to wrap up
Otherwise, we can hit a "generator already executing" error in
test/functional/test_slo.py:TestSlo.test_slo_multi_ranged_get

Also, set a *slightly* newer lower-bound for greenlet (from 2011 instead
of 2010) so the sleep() doesn't cause us to lose exception state.

Change-Id: Id458fc0a43fd71aab9f6edbacc1f0b370c9f7537
2019-07-29 12:11:34 -07:00
Tim Burke
0ebfeddf65 Bump up our minimum eventlet version
We need 0.25.0 for py3 support, and increasing it for both is simplest.

Also drag forward dnspython, as newer eventlet requires a newer
dnspython. Note that we still don't explicitly list it as a dependency
for py3; rather, it's been getting installed as a requirement for
eventlet.

Change-Id: If933b713bdd1dfc348959771d60c0756a9a94477
2019-06-24 08:22:37 -07:00
Tim Burke
b7b92b97b1 Bump up minimum cryptography version
...not because we strictly *need* newer cryptography, but rather because
distro packages have moved forward to the point where the 1.x series
won't compile from source and PyPI doesn't have wheels for them.

See changes like:

- https://github.com/pyca/cryptography/commit/6e7ea2e
- https://github.com/pyca/cryptography/commit/f88aea5

Change-Id: I1ff5b61873cf382c7a89873ed4ba6153f299262a
2019-06-11 09:54:42 -07:00
翟小君
98637dc1e7 Bump openstackdocstheme to 1.30.0
...to pick up many improvements, including the return of table borders.

Change-Id: I166211b690b08521171b489582fa419d756b1972
2019-06-05 12:38:00 +08:00
Timur Alperovich
d4e7940457 Start transition to boto3 in s3api tests.
Adds the scaffolding required for tests to use boto3 and converts the
test_bucket.py tests to the new interface. Follow on patches will
convert the other tests to use the boto3 library.

Notable changes: we no longer try to reach for the equivalent of
`boto.make_request()` and instead rely on the boto3/botocore event
system to mutate requests as necessary (or to disable pre-flight
validators).

Partial-Bug: 1557260
Change-Id: I3d77ef4a6b878c49ebfa0c8b8647d7199d87601e
2019-05-21 22:10:20 +00:00
Sean McGinnis
10cb205fe0 Fix lower-constraint deps handling
When the lower-constraints tox target was added, it was assumed the
install_command was just running the install and that the dependencies
and constraints were being set using "deps = ".

This fixed the install_command and deps to follow the expected pattern
so the lower-constraints job actual does install the lower constraints.

Also:
  * raise the minimum for netifaces as the existing version would fail
    to load
  * pin oslo.log to the minimum required by our minimum
    keystonemiddleware
  * fix up some error handling for ancient versions of pastedeploy
  * specify that we shouldn't install xattr on a platform we don't
    support anyway, because reasons

Change-Id: Ie78c0dabe12e01109db2b6412166c3564b87ee96
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-03-22 11:41:56 -07:00
Doug Hellmann
ba8447e056 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: Iac4a202a1d723822d10f4d34a397eff9de3f2108
add the job in project-config:
Depends-On: https://review.openstack.org/555034
remove branch optimiazation in check and add swift exclusions (series):
Depends-On: https://review.openstack.org/560109
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-07-27 01:59:30 +00:00