
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    def finalize_options(self):
        super().finalize_options()
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


requires = [
    'PyYAML >= 3.11, < 5.0',
    'click >= 7.0, < 8.0',
    'flask >= 1.0, < 2.0',
    'markdown >= 3.0, < 4.0',
    'plotly >= 3.0, < 4.0',
    'blessings >= 1.7, < 2.0',
    'elsa >= 0.1.5, < 1.0',
    'networkx >= 2.2, < 3.0',
    'python-bugzilla >= 2.5, < 3.0',
]

tests_require = ['pytest']

setup_args = dict(
    name='portingdb',
    version='0.1',
    packages=['portingdb'],
    url='https://github.com/fedora-python/portingdb',

    description="""Database of packages that need Python 3 porting""",
    author='Petr Viktorin',
    author_email='pviktori@redhat.com',
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],

    install_requires=requires,

    tests_require=tests_require,
    cmdclass={'test': PyTest},

)


if __name__ == '__main__':
    setup(**setup_args)

@@ -424,16 +424,16 @@
  %3E= 
-7
+8
 .0, %3C 
-8
+9
 .0',
@@ -451,16 +451,16 @@
  %3E= 
-1
+2
 .0, %3C 
-2
+3
 .0',
@@ -501,32 +501,32 @@
  'plotly %3E= 
-3
+5
 .0, %3C 
-4
+6
 .0',%0A    'bl
@@ -635,16 +635,16 @@
  %3E= 
-2.5
+3.0
 , %3C 
-3
+4
 .0',

Update dependencies