# 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


logger = logging.getLogger(__name__)


def get_deps_names(runtime_deps_list):
    '''
    data['runtime_deps'] has format:
    [['Requires', 'name', '{name} >= version'], ...]
    this function creates list of lowercase deps names
    '''
    return [x[1].lower() for x in runtime_deps_list]


class PackageData(object):

# 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



logger = logging.getLogger(__name__)


def get_deps_names(runtime_deps_list):
    '''
    data['runtime_deps'] has format:
    [['Requires', 'name', '{name} >= version'], ...]
    this function creates list of lowercase deps names
    '''
    return [x[1].lower() for x in runtime_deps_list]


class PackageData(object):

    credit_line = '# Created by pyp2rpm-{0}'.format(version.version)