#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  Copyright (c) 2018 genkosta
#
#  django-editor-ymaps is free software under terms of the MIT License.
#

import os
import re
from setuptools import setup, find_packages


def read(*parts):
    file_path = os.path.join(os.path.dirname(__file__), *parts)
    with open(file_path, encoding='utf-8') as target_file:
        result = target_file.read()
    return result


def find_version(*parts):
    version_file = read(*parts)
    version_match = re.search(
        r'''^__version__ = ['"]([^'"]*)['"]''', version_file, re.M)
    if version_match:
        return str(version_match.group(1))
    raise RuntimeError('Unable to find version string.')


def get_readme(file_path):
    with open(file_path, encoding='utf-8') as readme_file:
        result = readme_file.read()
    return result


setup(
    name='django-editor-ymaps',
    version=find_version('yandex_maps', '__init__.py'),
    packages=find_packages(),
    include_package_data=True,
    requires=['python (>= 3.6)', 'django (>= 2.1)'],
    description='Creating and editing Yandex maps.',
    long_description=get_readme('README.rst'),
    author='genkosta',
    author_email='genkosta43@gmail.com',
    url='https://github.com/genkosta/django-editor-ymaps',
    download_url='https://github.com/genkosta/django-editor-ymaps/tarball/master',
    license='MIT License',
    keywords='django editor ymaps yandex maps',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
    ],
    install_requires=[
        'Pillow==5.2.0',
        'django-imagekit==4.0.2',
        'python-slugify==1.2.6',
        'django-smart-selects==1.5.4',
        'django-ckeditor==5.6.1',
    ],
)

@@ -61,17 +61,17 @@
  (c) 201
-8
+4
  genkost
@@ -153,28 +153,8 @@
 %0A#%0A%0A
-import os%0Aimport re%0A
 from
@@ -175,15 +175,8 @@
 port
- setup,
  fin
@@ -189,486 +189,15 @@
 ages
-%0A%0A%0Adef read(*parts):%0A    file_path = os.path.join(os.path.dirname(__file__), *parts)%0A    with open(file_path, encoding='utf-8') as target_file:%0A        result = target_file.read()%0A    return result%0A%0A%0Adef find_version(*parts):%0A    version_file = read(*parts)%0A    version_match = re.search(%0A        r'''%5E__version__ = %5B'%22%5D(%5B%5E'%22%5D*)%5B'%22%5D''', version_file, re.M)%0A    if version_match:%0A        return str(version_match.group(1))%0A    raise RuntimeError('Unable to find version string.')
+, setup
 %0A%0A%0Ad
@@ -249,26 +249,8 @@
 path
-, encoding='utf-8'
 ) as
@@ -374,50 +374,18 @@
 ion=
-find_version('yandex_maps', '__init__.py')
+'1.0 beta'
 ,%0A  
@@ -490,17 +490,17 @@
 o (%3E= 2.
-1
+0
 )'%5D,%0A   
@@ -854,32 +854,29 @@
 ngo 
-editor ymaps yandex maps
+yandex map maps djeym
 ',%0A 
@@ -1142,24 +1142,73 @@
 on :: 3.6',%0A
+        'Programming Language :: Python :: 3.7',%0A
     %5D,%0A    i
@@ -1238,21 +1238,32 @@
    '
-Pillow==5.2.0
+Django',%0A        'Pillow
 ',%0A 
@@ -1289,15 +1289,8 @@
 ekit
-==4.0.2
 ',%0A 
@@ -1315,15 +1315,51 @@
 gify
-==1.2.6
+',%0A        'django-ckeditor',%0A        'lxml
 ',%0A 
@@ -1392,17 +1392,17 @@
 ts==1.5.
-4
+3
 ',%0A     
@@ -1416,25 +1416,15 @@
 ngo-
-ckeditor==5.6.1',
+ipware'
 %0A   

Update setup.py