Uncap jsonschema

We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Also includes squashed commit:
Raise lower constraint of psycopg2

Versions prior to 3.7 did not support postgresql version numbering
starting with postgresql 10, causing setup failures. This raises the
lower-constraint to the first version that contained the fix [0] to
support that.

With the change in global requirements for jsonschema, requirements
check fails on raising psycopg2, but we need that raised in order for
the jsonschema version to be raised.

[0] https://github.com/psycopg/psycopg2/pull/504

Also required updating networkx constraints to match current g-r.

Change-Id: Ifd0f0586f945d1da4dd597ae7b4514117cd49f57
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
This commit is contained in:
Sean McGinnis 2019-04-09 08:44:44 -05:00
parent dbe22b3ed4
commit 8bcef3f5e7
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
5 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
# Packages
*.egg
*.eggs
*.egg-info
dist
build

View File

@ -47,7 +47,7 @@ oslotest==3.2.0
pbr==2.0.0
pep8==1.5.7
prettytable==0.7.2
psycopg2==2.6.2
psycopg2==2.7.0
pydot==1.2.4
pydotplus==2.0.2
pyflakes==0.8.1

View File

@ -20,7 +20,8 @@ futurist>=1.2.0 # Apache-2.0
fasteners>=0.7.0 # Apache-2.0
# Very nice graph library
networkx>=1.10 # BSD
networkx>=1.10,<2.3;python_version<'3.0' # BSD
networkx>=1.10;python_version>='3.4' # BSD
# For contextlib new additions/compatibility for <= python 3.3
contextlib2>=0.4.0;python_version<'3.0' # PSF License
@ -32,7 +33,7 @@ stevedore>=1.20.0 # Apache-2.0
futures>=3.0.0;python_version=='2.7' or python_version=='2.6' # BSD
# Used for structured input validation
jsonschema<3.0.0,>=2.6.0 # MIT
jsonschema>=2.6.0 # MIT
# For the state machine we run with
automaton>=1.9.0 # Apache-2.0

View File

@ -72,7 +72,7 @@ database =
alembic>=0.8.10 # MIT
SQLAlchemy-Utils>=0.30.11 # BSD License
PyMySQL>=0.7.6 # MIT License
psycopg2>=2.6.2 # LGPL/ZPL
psycopg2>=2.7.0 # LGPL/ZPL
test =
pydotplus>=2.0.2 # MIT License
hacking<0.11,>=0.10.0

View File

@ -20,7 +20,7 @@ SQLAlchemy!=1.1.5,!=1.1.6,!=1.1.7,!=1.1.8,>=1.0.10 # MIT
alembic>=0.8.10 # MIT
SQLAlchemy-Utils>=0.30.11 # BSD License
PyMySQL>=0.7.6 # MIT License
psycopg2>=2.6.2 # LGPL/ZPL
psycopg2>=2.7.0 # LGPL/ZPL
# test
pydotplus>=2.0.2 # MIT License