Skip to content

Commit

Permalink
Merge pull request #9 from cedadev/devel
Browse files Browse the repository at this point in the history
0.4.1 release
  • Loading branch information
philipkershaw committed Jun 7, 2016
2 parents 496ac81 + cd5349e commit 0ee675b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .pydevproject
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">ndg-https-client-py3.4</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.0</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/ndg_httpsclient</path>
Expand Down
26 changes: 15 additions & 11 deletions README.md
@@ -1,13 +1,17 @@
A HTTPS client implementation for httplib and urllib2 based on
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the
default provided with Python and importantly enables full verification of the
SSL peer.
A HTTPS client implementation for
* ``httplib`` (Python 2), ``http.client`` (Python 3) and
* ``urllib2`` (Python 2) and ``urllib`` (Python 3)

... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
over the default provided with Python and importantly enables full verification
of the SSL peer using ``pyasn1``.

Releases
========
0.4.1
-----
* Added explicit ref to Python 3 in classifier text for Python 3 checking tools.
* Moved LICENSE file into package

0.4.0
-----
Expand All @@ -30,13 +34,13 @@ Releases

0.3.1
-----
* extended utils functions to support keyword for passing additional urllib2
* extended utils functions to support keyword for passing additional ``urllib2``
handlers.

0.3.0
-----
* Added ndg.httpsclient.utils.fetch_stream_from_url function and added
parameter for data to post in open_url and fetch_* methods.
* Added ``ndg.httpsclient.utils.fetch_stream_from_url`` function and added
parameter for data to post in ``open_url`` and ``fetch_*`` methods.
* fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions

0.2.0
Expand All @@ -50,10 +54,10 @@ Initial release

Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14.
Version 0.4.0 tested with pyOpenSSL 0.15.1 and Python 2.7 and 3.4. Note that proxy support
is only available from Python 2.6.2 onwards. pyasn1 is required for correct SSL
verification with subjectAltNames.
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.

Installation
============
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ndg/httpsclient/utils.py
Expand Up @@ -188,8 +188,8 @@ def open_url(url, config, data=None, handlers=None):
# currently only supports http basic auth
auth_handler = HTTPBasicAuthHandler_(HTTPPasswordMgrWithDefaultRealm_())
auth_handler.add_password(realm=None, uri=url,
user=config.httpauth[0],
passwd=config.httpauth[1])
user=config.http_basicauth[0],
passwd=config.http_basicauth[1])
handlers.append(auth_handler)


Expand Down
31 changes: 18 additions & 13 deletions setup.py
Expand Up @@ -8,16 +8,20 @@
NAMESPACE_PKGS = ['ndg']

_long_description = '''
This is a HTTPS client implementation for httplib and urllib2 based on
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the
default provided with Python and importantly enables full verification of the
SSL peer.
A HTTPS client implementation for
* ``httplib`` (Python 2), ``http.client`` (Python 3) and
* ``urllib2`` (Python 2) and ``urllib`` (Python 3)
... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
over the default provided with Python and importantly enables full verification
of the SSL peer using ``pyasn1``.
Releases
========
0.4.1
-----
* Added explicit ref to Python 3 in classifier text for Python 3 checking tools.
* Moved LICENSE file into package
0.4.0
-----
Expand All @@ -40,13 +44,13 @@
0.3.1
-----
* extended utils functions to support keyword for passing additional urllib2
* extended utils functions to support keyword for passing additional ``urllib2``
handlers.
0.3.0
-----
* Added ndg.httpsclient.utils.fetch_stream_from_url function and added
parameter for data to post in open_url and fetch_* methods.
* Added ``ndg.httpsclient.utils.fetch_stream_from_url`` function and added
parameter for data to post in ``open_url`` and ``fetch_*`` methods.
* fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions
0.2.0
Expand All @@ -60,10 +64,10 @@
Prerequisites
=============
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14.
Version 0.4.0 tested with pyOpenSSL 0.15.1 and Python 2.7 and 3.4. Note that proxy support
is only available from Python 2.6.2 onwards. pyasn1 is required for correct SSL
verification with subjectAltNames.
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.
Installation
============
Expand Down Expand Up @@ -115,12 +119,13 @@
author_email='Philip.Kershaw@stfc.ac.uk',
url='https://github.com/cedadev/ndg_httpsclient/',
long_description=_long_description,
license='BSD - See LICENCE file for details',
license='BSD - See ndg/httpsclient/LICENCE file for details',
packages=find_packages(),
namespace_packages=NAMESPACE_PKGS,
# package_dir={'ndg.httpsclient': 'ndg/httpsclient'},
package_data={
'ndg.httpsclient': [
'LICENSE',
'test/README',
'test/scripts/*.sh',
'test/pki/localhost.*',
Expand All @@ -130,7 +135,7 @@
install_requires=['PyOpenSSL'],
extras_require={'subjectAltName_support': 'pyasn1'},
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
Expand Down

0 comments on commit 0ee675b

Please sign in to comment.