use setuptools instead since it can use MANIFEST.in; also remove silly VERSION discov...
[mediagoblin-stock:mediagoblin-hidden_original.git] / setup.py
1 #!/usr/bin/env python
2 import pytest
3 from setuptools import setup, Command
4
5 class TestCommand(Command):
6     """Runs the test suite."""
7     description = """Runs the test suite."""
8     user_options = []
9     def initialize_options(self):
10         pass
11     def finalize_options(self):
12         pass
13     def run(self):
14         import pytest
15         pytest.main('./tests')
16
17 __VERSION__="0.1.3"
18 setup(
19     name='mediagoblin-hidden_original',
20     version=__VERSION__,
21     description='Hide original files, show only downsized ones.',
22     author='Kevin Brubeck Unhammer',
23     author_email='unhammer@fsfe.org',
24     url='https://gitorious.org/mediagoblin-stock/mediagoblin-hidden_original',
25     download_url='https://gitorious.org/mediagoblin-stock/mediagoblin-hidden_original/archive-tarball/mediagoblin-hidden_original-v' + __VERSION__,
26     packages=['mediagoblin_hidden_original'],
27     include_package_data=True,
28     license=(b'License :: OSI Approved :: GNU Affero General Public License '
29              b'v3 or later (AGPLv3+)'),
30     cmdclass={'test': TestCommand},
31 )