Package: python-pykmip / 0.10.0-10

Metadata

Package Version Patches format
python-pykmip 0.10.0-10 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix exception using py2 format.patch | (download)

kmip/demos/pie/locate.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix exception using py2 format
Fix_tests_to_pass_with_SQLAlchemy 1.4.0.patch | (download)

kmip/tests/unit/pie/objects/test_opaque_object.py | 14 7 + 7 - 0 !
kmip/tests/unit/pie/objects/test_private_key.py | 14 7 + 7 - 0 !
kmip/tests/unit/pie/objects/test_public_key.py | 14 7 + 7 - 0 !
kmip/tests/unit/pie/objects/test_secret_data.py | 14 7 + 7 - 0 !
kmip/tests/unit/pie/objects/test_split_key.py | 3 2 + 1 - 0 !
kmip/tests/unit/pie/objects/test_symmetric_key.py | 14 7 + 7 - 0 !
kmip/tests/unit/pie/objects/test_x509_certificate.py | 14 7 + 7 - 0 !
kmip/tests/unit/services/server/test_engine.py | 3 3 + 0 - 0 !
8 files changed, 47 insertions(+), 43 deletions(-)

 [patch] fix tests to pass with sqlalchemy>=1.4.0

I'm not *entirely* sure what's going on here, but it seems that when we
do something like

    obj = OpaqueObject(...)
    Session = sessionmaker(...)
    session = Session()
    ...
    session.add(obj)
    session.commit()

the primary key (and maybe some foreign relations?) aren't automatically
populated on `obj` following the commit, and will attempt to lazy-load
on next reference. Since expire_on_commit defaults to True, the session
attached to `obj` (which is no longer the `session` in locals!) is closed
out when we later do

    session = Session()
    get_obj = session.query(OpaqueObject).filter(
        ManagedObject.unique_identifier == obj.unique_identifier).one()

leading to a DetachedInstanceError.

py3.12 and 3.13 support.patch | (download)

docs/source/conf.py | 5 1 + 4 - 0 !
kmip/services/kmip_client.py | 16 10 + 6 - 0 !
kmip/services/server/server.py | 21 13 + 8 - 0 !
kmip/tests/unit/services/server/test_server.py | 10 6 + 4 - 0 !
4 files changed, 30 insertions(+), 22 deletions(-)

 add python 3.12 and 3.13 support
fix path of load_der_public_key.patch | (download)

kmip/services/server/crypto/engine.py | 20 16 + 4 - 0 !
1 file changed, 16 insertions(+), 4 deletions(-)

 fix path of load_der_public_key
 The function load_der_public_key should be used form serialization, not
 from backend.
cryptography_39 support.patch | (download)

kmip/services/server/crypto/engine.py | 12 6 + 6 - 0 !
1 file changed, 6 insertions(+), 6 deletions(-)

 add cryptography >= 39.0.0 support
 The cryptography release 39.0.0 added a new parameter to the
 backend.load_pem_private_key and backend.load_der_private_key
 that's required. This patch uses the serialization method to load keys
 because there the new parameter is optional.
 .
 https://cryptography.io/en/latest/changelog/#v39-0-0
 .
 This patch fixes the tests test_encrypt_decrypt_asymmetric
use assertEqual not assertEquals.patch | (download)

kmip/tests/unit/core/messages/test_messages.py | 40 20 + 20 - 0 !
kmip/tests/unit/core/test_enums.py | 8 4 + 4 - 0 !
kmip/tests/unit/pie/objects/test_opaque_object.py | 38 19 + 19 - 0 !
kmip/tests/unit/pie/objects/test_private_key.py | 38 19 + 19 - 0 !
kmip/tests/unit/pie/objects/test_public_key.py | 38 19 + 19 - 0 !
kmip/tests/unit/pie/objects/test_secret_data.py | 38 19 + 19 - 0 !
kmip/tests/unit/pie/objects/test_symmetric_key.py | 38 19 + 19 - 0 !
kmip/tests/unit/pie/objects/test_x509_certificate.py | 38 19 + 19 - 0 !
8 files changed, 138 insertions(+), 138 deletions(-)

 use assertequal, not assertequals
kill broken test.patch | (download)

kmip/tests/unit/services/server/test_server.py | 42 0 + 42 - 0 !
1 file changed, 42 deletions(-)

 kill broken test