Commit aa3643e9 authored by Michal Horejsek's avatar Michal Horejsek

Extra conch dependency of Twisted

parent 91c2f440
......@@ -16,12 +16,8 @@ all:
prepare-dev:
apt-get install -y python python-dev python-pip python3 python3-dev python3-pip sshpass
python2 -m pip install "twisted>=16.0"
python3 -m pip install "twisted>=16.6"
# Test dependencies
python2 -m pip install pylint pytest mock
python3 -m pip install pylint pytest
python2 -m pip install -e .[test]
python3 -m pip install -e .[test]
# Build dependencies
apt-get install -y ruby ruby-dev rubygems build-essential rpm
......
......@@ -11,6 +11,14 @@ except ImportError:
# has some bugs which are solved in 16.6.
TWISTED_VERSION = '16.0' if sys.version_info < (3, 0) else '16.6'
EXTRA_TEST_REQUIRE = [
'pylint',
'pytest',
]
if sys.version_info < (3, 0):
EXTRA_TEST_REQUIRE += ['mock']
setup(
name='haas-proxy',
version='1.0',
......@@ -18,8 +26,11 @@ setup(
scripts=['honeypot_proxy.py'],
install_requires=[
'twisted>={}'.format(TWISTED_VERSION),
'twisted[conch]>={}'.format(TWISTED_VERSION),
],
extras_require={
'test': EXTRA_TEST_REQUIRE,
},
url='https://haas.nic.cz',
author='CZ.NIC Labs',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment