Skip to content

Commit b98accd

Browse files
authored
Merge pull request scrapinghub#379 from suzil/bump/py36
Bump to Python 3.6 + 3.7
2 parents 068f169 + ebb4d32 commit b98accd

File tree

7 files changed

+27
-5
lines changed

7 files changed

+27
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ docs/_build/
5353

5454
# PyBuilder
5555
target/
56+
57+
# Virtualenv
58+
.env/

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ matrix:
2828
- mysql
2929
- postgresql
3030
- redis-server
31+
- python: 3.6
32+
env: TOXENV=py36
33+
services:
34+
- docker
35+
- mysql
36+
- postgresql
37+
- redis-server
38+
- python: 3.7
39+
env: TOXENV=py37
40+
services:
41+
- docker
42+
- mysql
43+
- postgresql
44+
- redis-server
3145

3246
install:
3347
- pip install -U tox wheel codecov

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,3 @@ $ pip install frontera
4343

4444
Join our Google group at https://groups.google.com/a/scrapinghub.com/forum/#!forum/frontera or check GitHub issues and
4545
pull requests.
46-
47-

frontera/contrib/backends/hbase/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import
22
from happybase import Batch
33

4-
from thriftpy.transport import TTransportException
4+
from thriftpy2.transport import TTransportException
55
import logging
66

77

@@ -19,4 +19,4 @@ def send(self):
1919
self.logger.exception("Exception happened during batch persistence")
2020
self.logger.warning("Cleaning up the batch")
2121
self._reset_mutations()
22-
pass
22+
pass

requirements/tests.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
flaky
12
pytest>=2.6.4
23
PyMySQL>=0.6.3
34
psycopg2>=2.5.4

setup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
'Programming Language :: Python :: 3',
3535
'Programming Language :: Python :: 3.4',
3636
'Programming Language :: Python :: 3.5',
37+
'Programming Language :: Python :: 3.6',
38+
'Programming Language :: Python :: 3.7',
3739
'Topic :: Internet :: WWW/HTTP',
3840
'Topic :: Software Development :: Libraries :: Application Frameworks',
3941
'Topic :: Software Development :: Libraries :: Python Modules',
@@ -61,7 +63,8 @@
6163
'tldextract>=1.5.1',
6264
],
6365
'hbase': [
64-
'happybase>=1.0.0'
66+
'happybase>=1.0.0',
67+
'thriftpy2'
6568
],
6669
'zeromq': [
6770
'pyzmq',
@@ -91,6 +94,7 @@
9194
"psycopg2>=2.5.4",
9295
"scrapy>=0.24",
9396
"tldextract>=1.5.1",
97+
'thriftpy2',
9498
"SQLAlchemy>=1.0.0",
9599
"cachetools",
96100
"mock",

tests/test_message_bus.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from frontera.contrib.messagebus.zeromq import MessageBus as ZeroMQMessageBus
55
from frontera.contrib.messagebus.kafkabus import MessageBus as KafkaMessageBus
66
from frontera.utils.fingerprint import sha1
7+
from flaky import flaky
78
from kafka import KafkaClient
89
from random import randint
910
from time import sleep
@@ -234,6 +235,7 @@ def __init__(self):
234235
super(IPv6MessageBusTester, self).__init__(settings)
235236

236237

238+
@flaky
237239
def test_zmq_message_bus():
238240
"""
239241
Test MessageBus with default settings, IPv6 and Star as ZMQ_ADDRESS

0 commit comments

Comments
 (0)