#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from setuptools import setup


def read_file(name):
    """
    Read file content
    """
    f = open(name)
    try:
        return f.read()
    except IOError:
        print("could not read %r" % name)
        f.close()


PROJECT = 'pypinksign'
VERSION = '0.2.2'
URL = 'http://github.com/bandoche/PyPinkSign'
AUTHOR = 'Sangjun Jung'
AUTHOR_EMAIL = 'spamcoffee+pypinksign@gmail.com'
DESC = "Basic NPKI module."
LONG_DESC = "See https://github.com/bandoche/PyPinkSign"  # read_file('README.rst')

EXTRAS = {}

if sys.version_info > (3,):
    EXTRAS['use_2to3'] = True

setup(
    name=PROJECT,
    version=VERSION,
    description=DESC,
    long_description=LONG_DESC,
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url=URL,
    license='MIT',
    packages=['pypinksign'],
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'pycrypto==2.6.1',
        'pkcs1==0.9.5',
        'pyasn1==0.1.7',
        'cryptography==0.8.2',
        'bitarray==0.8.1',
        'PBKDF==1.0'
    ],
    keywords='npki 공인인증서 korean pki certificate',
    platforms='OS Independent',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7'
    ],
    **EXTRAS
)

@@ -313,17 +313,17 @@
  = '0.2.
-2
+3
 '%0AURL = 
@@ -1008,13 +1008,11 @@
 hy==
-0.8.2
+1.5
 ',%0A 

upgrade cryptography library