Skip to content

Commit

Permalink
0.9.1-7 - fixed pip distribution for proper pre-requirement installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Simont3 committed Feb 27, 2015
1 parent 9a3bacd commit c83b7ec
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
34 changes: 17 additions & 17 deletions src/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ connections.

It's that easy:

::
::

>>> import hcpsdk
>>> import hcpsdk

>>> # initialize an *Authorization* object
>>> auth = hcpsdk.NativeAuthorization('user', 'password')
>>> # initialize an *Authorization* object
>>> auth = hcpsdk.NativeAuthorization('user', 'password')

>>> # initialize a *Target* object
>>> t = hcpsdk.Target("namespace.tenant.hcp.your.domain",
auth, port=443)
>>> # initialize a *Target* object
>>> t = hcpsdk.Target("namespace.tenant.hcp.your.domain",
auth, port=443)

>>> # initialize a Connection to the `Target``
>>> c = hcpsdk.Connection(t)
>>> # initialize a Connection to the `Target``
>>> c = hcpsdk.Connection(t)

>>> # do something with the connection...
>>> r = c.GET('/rest/your_file.txt')
>>> c.response_status, c.response_reason
(200, 'OK')
>>> r.read()
b'some data...'
>>>
>>> c.close()
>>> # do something with the connection...
>>> r = c.GET('/rest/your_file.txt')
>>> c.response_status, c.response_reason
(200, 'OK')
>>> r.read()
b'some data...'
>>>
>>> c.close()


Features
Expand Down
2 changes: 1 addition & 1 deletion src/hcpsdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _Version(object):
release = 0
major = 9
minor = 1
build = 6
build = 7

fullversion = '{}.{}.{}-{}'.format(release, major, minor, build)

Expand Down
4 changes: 2 additions & 2 deletions src/pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dnspython3
alabaster
dnspython3>=1.12.0
alabaster>=0.6.2

2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
install_requires=['dnspython3'],
install_requires = ['dnspython3>=1.12.0', 'alabaster>=0.6.2'],

# List additional groups of dependencies here (e.g. development dependencies).
# You can install these using the following syntax, for example:
Expand Down

0 comments on commit c83b7ec

Please sign in to comment.