diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-12 22:32:47 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-12 22:43:36 +0100 |
commit | 2416450498a418bd6daf9f8bac255a47064079e6 (patch) | |
tree | 7fc51a851a60c8613e5625c7df1dfcfdc49228e4 /setup.py | |
parent | 9f4254aad67783926ae8dc74a0b0ad2d528dd0f1 (diff) | |
download | gg_scraper-2416450498a418bd6daf9f8bac255a47064079e6.tar.gz |
Make python 2.7 default again and clean up.0.9.0
Switch setup.py to use setuptools.
Fixes #1, fixes #2
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 29 |
1 files changed, 4 insertions, 25 deletions
@@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import sys -from distutils.core import setup, Command +from setuptools import setup import io try: import unittest2 as unittest @@ -11,26 +11,6 @@ except ImportError: import gg_scraper -class RunTests(Command): - """New setup.py command to run all tests for the package. - """ - description = "run all tests for the package" - - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - tests = unittest.TestLoader().discover('test') - runner = unittest.TextTestRunner(verbosity=2) - res = runner.run(tests) - sys.exit(int(not res.wasSuccessful())) - - classifiers = [ 'Development Status :: 3 - Alpha', 'Operating System :: OS Independent', @@ -58,7 +38,6 @@ setup(name='gg_scraper', keywords=['email', 'Google Groups', 'scrap', 'backup'], license='GNU GPL', classifiers=classifiers, - cmdclass={ - 'test': RunTests, - }, - requires=['beautifulsoup4', 'PyYAML']) + test_suite="test", + requires=['beautifulsoup4', 'PyYAML'] +) |