Repository: QuickPay/quickpay-python-client

Issue:
Not available on PIP
Looks like this isn't really available on pip even though the readme file states so.

```
pip install quickpay-python-client

Collecting quickpay-python-client
  Could not find any downloads that satisfy the requirement quickpay-python-client
  No distributions at all found for quickpay-python-client
```

Also the readme file says to add "quickpay" to the requirements file, but says that the package name is quickpay-python-client

And neither of them works.

Discussion:

Patch:
diff --git a/README.md b/README.md
index e6b320f..c4a0949 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,11 @@ Installation
 
 Add to your `requirements.txt`
 
-    quickpay
+    quickpay-api-client
 
 or install via [pip](https://github.com/pypa/pip):
 
-    $ pip install quickpay-python-client
+    $ pip install quickpay-api-client
 
 It is currently tested with Python >= 2.5 and Python 3.
 
@@ -31,14 +31,14 @@ First you should create a client instance that is anonymous or authorized with a
 To initialise an anonymous client:
 
 ```
-from quickpay import QPClient
+from quickpay_api_client import QPClient
 client = QPClient()
 ```
 
 To initialise a client with QuickPay Api Key:
 
 ```
-from quickpay import QPClient
+from quickpay_api_client import QPClient
 secret = ":{0}".format(os.environ['QUICKPAY_API_KEY'])
 client = QPClient(secret)
 ```
@@ -46,7 +46,7 @@ client = QPClient(secret)
 Or you can provide login credentials like:
 
 ```
-from quickpay import QPClient
+from quickpay_api_client import QPClient
 secret= "{0}:{1}".format(os.environ['QUICKPAY_LOGIN'], os.environ['QUICKPAY_PASSWORD'])
 client = QPClient(secret)
 ```
@@ -81,7 +81,7 @@ By default (get|post|patch|put|delete) will return JSON parsed body on success (
 You can listen for any api error like:
 
 ```
-from quickpay.exceptions import ApiError
+from quickpay_api_client.exceptions import ApiError
 try:
     client.post('/payments', currency='DKK', order_id='1212')
     ...
diff --git a/quickpay/__init__.py b/quickpay_api_client/__init__.py
similarity index 100%
rename from quickpay/__init__.py
rename to quickpay_api_client/__init__.py
diff --git a/quickpay/api.py b/quickpay_api_client/api.py
similarity index 96%
rename from quickpay/api.py
rename to quickpay_api_client/api.py
index 1032900..a0a4777 100644
--- a/quickpay/api.py
+++ b/quickpay_api_client/api.py
@@ -7,8 +7,8 @@ import requests
 from requests.adapters import HTTPAdapter
 from requests.packages.urllib3.poolmanager import PoolManager
 
-from quickpay import exceptions
-import quickpay
+from quickpay_api_client import exceptions
+import quickpay_api_client
 
 
 class QPAdapter(HTTPAdapter):
@@ -49,7 +49,7 @@ class QPApi(object):
 
         headers = {
             "Accept-Version": 'v%s' % self.api_version,
-            "User-Agent": "quickpay-python-client, v%s" % quickpay.__version__
+            "User-Agent": "quickpay-python-client, v%s" % quickpay_api_client.__version__
         }
 
         if self.secret:
diff --git a/setup.py b/setup.py
index 3c9281c..e1faeb7 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ reqs = ['requests>=2.5']
 tests_requires = ['nose', 'httpretty', 'mock']
 
 version = ''
-with open('quickpay/__init__.py', 'r') as fd:
+with open('quickpay_api_client/__init__.py', 'r') as fd:
     version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(),
                         re.MULTILINE).group(1)
 
@@ -18,13 +18,13 @@ if not version:
     raise RuntimeError('Cannot find version information')
 
 setup(
-    name='quickpay',
+    name='quickpay-api-client',
     version=version,
     description='Python client for QuickPay API',
     author_email="support@quickpay.net",
     author="QuickPay Developers",
     url="https://github.com/QuickPay/quickpay-python-client",
-    packages=['quickpay'],
+    packages=['quickpay_api_client'],
     install_requires=reqs,
     tests_requires=tests_requires,
     test_suite='nose.collector')


Test patch:
diff --git a/quickpay/client.py b/quickpay_api_client/client.py
similarity index 100%
rename from quickpay/client.py
rename to quickpay_api_client/client.py
diff --git a/quickpay/exceptions.py b/quickpay_api_client/exceptions.py
similarity index 100%
rename from quickpay/exceptions.py
rename to quickpay_api_client/exceptions.py
diff --git a/quickpay/tests/__init__.py b/quickpay_api_client/tests/__init__.py
similarity index 100%
rename from quickpay/tests/__init__.py
rename to quickpay_api_client/tests/__init__.py
diff --git a/quickpay/tests/api_tests.py b/quickpay_api_client/tests/api_tests.py
similarity index 94%
rename from quickpay/tests/api_tests.py
rename to quickpay_api_client/tests/api_tests.py
index a82edff..4fdd36b 100644
--- a/quickpay/tests/api_tests.py
+++ b/quickpay_api_client/tests/api_tests.py
@@ -1,8 +1,8 @@
 import base64, json
 from nose.tools import assert_equal, assert_raises
 import requests
-from quickpay.api import QPApi
-from quickpay.exceptions import ApiError
+from quickpay_api_client.api import QPApi
+from quickpay_api_client.exceptions import ApiError
 import httpretty
 
 
diff --git a/quickpay/tests/client_tests.py b/quickpay_api_client/tests/client_tests.py
similarity index 93%
rename from quickpay/tests/client_tests.py
rename to quickpay_api_client/tests/client_tests.py
index 06eb4de..46d3e25 100644
--- a/quickpay/tests/client_tests.py
+++ b/quickpay_api_client/tests/client_tests.py
@@ -1,6 +1,6 @@
 from nose.tools import assert_equal, assert_raises
-from quickpay.api import QPApi
-from quickpay import QPClient
+from quickpay_api_client.api import QPApi
+from quickpay_api_client import QPClient
 from mock import MagicMock