Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84e93b9

Browse files
committed
Fix recursive dependencies in setup.py.
Thanks @msabramo (Marc Abramowitz) for the patch proposal.
1 parent fa5a697 commit 84e93b9

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
import zerorpc
25+
from zerorpc.version import __version__, __author__
2626

2727
try:
2828
from setuptools import setup
@@ -32,9 +32,9 @@
3232

3333
setup(
3434
name='zerorpc',
35-
version=zerorpc.__version__,
35+
version=__version__,
3636
description='zerorpc is a flexible RPC based on zeromq.',
37-
author=zerorpc.__author__,
37+
author=__author__,
3838
url='https://github.com/dotcloud/zerorpc-python',
3939
packages=['zerorpc'],
4040
install_requires=[

zerorpc/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
__title__ = 'zerorpc'
26-
__version__ = '0.1.0'
27-
__author__ = 'dotCloud, Inc.'
28-
__license__ = 'MIT'
29-
__copyright__ = 'Copyright 2012 dotCloud, Inc.'
30-
25+
from .version import *
3126
from .exceptions import *
3227
from .context import *
3328
from .socket import *

zerorpc/version.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
# Open Source Initiative OSI - The MIT License (MIT):Licensing
3+
#
4+
# The MIT License (MIT)
5+
# Copyright (c) 2012 DotCloud Inc ([email protected])
6+
#
7+
# Permission is hereby granted, free of charge, to any person obtaining a copy of
8+
# this software and associated documentation files (the "Software"), to deal in
9+
# the Software without restriction, including without limitation the rights to
10+
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
11+
# of the Software, and to permit persons to whom the Software is furnished to do
12+
# so, subject to the following conditions:
13+
#
14+
# The above copyright notice and this permission notice shall be included in all
15+
# copies or substantial portions of the Software.
16+
#
17+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
# SOFTWARE.
24+
25+
__title__ = 'zerorpc'
26+
__version__ = '0.1.0'
27+
__author__ = 'dotCloud, Inc.'
28+
__license__ = 'MIT'
29+
__copyright__ = 'Copyright 2012 dotCloud, Inc.'

0 commit comments

Comments
 (0)