Newer
Older
from setuptools.command.test import test as TestCommand
if sys.version_info < (3, 5):
print("diffoscope requires at least python 3.5", file=sys.stderr)
Mattia Rizzolo
committed
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
self.pytest_args = []
def finalize_options(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='diffoscope',
version=diffoscope.VERSION,
description='in-depth comparison of files, archives, and directories',
long_description=open('README.rst', encoding='utf-8').read(),
author='Lunar',
author_email='lunar@debian.org',
license='GPL-3+',
url='https://diffoscope.org/',
cmdclass={'test': PyTest},
'diffoscope=diffoscope.main:main'
],
},
install_requires=[
'python-magic',
'libarchive-c',
],
Mattia Rizzolo
committed
extras_require={
'distro_detection': ['distro'],
Mattia Rizzolo
committed
'cmdline': ['argcomplete', 'progressbar'],
'comparators': [
'binwalk',
'defusedxml',
'guestfs',
'jsondiff',
'python-debian',
'pypdf2',
Mattia Rizzolo
committed
'pyxattr',
'rpm-python',
'tlsh',
],
Mattia Rizzolo
committed
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',