1 | from setuptools import setup, find_packages |
---|
2 | from setuptools.command.test import test as TestCommand |
---|
3 | import os |
---|
4 | import sys |
---|
5 | import multiprocessing # neccessary to keep setuptools quiet in tests |
---|
6 | |
---|
7 | version = '0.1dev' |
---|
8 | tests_path = os.path.join(os.path.dirname(__file__), 'src') |
---|
9 | class PyTest(TestCommand): |
---|
10 | def finalize_options(self): |
---|
11 | TestCommand.finalize_options(self) |
---|
12 | args = sys.argv[sys.argv.index('test')+1:] |
---|
13 | self.test_args = args |
---|
14 | self.test_suite = True |
---|
15 | def run_tests(self): |
---|
16 | #import here, cause outside the eggs aren't loaded |
---|
17 | import pytest |
---|
18 | errno = pytest.main(self.test_args) |
---|
19 | sys.exit(errno) |
---|
20 | |
---|
21 | setup(name='pyfprint', |
---|
22 | version=version, |
---|
23 | description="Python wrapper around libprintf.", |
---|
24 | long_description=open("README.rst").read() + "\n\n" + |
---|
25 | open("CHANGES.rst").read(), |
---|
26 | classifiers=[ |
---|
27 | "Development Status :: 3 - Alpha", |
---|
28 | "License :: OSI Approved :: GNU General Public License (GPL)", |
---|
29 | "Programming Language :: Python", |
---|
30 | "Programming Language :: Python :: 2 :: Only", |
---|
31 | "Programming Language :: Python :: 2.6", |
---|
32 | "Programming Language :: Python :: 2.7", |
---|
33 | "Operating System :: POSIX", |
---|
34 | "Topic :: Software Development :: Libraries :: Python Modules", |
---|
35 | ], |
---|
36 | keywords='fingerprint fprint libfprint', |
---|
37 | author='Uli Fouquet', |
---|
38 | author_email='uli at gnufix.de', |
---|
39 | url='http://pypi.python.org/pypi/pyfprint', |
---|
40 | license='GPL', |
---|
41 | packages=find_packages('src', exclude=['ez_setup']), |
---|
42 | package_dir = {'': 'src'}, |
---|
43 | #namespace_packages=['ulif', ], |
---|
44 | include_package_data=True, |
---|
45 | zip_safe=False, |
---|
46 | install_requires=[ |
---|
47 | 'setuptools', |
---|
48 | ], |
---|
49 | setup_requires=[], |
---|
50 | extras_require=dict( |
---|
51 | tests = [ |
---|
52 | 'pytest >= 2.0.3', |
---|
53 | 'pytest-xdist', |
---|
54 | 'pytest-cov', |
---|
55 | ], |
---|
56 | docs = ['Sphinx', |
---|
57 | ] |
---|
58 | ), |
---|
59 | cmdclass = {'test': PyTest}, |
---|
60 | entry_points=""" |
---|
61 | """, |
---|
62 | ) |
---|