added types_pb2 proxy to abci module, thereby avoiding the ugly github.com imports

Signed-off-by: Juergen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Juergen Eckel 2019-10-05 01:18:51 +02:00
parent afc9fc7fea
commit e1b6c4b7b7
7 changed files with 7 additions and 8 deletions

View File

@ -9,7 +9,7 @@ import logging
import sys import sys
from abci.application import BaseApplication from abci.application import BaseApplication
from github.com.tendermint.tendermint.abci.types.types_pb2 import ( from abci import (
ResponseInitChain, ResponseInitChain,
ResponseInfo, ResponseInfo,
ResponseCheckTx, ResponseCheckTx,

View File

@ -5,7 +5,7 @@
import multiprocessing as mp import multiprocessing as mp
from collections import defaultdict from collections import defaultdict
from github.com.tendermint.tendermint.abci.types.types_pb2 import ResponseCheckTx, ResponseDeliverTx from abci import ResponseCheckTx, ResponseDeliverTx
from bigchaindb import BigchainDB, App from bigchaindb import BigchainDB, App
from bigchaindb.tendermint_utils import decode_transaction from bigchaindb.tendermint_utils import decode_transaction

View File

@ -2,8 +2,7 @@ import codecs
import base64 import base64
import binascii import binascii
from github.com.tendermint.tendermint.abci.types.types_pb2 import (ValidatorUpdate, from abci import (ValidatorUpdate, PubKey)
PubKey)
from bigchaindb.common.exceptions import InvalidPublicKey from bigchaindb.common.exceptions import InvalidPublicKey

View File

@ -85,7 +85,7 @@ install_requires = [
'jsonschema~=2.5.1', 'jsonschema~=2.5.1',
'pyyaml>=4.2b1', 'pyyaml>=4.2b1',
'aiohttp~=3.0', 'aiohttp~=3.0',
'bigchaindb-abci==0.7.0', 'bigchaindb-abci==0.7.1',
'setproctitle~=1.1.0', 'setproctitle~=1.1.0',
'packaging~=18.0', 'packaging~=18.0',
] ]

View File

@ -5,7 +5,7 @@
import pytest import pytest
import codecs import codecs
import github.com.tendermint.tendermint.abci.types.types_pb2 as types import abci as types
@pytest.fixture @pytest.fixture

View File

@ -6,7 +6,7 @@ import json
import pytest import pytest
import random import random
from github.com.tendermint.tendermint.abci.types.types_pb2 import ( from abci import (
PubKey, PubKey,
ResponseInitChain, ResponseInitChain,
RequestInitChain, RequestInitChain,

View File

@ -4,7 +4,7 @@
import codecs import codecs
import github.com.tendermint.tendermint.abci.types.types_pb2 as types import abci as types
import json import json
import pytest import pytest