提交 1aced4f1 编写于 作者: J James Myatt

(test) Run unit tests using pytest

Signed-off-by: NJames Myatt <james@jamesmyatt.co.uk>
上级 6d0f5bcb
sudo: false
language: python
python:
- 3.6
- 3.5
- 3.4
- 2.7
install:
- echo No requirements
script:
- make test
sudo: false
language: python
python:
- 3.6
- 3.5
- 3.4
- 2.7
install:
- pip install --disable-pip-version-check --upgrade pip
- pip install -r requirements.txt
before_script:
- python ./setup.py develop
script:
- py.test
- make -C test test
......@@ -9,7 +9,6 @@ all :
install : all
python ./setup.py install --root=${DESTDIR}
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
......@@ -32,6 +31,7 @@ clean-test: ## remove test and coverage artifacts
rm -fr htmlcov/
test :
python setup.py test
$(MAKE) -C test test
upload : test
......
[aliases]
test=pytest
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
import sys
sys.path.insert(0, 'src')
from paho.mqtt import __version__
......@@ -11,7 +11,8 @@ with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = []
test_requirements = []
test_requirements = ['pytest']
setup_requirements = ['pytest-runner']
setup(
name='paho-mqtt',
......@@ -47,5 +48,6 @@ setup(
'Topic :: Internet',
],
test_suite='tests',
tests_require=test_requirements
tests_require=test_requirements,
setup_requires=setup_requirements
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册