mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-31 01:44:02 +02:00
This update includes a library wide upgrade to support KMIP 2.0 for all currently supported KMIP operations. Additional changes include documentation improvements, testing upgrades, and various quality of life enhancements: * Add support for Python 3.7 * Add KMIP 2.0 enumerations * Add a new OrderedEnum subclass to handle sortable enumerations * Add KMIP 2.0-style attribute handling * Add utilities to convert TemplateAttributes and Attributes * Add utilities to handle bit mask style enumerations * Add positional argument handling for pytest calls when using tox * Update the library documentation to include KMIP 2.0 information * Update client exception handling / logging to simplify debugging * Update library logging defaults to log at INFO but support DEBUG * Update the Travis CI configuration to support Ubuntu 16.04 * Update the Travis CI configuration to output logs on failures * Update the server to support KMIP 1.3, 1.4, and 2.0 * Update the PyKMIP clients to support changing their KMIP version * Update server session logging for authentication failures * Update the PyKMIP object hierarchy to propagate the KMIP version * Update the server TLS handshake handling to avoid thread hanging * Update the Create and Register payloads to support KMIP 2.0 * Update the Locate and CreateKeyPair payloads to support KMIP 2.0 * Update the DeriveKey / GetAttributes payloads to support KMIP 2.0 * Update the GetAttributeList / Query payloads to support KMIP 2.0 * Update attribute policy to handle KMIP 2.0 deprecated attributes * Remove escape sequences to comply with Python 3.6 deprecations * Fix various deprecation warnings caused by dependency upgrades * Fix a bug decoding revocation messages for the Revoke operation * Fix a bug specifying the function list in the Query demo script
67 lines
2.2 KiB
Python
67 lines
2.2 KiB
Python
#!/usr/bin/env python
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import os
|
|
import re
|
|
import setuptools
|
|
|
|
# Dynamically set __version__
|
|
version_path = os.path.join(os.path.dirname(
|
|
os.path.realpath(__file__)), 'kmip', 'version.py')
|
|
with open(version_path, 'r') as version_file:
|
|
mo = re.search(r"^.*= '(\d\.\d\..*)'$", version_file.read(), re.MULTILINE)
|
|
__version__ = mo.group(1)
|
|
|
|
setuptools.setup(
|
|
name='PyKMIP',
|
|
version=__version__,
|
|
description='KMIP library',
|
|
keywords='KMIP',
|
|
author='Peter Hamilton',
|
|
author_email='peter.hamilton@jhuapl.edu',
|
|
url='https://github.com/OpenKMIP/PyKMIP',
|
|
license='Apache License, Version 2.0',
|
|
packages=setuptools.find_packages(exclude=["kmip.tests", "kmip.tests.*"]),
|
|
package_data={'kmip': ['kmipconfig.ini', 'logconfig.ini'],
|
|
'kmip.demos': ['certs/server.crt', 'certs/server.key']},
|
|
entry_points={
|
|
'console_scripts':[
|
|
'pykmip-server = kmip.services.server.server:main'
|
|
]
|
|
},
|
|
install_requires=[
|
|
"cryptography",
|
|
"enum34",
|
|
"requests",
|
|
"six",
|
|
"sqlalchemy"
|
|
],
|
|
classifiers=[
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Natural Language :: English",
|
|
"Operating System :: POSIX",
|
|
"Operating System :: POSIX :: BSD",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 2",
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Programming Language :: Python :: 3.5",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
],
|
|
)
|