mirror of
https://github.com/httpie/cli.git
synced 2025-06-27 04:51:28 +02:00
fix tests
This commit is contained in:
parent
db3016a602
commit
c1d5a4a109
@ -66,6 +66,7 @@ install:
|
|||||||
- |
|
- |
|
||||||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||||
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
|
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
|
||||||
|
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
||||||
brew update
|
brew update
|
||||||
if ! brew list --versions "$BREW_PYTHON_PACKAGE" >/dev/null; then
|
if ! brew list --versions "$BREW_PYTHON_PACKAGE" >/dev/null; then
|
||||||
brew install "$BREW_PYTHON_PACKAGE"
|
brew install "$BREW_PYTHON_PACKAGE"
|
||||||
|
@ -6,5 +6,4 @@ pytest-httpbin>=0.0.6
|
|||||||
docutils
|
docutils
|
||||||
wheel
|
wheel
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pyOpenSSL
|
twine
|
||||||
twine
|
|
||||||
|
4
setup.py
4
setup.py
@ -7,6 +7,7 @@ from setuptools import setup, find_packages
|
|||||||
from setuptools.command.test import test as TestCommand
|
from setuptools.command.test import test as TestCommand
|
||||||
|
|
||||||
import httpie
|
import httpie
|
||||||
|
from httpie.compat import is_py27
|
||||||
|
|
||||||
|
|
||||||
class PyTest(TestCommand):
|
class PyTest(TestCommand):
|
||||||
@ -33,6 +34,9 @@ tests_require = [
|
|||||||
'mock',
|
'mock',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if is_py27:
|
||||||
|
tests_require.append('pyOpenSSL')
|
||||||
|
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'requests>=2.21.0',
|
'requests>=2.21.0',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user