
import os
import re

# Dynamically set __version__
version_path = os.path.join(os.path.dirname(
    os.path.realpath(__file__)), 'version.py')
with open(version_path, 'r') as version_file:
    mo = re.search(r"^.*= '(\d\.\d\.\d)'$", version_file.read(), re.MULTILINE)
    __version__ = mo.group(1)


__all__ = ['core', 'demos', 'services']


import os
import re

from kmip.core import enums

# Dynamically set __version__
version_path = os.path.join(os.path.dirname(
    os.path.realpath(__file__)), 'version.py')
with open(version_path, 'r') as version_file:
    mo = re.search(r"^.*= '(\d\.\d\.\d)'$", version_file.read(), re.MULTILINE)
    __version__ = mo.group(1)


__all__ = [
    'core',
    'demos',
    'enums',
    'services'
]

Update the kmip package to allow importing enums globally
Update the kmip package to allow importing enums globally

This change updates the root-level kmip package, allowing users
to now import enums directly from the kmip package:

from kmip import enums

Enumerations are used throughout the codebase and user applications
and this will simplify usage and help obfuscate internal package
details that may change in the future.

  
  import os
  import re
+ 
+ from kmip.core import enums
  
  # Dynamically set __version__
  version_path = os.path.join(os.path.dirname(
      os.path.realpath(__file__)), 'version.py')
  with open(version_path, 'r') as version_file:
      mo = re.search(r"^.*= '(\d\.\d\.\d)'$", version_file.read(), re.MULTILINE)
      __version__ = mo.group(1)
  
  
- __all__ = ['core', 'demos', 'services']
+ __all__ = [
+     'core',
+     'demos',
+     'enums',
+     'services'
+ ]
  
Update the kmip package to allow importing enums globally
## Code Before:

import os
import re

# Dynamically set __version__
version_path = os.path.join(os.path.dirname(
    os.path.realpath(__file__)), 'version.py')
with open(version_path, 'r') as version_file:
    mo = re.search(r"^.*= '(\d\.\d\.\d)'$", version_file.read(), re.MULTILINE)
    __version__ = mo.group(1)


__all__ = ['core', 'demos', 'services']

## Instruction:
Update the kmip package to allow importing enums globally
## Code After:

import os
import re

from kmip.core import enums

# Dynamically set __version__
version_path = os.path.join(os.path.dirname(
    os.path.realpath(__file__)), 'version.py')
with open(version_path, 'r') as version_file:
    mo = re.search(r"^.*= '(\d\.\d\.\d)'$", version_file.read(), re.MULTILINE)
    __version__ = mo.group(1)


__all__ = [
    'core',
    'demos',
    'enums',
    'services'
]
