Skip to content

Commit 22f6f53

Browse files
author
Morten Trydal
committed
Changes related to creating package
1 parent 2c5ab29 commit 22f6f53

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ python:
55
- "3.3"
66
- "3.4"
77
install: "pip install ."
8-
script: "python itcsmsgwclient/itcsmsgwtest.py"
8+
script: "python itcsmsgwclient/itcsmsgwclienttest.py"

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,20 @@ Travis: [![Build Status](https://travis-ci.org/Intelecom/smsgw-client-python.svg
44

55
## Pip package ##
66

7-
Not published yet.
8-
97
```
10-
pip install itcsmsgw
8+
pip install itcsmsgwclient
119
```
1210

1311
## Example usage ##
1412

1513
```python
16-
import itcsmsgw
14+
import itcsmsgwclient
1715

1816
// Initialize the client
19-
client = itcsmsgw.Client(baseAddress, serviceId, username, password)
17+
client = itcsmsgwclient.Client(baseAddress, serviceId, username, password)
2018

2119
// Single recipient, 0 NOK
22-
messages = [itcsmsgw.Message("+47XXXXXXXX", "This is a test")]
20+
messages = [itcsmsgwclient.Message("+47XXXXXXXX", "This is a test")]
2321

2422
response = client.send(messages)
2523
print(response)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import itcsmsgw
1+
import itcsmsgwclient
22
import requests
33
import requests_mock
44
import unittest
55

66
class ItcSmsGatewayTests(unittest.TestCase):
77
def create_client(self):
8-
return itcsmsgw.Client("https://www.dummy-address.com", 0, "", "")
8+
return itcsmsgwclient.Client("https://www.dummy-address.com", 0, "", "")
99

1010
def test_does_not_raise_exception_when_ok_gateway_response(self):
1111
with requests_mock.mock() as m:
@@ -22,7 +22,7 @@ def test_raises_exception_when_gateway_response_indicates_error(self):
2222
m.post("https://www.dummy-address.com/sendMessages", status_code=500)
2323

2424
client = self.create_client()
25-
with self.assertRaises(itcsmsgw.GatewayError):
25+
with self.assertRaises(itcsmsgwclient.GatewayError):
2626
response = client.send([])
2727

2828
if __name__ == '__main__':

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env python
22

3-
from distutils.core import setup
3+
from setuptools import setup
44

55
setup(name='itcsmsgwclient',
6-
version='1.0.0rc1',
6+
version='1.0.1',
77
description='Python client module for the Intelecom Group AS SMS gateway',
8-
author='Morten Trydal',
9-
author_email='morten.trydal@intele.com',
8+
author='Intelecom Group AS',
9+
author_email='support.interactive@intele.com',
1010
url='https://github.com/Intelecom/smsgw-client-python',
11-
py_modules=['itcsmsgwclient'],
11+
packages=['itcsmsgwclient'],
1212
license='MIT',
1313
install_requires=['jsonpickle', 'requests', 'requests-mock', 'six'],
1414
keywords='intelecom sms gateway',

0 commit comments

Comments
 (0)