@@ -0,0 +1,2186 @@
+#!/usr/bin/env python%0A# -*- coding: utf8 - *-%0A%22%22%22unihan-db lives at %3Chttps://unihan-db.git-pull.com%3E.%22%22%22%0A%0Aimport sys%0A%0Afrom setuptools import setup%0Afrom setuptools.command.test import test as TestCommand%0A%0Aabout = %7B%7D%0Awith open(%22unihan_db/__about__.py%22) as fp:%0A    exec(fp.read(), about)%0A%0Awith open('requirements/base.txt') as f:%0A    install_reqs = %5Bline for line in f.read().split('%5Cn') if line%5D%0A%0Awith open('requirements/test.txt') as f:%0A    tests_reqs = %5Bline for line in f.read().split('%5Cn') if line%5D%0A%0Aif sys.version_info%5B0%5D %3E 2:%0A    readme = open('README.rst', encoding='utf-8').read()%0Aelse:%0A    readme = open('README.rst').read()%0A%0Ahistory = open('CHANGES').read().replace('.. :changelog:', '')%0A%0A%0Aclass PyTest(TestCommand):%0A    user_options = %5B('pytest-args=', 'a', %22Arguments to pass to py.test%22)%5D%0A%0A    def initialize_options(self):%0A        TestCommand.initialize_options(self)%0A        self.pytest_args = %5B%5D%0A%0A    def run_tests(self):%0A        import pytest%0A        errno = pytest.main(self.pytest_args)%0A        sys.exit(errno)%0A%0A%0Asetup(%0A    name=about%5B'__title__'%5D,%0A    version=about%5B'__version__'%5D,%0A    url='https://unihan-db.git-pull.com',%0A    download_url='https://pypi.python.org/pypi/unihan-db',%0A    license=about%5B'__license__'%5D,%0A    author=about%5B'__author__'%5D,%0A    author_email=about%5B'__email__'%5D,%0A    description=about%5B'__description__'%5D,%0A    long_description=readme,%0A    include_package_data=True,%0A    install_requires=install_reqs,%0A    tests_require=tests_reqs,%0A    cmdclass=%7B'test': PyTest%7D,%0A    zip_safe=False,%0A    keywords=about%5B'__title__'%5D,%0A    packages=%5B'unihan_db'%5D,%0A    classifiers=%5B%0A        'Development Status :: 4 - Beta',%0A        %22License :: OSI Approved :: MIT License%22,%0A        'Environment :: Web Environment',%0A        'Intended Audience :: Developers',%0A        'Programming Language :: Python',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.5',%0A        'Programming Language :: Python :: 3.6',%0A        'Programming Language :: Python :: Implementation :: PyPy',%0A        %22Topic :: Utilities%22,%0A        %22Topic :: Software Development :: Internationalization%22,%0A    %5D,%0A)%0A

add setup.py