old_contents: # -*- coding: utf-8 -*-
  
  import os.path
  from codecs import open
  from os import path
  
  from setuptools import setup, find_packages
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
      long_description = f.read()
  
  setup(
      name='shipane_sdk',
  
      version='1.1.0.a12',
  
      description=u'实盘易（ShiPanE）Python SDK，通达信自动化交易 API。',
      long_description=long_description,
  
      url='https://github.com/sinall/ShiPanE-Python-SDK',
  
      author='sinall',
      author_email='gaoruinan@163.com',
  
      license='MIT',
  
      classifiers=[
          'Development Status :: 3 - Alpha',
  
          'Intended Audience :: Developers',
          'Intended Audience :: Financial and Insurance Industry',
          'Topic :: Office/Business :: Financial :: Investment',
  
          'License :: OSI Approved :: MIT License',
  
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ],
  
      keywords='ShiPanE SDK 通达信 TDX Automation',
  
      packages=find_packages(exclude=['contrib', 'docs', 'tests']),
  
      install_requires=['requests', 'six', 'apscheduler', 'lxml', 'cssselect', 'bs4', 'html5lib', 'pandas',
                        'rqopen-client', 'tushare', 'pyyaml'],
  
      extras_require={
          'dev': [],
          'test': [],
      },
  
      package_data={
      },
  
      data_files=[(os.path.join(os.path.expanduser('~'), '.shipane_sdk', 'config'), [
          'config/scheduler-template.ini',
          'config/logging-template.ini',
      ])],
  
      scripts=['scripts/shipane-scheduler.py'],
  
      entry_points={
          'console_scripts': [
          ],
      },
  )
  
new_contents: # -*- coding: utf-8 -*-
  
  import os.path
  from codecs import open
  from os import path
  
  from setuptools import setup, find_packages
  from setuptools.command.install import install
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
      long_description = f.read()
  
  
  class CustomInstallCommand(install):
      def run(self):
          install.run(self)
          print("Installed ShiPanE-Python-SDK successfully")
  
  
  setup(
      name='shipane_sdk',
  
      version='1.1.0.a13',
  
      description=u'实盘易（ShiPanE）Python SDK，通达信自动化交易 API。',
      long_description=long_description,
  
      url='https://github.com/sinall/ShiPanE-Python-SDK',
  
      author='sinall',
      author_email='gaoruinan@163.com',
  
      license='MIT',
  
      classifiers=[
          'Development Status :: 3 - Alpha',
  
          'Intended Audience :: Developers',
          'Intended Audience :: Financial and Insurance Industry',
          'Topic :: Office/Business :: Financial :: Investment',
  
          'License :: OSI Approved :: MIT License',
  
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ],
  
      keywords='ShiPanE SDK 通达信 TDX Automation',
  
      packages=find_packages(exclude=['contrib', 'docs', 'tests']),
  
      install_requires=['requests', 'six', 'apscheduler', 'lxml', 'cssselect', 'bs4', 'html5lib', 'pandas',
                        'rqopen-client', 'tushare', 'pyyaml'],
  
      extras_require={
          'dev': [],
          'test': [],
      },
  
      package_data={
      },
  
      data_files=[(os.path.join(os.path.expanduser('~'), '.shipane_sdk', 'config'), [
          'config/scheduler-template.ini',
          'config/logging-template.ini',
      ])],
  
      scripts=['scripts/shipane-scheduler.py'],
  
      entry_points={
          'console_scripts': [
          ],
      },
  
      cmdclass={
          'install': CustomInstallCommand,
      },
  )
  
subject: Simplify setup process