PyKMIP/setup.py

76 lines
2.5 KiB
Python
Raw Normal View History

#!/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__
this_dir = os.path.dirname(os.path.realpath(__file__))
version_path = os.path.join(this_dir, "kmip", "version.py")
with open(version_path, 'r') as f:
m = re.search(
r"^__version__ = \"(\d+\.\d+\..*)\"$",
f.read(),
re.MULTILINE
)
__version__ = m.group(1)
readme_path = os.path.join(this_dir, "README.rst")
with open(readme_path, 'r') as f:
long_description = f.read()
setuptools.setup(
name='PyKMIP',
version=__version__,
PyKMIP - Release 0.9.0 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
2019-06-18 17:45:47 +02:00
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',
long_description=long_description,
long_description_content_type="text/x-rst",
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",
"enum-compat",
"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",
2016-11-11 21:17:20 +01:00
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)