text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  import os
  import sys
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  version = '0.2.0'
  
  if sys.argv[-1] == 'publish':
      try:
          import wheel
          print("Wheel version: ", wheel.__version__)
      except ImportError:
          print('Wheel library missing. Please run "pip install wheel"')
          sys.exit()
      os.system('python setup.py sdist upload')
      os.system('python setup.py bdist_wheel upload')
      sys.exit()
  
  if sys.argv[-1] == 'tag':
      print("Tagging the version on git:")
      os.system("git tag -a %s -m 'version %s'" % (version, version))
      os.system("git push --tags")
      sys.exit()
  
  readme = open('README.rst').read()
  history = open('HISTORY.rst').read().replace('.. :changelog:', '')
  
  setup(
      name='django-wordpress-api',
      version=version,
      description="""Easily Install your Wordpress blog in your Django project using wp rest API v1""",
      long_description=readme + '\n\n' + history,
      author='Swapps',
      author_email='dev@swapps.io',
      url='https://github.com/swappsco/django-wordpress-api',
      packages=[
          'wordpress_api',
      ],
      include_package_data=True,
      install_requires=[
          'requests==2.21.0',
          'iso8601==0.1.12',
          'six==1.14.0',
          'django>=1.11.20',
      ],
      license="MIT",
      zip_safe=False,
      keywords='django-wordpress-api',
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Framework :: Django',
          'Framework :: Django :: 1.11',
          'Framework :: Django :: 2.1',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Natural Language :: English',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
      ],
  )
  