from setuptools import find_packages, setup

with open('README.md') as f:
    long_description = f.read()

RESOURCES = [
    'res/misc/slurm.sh.inc', "res/sql/func.compare_region_wise2.sql",
    "res/sql/func.experiments.sql", "res/sql/func.recompilation.sql",
    "res/sql/func.run_regions.sql", "res/sql/func.total_dyncov_clean.sql",
    "res/sql/func.total_speedup.sql", "res/sql/func.compare_region_wise.sql",
    "res/sql/func.project_region_time.sql", "res/sql/func.run_durations.sql",
    "res/sql/func.speedup.sql", "res/sql/func.total_dyncov.sql",
    "res/sql/func.pj-test-eval.sql", "res/sql/func.compilestats_eval.sql",
    "res/sql/func.polly_mse.sql", "res/sql/func.profileScopDetection-eval.sql",
    "res/wrapping/run_compiler.py.inc", "res/wrapping/run_static.py.inc",
    "res/wrapping/run_dynamic.py.inc", "res/patches/linpack.patch"
]

setup(
    name='benchbuild',
    use_scm_version=True,
    url='https://github.com/PolyJIT/benchbuild',
    packages=find_packages(
        exclude=[
            "docs", "extern", "filters", "linker", "src", "statistics", "tests",
            "results"
        ]
    ),
    package_data={"benchbuild": RESOURCES},
    include_package_data=True,
    setup_requires=["pytest-runner", "setuptools_scm"],
    install_requires=[
        "Jinja2>=2.10,<4.0", "PyYAML>=5.1,<7.0", "attrs>=19.3,<23.0", "dill~=0.3",
        "pathos~=0.2", "parse~=1.14", "plumbum~=1.6", "psutil~=5.6",
        "psycopg2-binary~=2.8", "pygit2>=1.2.1,<1.11.0", "pygtrie~=2.3",
        "pyparsing>=2.4,<4.0", "rich>=6.1,<13.0", "sqlalchemy-migrate~=0.13",
        "typing-extensions>=3.7.4.3,<4.3.1.0", "virtualenv>=16.7,<21.0",
        "schema~=0.7.4"
    ],
    author="Andreas Simbuerger",
    author_email="simbuerg@fim.uni-passau.de",
    description="This is the experiment driver for the benchbuild study",
    long_description=long_description,
    long_description_content_type='text/markdown',
    license="MIT",
    entry_points={
        'console_scripts': [
            'benchbuild=benchbuild.driver:main',
            'container=benchbuild.container:main'
        ]
    },
    classifiers=[
        'Development Status :: 4 - Beta', 'Intended Audience :: Developers',
        'Topic :: Software Development :: Testing',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3'
    ],
    keywords="benchbuild experiments run-time"
)

@@ -1347,29 +1347,31 @@
 .0%22,
+%0A       
  %22dill
-~
+=
 =0.3
+.4
 %22,
-%0A       
  %22pa
@@ -1412,16 +1412,24 @@
 m~=1.6%22,
+%0A       
  %22psutil
@@ -1431,32 +1431,24 @@
 sutil~=5.6%22,
-%0A       
  %22psycopg2-b
@@ -1484,16 +1484,24 @@
 1.11.0%22,
+%0A       
  %22pygtri
@@ -1508,24 +1508,16 @@
 e~=2.3%22,
-%0A       
  %22pypars
@@ -1550,16 +1550,24 @@
 ,%3C13.0%22,
+%0A       
  %22sqlalc
@@ -1586,24 +1586,16 @@
 ~=0.13%22,
-%0A       
  %22typing
@@ -1625,16 +1625,24 @@
 .3.1.0%22,
+%0A       
  %22virtua
@@ -1659,24 +1659,16 @@
 ,%3C21.0%22,
-%0A       
  %22schema

add missing dill version restriction to setup.py