Skip to content

Commit

Permalink
Merge pull request #379 from suzil/bump/py36
Browse files Browse the repository at this point in the history
Bump to Python 3.6 + 3.7
  • Loading branch information
sibiryakov authored Oct 25, 2019
2 parents 068f169 + ebb4d32 commit b98accd
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ docs/_build/

# PyBuilder
target/

# Virtualenv
.env/
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ matrix:
- mysql
- postgresql
- redis-server
- python: 3.6
env: TOXENV=py36
services:
- docker
- mysql
- postgresql
- redis-server
- python: 3.7
env: TOXENV=py37
services:
- docker
- mysql
- postgresql
- redis-server

install:
- pip install -U tox wheel codecov
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ $ pip install frontera

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


4 changes: 2 additions & 2 deletions frontera/contrib/backends/hbase/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import absolute_import
from happybase import Batch

from thriftpy.transport import TTransportException
from thriftpy2.transport import TTransportException
import logging


Expand All @@ -19,4 +19,4 @@ def send(self):
self.logger.exception("Exception happened during batch persistence")
self.logger.warning("Cleaning up the batch")
self._reset_mutations()
pass
pass
1 change: 1 addition & 0 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
flaky
pytest>=2.6.4
PyMySQL>=0.6.3
psycopg2>=2.5.4
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
Expand Down Expand Up @@ -61,7 +63,8 @@
'tldextract>=1.5.1',
],
'hbase': [
'happybase>=1.0.0'
'happybase>=1.0.0',
'thriftpy2'
],
'zeromq': [
'pyzmq',
Expand Down Expand Up @@ -91,6 +94,7 @@
"psycopg2>=2.5.4",
"scrapy>=0.24",
"tldextract>=1.5.1",
'thriftpy2',
"SQLAlchemy>=1.0.0",
"cachetools",
"mock",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_message_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from frontera.contrib.messagebus.zeromq import MessageBus as ZeroMQMessageBus
from frontera.contrib.messagebus.kafkabus import MessageBus as KafkaMessageBus
from frontera.utils.fingerprint import sha1
from flaky import flaky
from kafka import KafkaClient
from random import randint
from time import sleep
Expand Down Expand Up @@ -234,6 +235,7 @@ def __init__(self):
super(IPv6MessageBusTester, self).__init__(settings)


@flaky
def test_zmq_message_bus():
"""
Test MessageBus with default settings, IPv6 and Star as ZMQ_ADDRESS
Expand Down

0 comments on commit b98accd

Please sign in to comment.