mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Merge branch 'develop'
This commit is contained in:
commit
06fa1fcf33
5 changed files with 15 additions and 8 deletions
19
setup.py
19
setup.py
|
@ -37,6 +37,18 @@ CLASSIFIERS = [ 'Intended Audience :: Developers',
|
|||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
]
|
||||
|
||||
packages = [ 'sleekxmpp',
|
||||
'sleekxmpp/plugins',
|
||||
'sleekxmpp/stanza',
|
||||
'sleekxmpp/xmlstream',
|
||||
'sleekxmpp/xmlstream/matcher',
|
||||
'sleekxmpp/xmlstream/handler' ]
|
||||
|
||||
if sys.version_info < (3, 0):
|
||||
packages.append('sleekxmpp/xmlstream/tostring26')
|
||||
else:
|
||||
packages.append('sleekxmpp/xmlstream/tostring')
|
||||
|
||||
setup(
|
||||
name = "sleekxmpp",
|
||||
version = VERSION,
|
||||
|
@ -47,12 +59,7 @@ setup(
|
|||
url = 'http://code.google.com/p/sleekxmpp',
|
||||
license = 'GPLv2',
|
||||
platforms = [ 'any' ],
|
||||
packages = [ 'sleekxmpp',
|
||||
'sleekxmpp/plugins',
|
||||
'sleekxmpp/stanza',
|
||||
'sleekxmpp/xmlstream',
|
||||
'sleekxmpp/xmlstream/matcher',
|
||||
'sleekxmpp/xmlstream/handler' ],
|
||||
packages = packages,
|
||||
requires = [ 'tlslite', 'pythondns' ],
|
||||
)
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ class xep_0060(base.base_plugin):
|
|||
iq = self.xmpp.makeIqSet(pubsub)
|
||||
iq.attrib['to'] = jid
|
||||
iq.attrib['from'] = self.xmpp.fulljid
|
||||
id = iq.get('id')
|
||||
id = iq['id']
|
||||
result = self.xmpp.send(iq, "<iq id='%s'/>" % id)
|
||||
if result is False or result is None or result.get('type') == 'error': return False
|
||||
return True
|
||||
|
|
|
@ -13,7 +13,7 @@ class testoverall(unittest.TestCase):
|
|||
if sys.version_info < (3,0):
|
||||
self.failUnless(compileall.compile_dir('.' + os.sep + 'sleekxmpp', rx=re.compile('/[.]svn'), quiet=True))
|
||||
else:
|
||||
self.failUnless(compileall.compile_dir('.' + os.sep + 'sleekxmpp', rx=re.compile('/[.]svn|26.py'), quiet=True))
|
||||
self.failUnless(compileall.compile_dir('.' + os.sep + 'sleekxmpp', rx=re.compile('/[.]svn|.*26\Z'), quiet=True))
|
||||
|
||||
def testTabNanny(self):
|
||||
"""Invoking the tabnanny"""
|
||||
|
|
Loading…
Reference in a new issue