From 3d0970c250bc9c71569b14b1918b9301e7f4f5d5 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Fri, 17 Mar 2017 23:15:16 +0100
Subject: [PATCH] nosetests -> python setup.py nosetests1

---
 .travis.yml | 4 +---
 setup.cfg   | 5 +++++
 setup.py    | 4 ++--
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 69a03b8..2fa26c4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,10 +7,8 @@ python:
  - "pypy"
 cache: pip
 script:
- - nosetests --with-coverage
+ - python setup.py nosetests
 install:
- - pip install coverage
- - pip install codeclimate-test-reporter
  - pip install -r requirements.txt
 after_success:
  - CODECLIMATE_REPO_TOKEN=e8e05973a6c49139de5f98013cd285f9238b78d20f053f37f6e7deeab2c2c52f codeclimate-test-reporter
diff --git a/setup.cfg b/setup.cfg
index cdd41f0..a223ae3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -6,3 +6,8 @@ max-line-length=120
 
 [bdist_wheel]
 universal=1
+
+[nosetests]
+verbosity=1
+detailed-errors=1
+with-coverage=1
diff --git a/setup.py b/setup.py
index 5771575..19bdec4 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(name=u'CoolAMQP',
       author=u'DMS Serwis s.c.',
       author_email=u'piotrm@smok.co',
       url=u'https://github.com/smok-serwis/coolamqp',
-      download_url='https://github.com/smok-serwis/coolamqp/archive/v0.91.zip',
+      download_url='https://github.com/smok-serwis/coolamqp/archive/v0.90.zip',
       keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availability'],
       packages=[
           'coolamqp',
@@ -26,7 +26,7 @@ setup(name=u'CoolAMQP',
 
 Also, handles your reconnects and transactionality THE RIGHT WAY''',
       requires=['six', 'monotonic', 'futures'],
-      tests_require=["nose"],
+      tests_require=["nose", 'coverage', 'codeclimate-test-reporter'],
       test_suite='nose.collector',
       classifiers=[
             'Programming Language :: Python',
-- 
GitLab