Fix import test in unit tests, flake8 flag
This commit is contained in:
@@ -23,4 +23,4 @@ from pyngus.link import SenderLink, SenderEventHandler
|
||||
from pyngus.sockets import read_socket_input
|
||||
from pyngus.sockets import write_socket_output
|
||||
|
||||
VERSION = (1, 3, 1) # major, minor, fix
|
||||
VERSION = (1, 4, 0) # major, minor, fix
|
||||
|
||||
2
setup.py
2
setup.py
@@ -19,7 +19,7 @@
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
_VERSION = "1.3.1" # NOTE: update __init__.py too!
|
||||
_VERSION = "1.4.0rc1" # NOTE: update __init__.py too!
|
||||
|
||||
# I hack, therefore I am (productive) Some distros (which will not be named)
|
||||
# don't use setup.py to install the proton python module. In this case, pip
|
||||
|
||||
@@ -20,7 +20,13 @@
|
||||
import gc
|
||||
import time
|
||||
|
||||
from proton import VERSION_MAJOR, VERSION_MINOR
|
||||
try:
|
||||
from proton import VERSION_MAJOR, VERSION_MINOR
|
||||
except ImportError:
|
||||
# older proton did not export version info
|
||||
VERSION_MAJOR = 0
|
||||
VERSION_MINOR = 0
|
||||
|
||||
import pyngus
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user