From ccd919d6276a8eceb5da96a410bd929b555bb180 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 17 Feb 2015 15:11:22 +0000 Subject: [PATCH] Fixed nosetests run --- debian/PKG-INFO | 25 +++++++++++++++++++++++++ debian/rules | 9 ++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 debian/PKG-INFO diff --git a/debian/PKG-INFO b/debian/PKG-INFO new file mode 100644 index 0000000..a889bf9 --- /dev/null +++ b/debian/PKG-INFO @@ -0,0 +1,25 @@ +Metadata-Version: 1.0 +Name: kafka-python +Version: 0.9.3 +Summary: Pure Python client for Apache Kafka +Home-page: https://github.com/mumrah/kafka-python +Author: David Arthur +Author-email: mumrah@gmail.com +License: Apache License 2.0 +Description: + This module provides low-level protocol support for Apache Kafka as well as + high-level consumer and producer classes. Request batching is supported by the + protocol as well as broker-aware request routing. Gzip and Snappy compression + is also supported for message sets. + +Keywords: apache kafka +Platform: UNKNOWN +Classifier: Development Status :: 4 - Beta +Classifier: Intended Audience :: Developers +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.6 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Topic :: Software Development :: Libraries :: Python Modules diff --git a/debian/rules b/debian/rules index 14707f3..234b78f 100755 --- a/debian/rules +++ b/debian/rules @@ -22,9 +22,12 @@ override_dh_install: override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + mkdir -p kafka_python.egg-info + cp debian/PKG-INFO kafka_python.egg-info ln -s kafka kafka-python - PYTHON=python2.7 PYTHONPATH=. nosetests --with-timer --timer-top-n 10 --with-coverage --cover-erase --cover-package kafka - PYTHON=python3 PYTHONPATH=. nosetests3 + PYTHON=python2.7 PYTHONPATH=. nosetests -v --with-timer --timer-top-n 5 + PYTHON=python3 PYTHONPATH=. nosetests3 -v --with-timer --timer-top-n 5 + rm -rf kafka_python.egg-info # set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \ # PYTHON=python$$pyvers setup.py test ; \ # done @@ -32,7 +35,7 @@ endif override_dh_clean: dh_clean -O--buildsystem=python_distutils - rm -rf build kafka-python .coverage + rm -rf build kafka-python .coverage kafka_python.egg-info override_dh_sphinxdoc: sphinx-build -b html docs debian/python-kafka-doc/usr/share/doc/python-kafka-doc/html