File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 1717except ImportError :
1818 pass
1919
20-
2120def read (* parts ):
2221 filename = os .path .join (os .path .dirname (__file__ ), * parts )
2322 with codecs .open (filename , encoding = 'utf-8' ) as fp :
2423 return fp .read ()
2524
26-
2725def find_version (* file_paths ):
2826 version_file = read (* file_paths )
2927 version_match = re .search (r"^__version__ = ['\"]([^'\"]*)['\"]" ,
@@ -32,7 +30,6 @@ def find_version(*file_paths):
3230 return version_match .group (1 )
3331 raise RuntimeError ("Unable to find version string." )
3432
35-
3633setup (name = 'tarantool-queue' ,
3734 version = find_version ('tarantool_queue' , '__init__.py' ),
3835 description = 'Python bindings for Tarantool queue script (http://github.com/tarantool/queue)' ,
Original file line number Diff line number Diff line change 11__version__ = "0.1.2"
22
3- from tarantool_queue import Task , Tube , Queue
3+ from . tarantool_queue import Task , Tube , Queue
44__all__ = [Task , Tube , Queue , __version__ ]
You can’t perform that action at this time.
0 commit comments