old_contents: # coding=utf-8
  import os
  import codecs
  from setuptools import setup, find_packages
  from setuptools.command.install import install
  from bgmi import __version__, __author__, __email__
  
  with open('requirements.txt', 'r') as f:
      requirements = f.read().splitlines()
  
  
  ROOT = os.path.abspath(os.path.dirname(__file__))
  
  
  def long_description():
      with codecs.open('README.rst', 'r') as f:
          return f.read()
  
  
  setup(
      name='bgmi',
      version=__version__,
      author=__author__,
      author_email=__email__,
      keywords='bangumi, bgmi, feed',
      description='BGmi is a cli tool for subscribed bangumi.',
      long_description=long_description(),
      url='https://github.com/RicterZ/BGmi',
      download_url='https://github.com/RicterZ/BGmi/tarball/master',
  
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=requirements,
      entry_points={
          'console_scripts': [
              'bgmi = bgmi.main:setup',
              'bgmi_http = bgmi.front.http:main'
          ]
      },
      license='MIT',
  )
  
new_contents: # coding=utf-8
  import os
  import codecs
  from setuptools import setup, find_packages
  from setuptools.command.install import install
  from bgmi import __version__, __author__, __email__
  
  with open('requirements.txt', 'r') as f:
      requirements = f.read().splitlines()
  
  
  ROOT = os.path.abspath(os.path.dirname(__file__))
  
  
  def long_description():
      with codecs.open('README.rst', 'rb') as f:
          return str(f.read())
  
  
  setup(
      name='bgmi',
      version=__version__,
      author=__author__,
      author_email=__email__,
      keywords='bangumi, bgmi, feed',
      description='BGmi is a cli tool for subscribed bangumi.',
      long_description=long_description(),
      url='https://github.com/RicterZ/BGmi',
      download_url='https://github.com/RicterZ/BGmi/tarball/master',
  
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=requirements,
      entry_points={
          'console_scripts': [
              'bgmi = bgmi.main:setup',
              'bgmi_http = bgmi.front.http:main'
          ]
      },
      license='MIT',
  )
  
subject: fix bug when install on windows