Skip to content

Commit 0ee675b

Browse files
committed
Merge pull request #9 from cedadev/devel
0.4.1 release
2 parents 496ac81 + cd5349e commit 0ee675b

File tree

5 files changed

+36
-27
lines changed

5 files changed

+36
-27
lines changed

.pydevproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?eclipse-pydev version="1.0"?><pydev_project>
3-
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">ndg-https-client-py3.4</pydev_property>
3+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
44
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.0</pydev_property>
55
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
66
<path>/ndg_httpsclient</path>

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
A HTTPS client implementation for httplib and urllib2 based on
2-
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the
3-
default provided with Python and importantly enables full verification of the
4-
SSL peer.
1+
A HTTPS client implementation for
2+
* ``httplib`` (Python 2), ``http.client`` (Python 3) and
3+
* ``urllib2`` (Python 2) and ``urllib`` (Python 3)
4+
5+
... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
6+
over the default provided with Python and importantly enables full verification
7+
of the SSL peer using ``pyasn1``.
58

69
Releases
710
========
811
0.4.1
912
-----
1013
* Added explicit ref to Python 3 in classifier text for Python 3 checking tools.
14+
* Moved LICENSE file into package
1115

1216
0.4.0
1317
-----
@@ -30,13 +34,13 @@ Releases
3034

3135
0.3.1
3236
-----
33-
* extended utils functions to support keyword for passing additional urllib2
37+
* extended utils functions to support keyword for passing additional ``urllib2``
3438
handlers.
3539

3640
0.3.0
3741
-----
38-
* Added ndg.httpsclient.utils.fetch_stream_from_url function and added
39-
parameter for data to post in open_url and fetch_* methods.
42+
* Added ``ndg.httpsclient.utils.fetch_stream_from_url`` function and added
43+
parameter for data to post in ``open_url`` and ``fetch_*`` methods.
4044
* fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions
4145

4246
0.2.0
@@ -50,10 +54,10 @@ Initial release
5054

5155
Prerequisites
5256
=============
53-
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14.
54-
Version 0.4.0 tested with pyOpenSSL 0.15.1 and Python 2.7 and 3.4. Note that proxy support
55-
is only available from Python 2.6.2 onwards. pyasn1 is required for correct SSL
56-
verification with subjectAltNames.
57+
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
58+
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
59+
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
60+
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.
5761

5862
Installation
5963
============
File renamed without changes.

ndg/httpsclient/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def open_url(url, config, data=None, handlers=None):
188188
# currently only supports http basic auth
189189
auth_handler = HTTPBasicAuthHandler_(HTTPPasswordMgrWithDefaultRealm_())
190190
auth_handler.add_password(realm=None, uri=url,
191-
user=config.httpauth[0],
192-
passwd=config.httpauth[1])
191+
user=config.http_basicauth[0],
192+
passwd=config.http_basicauth[1])
193193
handlers.append(auth_handler)
194194

195195

setup.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
NAMESPACE_PKGS = ['ndg']
99

1010
_long_description = '''
11-
This is a HTTPS client implementation for httplib and urllib2 based on
12-
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation over the
13-
default provided with Python and importantly enables full verification of the
14-
SSL peer.
11+
A HTTPS client implementation for
12+
* ``httplib`` (Python 2), ``http.client`` (Python 3) and
13+
* ``urllib2`` (Python 2) and ``urllib`` (Python 3)
14+
15+
... based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
16+
over the default provided with Python and importantly enables full verification
17+
of the SSL peer using ``pyasn1``.
1518
1619
Releases
1720
========
1821
0.4.1
1922
-----
2023
* Added explicit ref to Python 3 in classifier text for Python 3 checking tools.
24+
* Moved LICENSE file into package
2125
2226
0.4.0
2327
-----
@@ -40,13 +44,13 @@
4044
4145
0.3.1
4246
-----
43-
* extended utils functions to support keyword for passing additional urllib2
47+
* extended utils functions to support keyword for passing additional ``urllib2``
4448
handlers.
4549
4650
0.3.0
4751
-----
48-
* Added ndg.httpsclient.utils.fetch_stream_from_url function and added
49-
parameter for data to post in open_url and fetch_* methods.
52+
* Added ``ndg.httpsclient.utils.fetch_stream_from_url`` function and added
53+
parameter for data to post in ``open_url`` and ``fetch_*`` methods.
5054
* fix to ndg.httpsclient.utils module _should_use_proxy and open_url functions
5155
5256
0.2.0
@@ -60,10 +64,10 @@
6064
6165
Prerequisites
6266
=============
63-
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13 and 0.14.
64-
Version 0.4.0 tested with pyOpenSSL 0.15.1 and Python 2.7 and 3.4. Note that proxy support
65-
is only available from Python 2.6.2 onwards. pyasn1 is required for correct SSL
66-
verification with subjectAltNames.
67+
This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL 0.13
68+
and 0.14. Version 0.4.0 tested with ``pyOpenSSL`` 0.15.1 and Python 2.7 and
69+
3.4. Note that proxy support is only available from Python 2.6.2 onwards.
70+
``pyasn1`` is required for correct SSL verification with ``subjectAltNames``.
6771
6872
Installation
6973
============
@@ -115,12 +119,13 @@
115119
author_email='[email protected]',
116120
url='https://github.com/cedadev/ndg_httpsclient/',
117121
long_description=_long_description,
118-
license='BSD - See LICENCE file for details',
122+
license='BSD - See ndg/httpsclient/LICENCE file for details',
119123
packages=find_packages(),
120124
namespace_packages=NAMESPACE_PKGS,
121125
# package_dir={'ndg.httpsclient': 'ndg/httpsclient'},
122126
package_data={
123127
'ndg.httpsclient': [
128+
'LICENSE',
124129
'test/README',
125130
'test/scripts/*.sh',
126131
'test/pki/localhost.*',
@@ -130,7 +135,7 @@
130135
install_requires=['PyOpenSSL'],
131136
extras_require={'subjectAltName_support': 'pyasn1'},
132137
classifiers=[
133-
'Development Status :: 3 - Alpha',
138+
'Development Status :: 5 - Production/Stable',
134139
'Environment :: Console',
135140
'Environment :: Web Environment',
136141
'Intended Audience :: End Users/Desktop',

0 commit comments

Comments
 (0)