-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
40 lines (36 loc) · 1.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='pdfcompare',
version='1.0',
description='Compare two PDF files',
author='Jürgen Weigert',
author_email='[email protected]',
url='https://github.com/jnweiger/pdfcompare',
scripts=['pdfcompare.py', 'imgcmp.py'],
license='GPL-2.0',
classifiers=[
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Environment :: Console',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
cmdclass={'test': PyTest},
long_description="".join(open('README.txt').readlines()),
tests_require=['pytest', 'scipy'],
packages=['pyPdf','reportlab.pdfgen','reportlab.lib.colors','pygame.font' ],
#
)