Fixed nosetests run

This commit is contained in:
Thomas Goirand
2015-02-17 15:11:22 +00:00
parent f92f48d62f
commit ccd919d627
2 changed files with 31 additions and 3 deletions

25
debian/PKG-INFO vendored Normal file
View File

@@ -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

9
debian/rules vendored
View File

@@ -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