# Path: pyp2rpm/version.py

# 
# Path: pyp2rpm/utils.py
# PY3 = sys.version > '3'
# class ChangeDir(object):
#     def __init__(self, new_path):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):  # TODO handle exception
# def memoize_by_args(func):
#     def memoized(*args):
# def build_srpm(specfile, save_dir):
# def remove_major_minor_suffix(scripts):
# def runtime_to_build(runtime_deps):
# def unique_deps(deps):
#     def console_to_str(s):
#     def console_to_str(s):
# def c_time_locale():
# def rpm_eval(macro):
# def get_default_save_path():


import subprocess
import time
import locale
import logging
from pyp2rpm import version
from pyp2rpm import utils
        object.__setattr__(self, 'data', {})
        self.data['local_file'] = local_file
        self.data['name'] = name
        self.data['srcname'] = srcname
        self.data['pkg_name'] = pkg_name
        self.data['version'] = version
        self.data['python_versions'] = []
        self.data['md5'] = md5
        self.data['source0'] = source0
        self.data['sphinx_dir'] = None

    def __getattr__(self, name):
        if name == 'underscored_name':
            return self.data['name'].replace('-', '_')
        elif name == 'changelog_date_packager':
            return self.get_changelog_date_packager()
        elif name in ['runtime_deps', 'build_deps', 'classifiers',
                      'doc_files', 'doc_license']:
            return self.data.get(name, [])
        elif name in ['packages', 'py_modules', 'scripts']:
            return self.data.get(name, [])
        elif name in ['has_egg_info', 'has_test_suite',
                      'has_pth', 'has_extension']:
            return self.data.get(name, False)
        elif name == 'sorted_python_versions':
            return sorted([self.data.get('base_python_version')] +
                          self.data.get('python_versions', []))
        return self.data.get(name, 'TODO:')

    def __setattr__(self, name, value):

# Path: pyp2rpm/version.py

# 
# Path: pyp2rpm/utils.py
# PY3 = sys.version > '3'
# class ChangeDir(object):
#     def __init__(self, new_path):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):  # TODO handle exception
# def memoize_by_args(func):
#     def memoized(*args):
# def build_srpm(specfile, save_dir):
# def remove_major_minor_suffix(scripts):
# def runtime_to_build(runtime_deps):
# def unique_deps(deps):
#     def console_to_str(s):
#     def console_to_str(s):
# def c_time_locale():
# def rpm_eval(macro):
# def get_default_save_path():


# Path: pyp2rpm/package_data.py
import subprocess
import time
import locale
import logging
from pyp2rpm import version
from pyp2rpm import utils

        object.__setattr__(self, 'data', {})
        self.data['local_file'] = local_file
        self.data['name'] = name
        self.data['srcname'] = srcname
        self.data['pkg_name'] = pkg_name
        self.data['version'] = version
        self.data['python_versions'] = []
        self.data['md5'] = md5
        self.data['source0'] = source0
        self.data['sphinx_dir'] = None

    def __getattr__(self, name):
        if name == 'underscored_name':
            return self.data['name'].replace('-', '_')
        elif name == 'changelog_date_packager':
            return self.get_changelog_date_packager()
        elif name in ['runtime_deps', 'build_deps', 'classifiers',
                      'doc_files', 'doc_license']:
            return self.data.get(name, [])
        elif name in ['packages', 'py_modules', 'scripts']:
            return self.data.get(name, [])
        elif name in ['has_egg_info', 'has_test_suite',
                      'has_pth', 'has_extension']:
            return self.data.get(name, False)
        elif name == 'sorted_python_versions':
            return sorted([self.data.get('base_python_version')] +
                          self.data.get('python_versions', []))
        return self.data.get(name, 'TODO:')

    def __setattr__(self, name, value):

        if name == 'summary' and isinstance(value, utils.str_classes):