import json
from setuptools import setup, find_packages

with open('devilry/version.json') as versionfile:
    version = json.load(versionfile)


setup(
    name="devilry",
    version=version,
    url='http://devilry.org',
    license='BSD',
    zip_safe=False,
    author=('Tor Johansen, Espen Angell Kristiansen, Bendik Opstad, Vegard Angell, '
            'Magne Westlie, Ilya Kostolomov, Christian Tryti, Rebekka M\u00F8rken, Stian Julseth'),
    author_email='devilry-contact@googlegroups.com',
    include_package_data=True,
    description="A system for handling electronic deliveries. See https://github.com/devilry/devilry-django.",
    packages=find_packages(exclude=["devilry_rest"]),
    install_requires=[
        'setuptools',
        'pyyaml==5.4.*',
        'Markdown==2.6.*',
        'Pygments==2.7.*',
        'flup==1.0.*',
        'gunicorn==19.9.*',
        'django-crispy-forms==1.10.*',
        'openpyxl==1.6.*',
        'django==3.2.*',
        'URLObject==2.4.*',
        'mimeparse==0.1.*',
        'numpy==1.19.*',
        'anyjson==0.3.*',
        'rq==1.8.*',
        'django-rq==2.4.*',
        'redis==3.5.*',
        'python-dateutil==2.8.*',
        'pytz==2018.9.*',
        'httplib2>=0.19.0<1.0.0',
        'dj-static==0.0.*',
        'dj-database-url==0.3.*',
        'html5lib==0.9999999',
        'psycopg2==2.8.*',
        'django_cradmin>=9.0.0,<10.0.0',
        'cradmin_legacy>=4.0.0,<5.0.0',
        'ievv_opensource>=8.0.0,<9.0.0',
        'xlsxwriter==1.1.*',
        'arrow==0.12.*',
        'detektor==1.1.0-beta.012',
        'html2text==2018.1.*',
        'djangorestframework==3.12.*',
        # For django-allauth
        'django-allauth>=0.44.*',
        'certifi==2017.11.*',
        'chardet==3.0.*',
        'idna==2.6.*',
        'oauthlib==2.0.*',
        'python-openid==2.2.*',
        'requests==2.19.*',
        'requests-oauthlib==0.8.*',
        'urllib3==1.22.*',
        'pycountry==17.9.*',
        'six==1.15.*'
    ]
)

@@ -1420,17 +1420,17 @@
 cy%3E=4.0.
-0
+1
 ,%3C5.0.0'

Update cradmin legacy version