text: import codecs
  import os
  import re
  
  from setuptools import setup, find_packages
  
  
  HERE = os.path.abspath(os.path.dirname(__file__))
  
  
  def read(*parts):  # Stolen from txacme
      with codecs.open(os.path.join(HERE, *parts), 'rb', 'utf-8') as f:
          return f.read()
  
  
  def get_version(package):
      """
      Return package version as listed in `__version__` in `init.py`.
      """
      init_py = open(os.path.join(package, '__init__.py')).read()
      return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
  
  
  version = get_version('seed_control_interface')
  
  
  setup(
      name="seed-control-interface",
      version=version,
      url='http://github.com/praekelt/seed-control-interface',
      license='BSD',
      description='Seed Scheduler mircoservice',
      long_description=read('README.rst'),
      author='Praekelt.org',
      author_email='dev@praekelt.org',
      packages=find_packages(),
      include_package_data=True,
      install_requires=[
          'Django==2.2.8',
          'dj-database-url==0.3.0',
          'psycopg2==2.7.1',
          'raven==5.32.0',
          'whitenoise==2.0.6',
          'pytz==2015.7',
          'python-dateutil==2.5.3',
          'django-bootstrap-form==3.2.1',
          'seed-services-client==0.37.2',
          'openpyxl==2.4.0',
          'attrs==19.1.0',
          'django-bootstrap-datepicker==1.2.2',
          'URLObject>=2.4.3,<3.0',
      ],
      classifiers=[
          'Development Status :: 4 - Beta',
          'Framework :: Django',
          'License :: OSI Approved :: BSD License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Topic :: Software Development :: Libraries :: Python Modules',
      ],
  )
  