Anonymous avatar Anonymous committed cf3dcd7

1. update setup.py. 2. Fix bug 4, related to the use of urllib2.urlopen. Namely, allow any protocols urlopen supports and check if a file name withoud file: prefix is give. In the latter case prepend the file: as required.

Comments (0)

Files changed (2)

     """
     #open page - get a file like object and
     # parse it into xml
-    if url[:7] == "http://":
-        page_handler = urllib2.urlopen(url)
-    else:
-        page_handler = open(url, "r")
+    if url[0] == "/" or url.find(":") == -1: #file without file: in front
+        url = "file:"+url
+    page_handler = urllib2.urlopen(url)
     root = parse_qualified(page_handler, attr=attr)
     page_handler.close()
     del page_handler
 
 CLASSIFIERS = """\
 Development Status :: 5 - Production/Stable
+Environment :: Console
+Environment :: Web Environment
 Intended Audience :: Developers
-License :: LGPL
+Intended Audience :: End Users/Desktop
+License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
 Natural Language :: English
+Operating System :: OS Independent
 Programming Language :: Python
-Programming Language :: Python :: 2.4
-Programming Language :: Python :: 2.5
-Programming Language :: Python :: 2.6
-Programming Language :: Python :: 2.7
+Topic :: Internet
+Topic :: Internet :: WWW/HTTP
+Topic :: Software Development :: Libraries
 Topic :: Software Development :: Object Brokering""".split("\n")
 
-if sys.version_info >= (2, 6):
-    dateutil_version = '>=1.4,<2.0'
-else:
-    dateutil_version = '>=1.4,<1.5'
-
 setup(
     name='osa',
-    version='0.1',
-    author_email='boz@ipp.mpg.de',
-    description='osa is a fast/slim SOAP client.',
-    install_requires=['python-dateutil%s' % dateutil_version],
-    tests_require=['Sphinx>=1.0'],
-    packages=find_packages(),
+    version='0.1.6',
+    description='Python fast/slim/convenient SOAP/WSDL client.',
+    author="Sergey A. Bozhenkov",
+    author_email='ba-serge@yandex.ru',
+    url="https://bitbucket.org/sboz/osa",
+    packages=["osa",],
+    license="GPLv3",
     classifiers=CLASSIFIERS,
     )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.