<commit_before>""" crmngr setup module. """

from setuptools import setup, find_packages
from crmngr.version import __version__

setup(
    name='crmngr',
    author='<NAME>',
    author_email='<EMAIL>',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: System :: Systems Administration',
    ],
    description='manage a r10k-style control repository',
    entry_points={
        'console_scripts': [
            'crmngr = crmngr:main'
        ]
    },
    install_requires=[
        'natsort>=4.0.0',
        'requests>=2.1.0',
    ],
    # BSD 3-Clause License:
    # - http://opensource.org/licenses/BSD-3-Clause
    license='BSD',
    packages=find_packages(),
    url='https://github.com/vshn/crmngr',<commit_msg>Change version lookup for packaging.<commit_after>""" crmngr setup module. """

from pathlib import Path
import re
from setuptools import setup, find_packages

# Read version from crmngr/version.py
# we do not import, as this fails if dependencies from install_depends are not
# available
with open(Path('./crmngr/version.py')) as version_file:
    VERSION_REGEX = re.compile(
        r'^\s*__version__\s*=\s*["\'](?P<version>.*)["\']\s*$'
    )
    for line in version_file.readlines():
        version_match = VERSION_REGEX.match(line)
        if version_match:
            __version__ = version_match.groupdict()['version']
            break
    else:
        __version__ = 'unknown'
        raise Exception('Could not get current version of nacli from '
                        './nacli/version.py')

setup(
    name='crmngr',
    author='<NAME>',
    author_email='<EMAIL>',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: System :: Systems Administration',
    ],
    description='manage a r10k-style control repository',
    entry_points={
        'console_scripts': [
            'crmngr = crmngr:main'
        ]
    },
    install_requires=[
        'natsort>=4.0.0',
        'requests>=2.1.0',
    ],
    # BSD 3-Clause License:
    # - http://opensource.org/licenses/BSD-3-Clause
    license='BSD',
    packages=find_packages(),
    url='https://github.com/vshn/crmngr',
{'fraction_non_alphanumeric': 0.14143730886850153, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 2.589849108367627, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2506883', 'n_tokens_mistral': 818, 'n_tokens_neox': 799, 'n_words': 182}