Skip to content

Commit f5dc0b8

Browse files
committed
chore(travis): Update travis and readme
1 parent 4ee04f3 commit f5dc0b8

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ deploy:
4141
python: '3.5'
4242
branch: master
4343
- provider: pypi
44-
user: ehdsouza
45-
password:
46-
secure: eMssjS1Airz5MrmcEDAnKYnTlMLuzinX8JFsh4TB0A4t7GCes2a/mlvcoazAv2QZMQUKQMC++bAXYGGgXtsSQsfOYnRtojW4pRphxOZrlXlWFgCLGz/eHioamNZVbH+/P/OYjbLy5ZKSzp3M3bZxYqHcmGTq0sBeo5A2Ilkzu5P+D865Jqtn52brwh/xYq4XWeJeQN/BSLwdtPEtZYQXhQupAteNDAo2ON0FVyt0amINrjA0Qw+0k35g36wti+CsKn5fhbaHf6jjN0oRj8J8wPZieXLAUMdxscfBjUXJ8AK8E4H/wPI30IsaMus+1r85ekiDKZC5iukO6uqMARFywjX/eTIDbWxwKImQUgvVa2+gncre7GvZrHIFxhIDDkssH1IfC1fcw3mNY4vCO9df/vHStp3Kvi27GvsYJnfsbXXj6fAhokHtsrnrbpXFET6LghGQx3HgOKrlCQ1EI0Fk92Qw7+g15jwMGlkwUE1qMS+PVOe7dQ4ikxJgw4CVrqU6/zaLFHV8LXFfjv166ZSWcOJHJXGgJ2TPuGiooL60+pWp/UYY00hZVlYX0Vlks6zN0h9zJd16kR3EwDrW0muqFnLC2xTuv5WsCjsOATtsTQzmBNEdCbGdOskgF4+0yPe7ps3kEs3UpAooKtYVh1OOJAUkl4vSMyu4Jg1ASyQWt00=
44+
user: watson-devex
45+
password: $PYPI_PASSWORD
4746
repository: https://upload.pypi.org/legacy
4847
skip_cleanup: true
4948
on:

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Python client library to quickly get started with the various [Watson APIs][wdc]
2121
* [Python version](#python-version)
2222
* [Changes for v1.0](#changes-for-v10)
2323
* [Changes for v2.0](#changes-for-v20)
24+
* [Changes for v3.0](#changes-for-v30)
2425
* [Migration](#migration)
2526
* [Configuring the http client](#configuring-the-http-client-supported-from-v110)
2627
* [Disable SSL certificate verification](#disable-ssl-certificate-verification)
@@ -40,21 +41,21 @@ Python client library to quickly get started with the various [Watson APIs][wdc]
4041
To install, use `pip` or `easy_install`:
4142

4243
```bash
43-
pip install --upgrade watson-developer-cloud
44+
pip install --upgrade ibm-watson
4445
```
4546

4647
or
4748

4849
```bash
49-
easy_install --upgrade watson-developer-cloud
50+
easy_install --upgrade ibm-watson
5051
```
5152

5253
Note the following:
5354

5455
a) If you run into permission issues try:
5556

5657
```bash
57-
sudo -H pip install --ignore-installed six watson-developer-cloud
58+
sudo -H pip install --ignore-installed six ibm-watson
5859
```
5960

6061
For more details see [#225](https://github.com/watson-developer-cloud/python-sdk/issues/225)
@@ -73,7 +74,7 @@ The [examples][examples] folder has basic and advanced examples. The examples wi
7374

7475
## Running in IBM Cloud
7576

76-
If you run your app in IBM Cloud, the SDK gets credentials from the [`VCAP_SERVICES`][vcap_services] environment variable.
77+
If you run your app in IBM Cloud, the SDK gets credentials from the [`VCAP_SERVICES`][vcap_services] environment variable.
7778

7879
## Authentication
7980

@@ -93,6 +94,9 @@ To find out which authentication to use, view the service credentials. You find
9394

9495
On this page, you should be able to see your credentials for accessing your service instance.
9596

97+
![alt text](https://cdn-images-1.medium.com/max/1600/1*DaTt56z0RaKlbyWDUaRJgQ.png)
98+
99+
96100
### Supplying credentials
97101

98102
There are two ways to supply the credentials you found above to the SDK for authentication.
@@ -142,14 +146,14 @@ You supply either an IAM service **API key** or an **access token**:
142146
# In the constructor, letting the SDK manage the IAM token
143147
discovery = DiscoveryV1(version='2018-08-01',
144148
url='<url_as_per_region>',
145-
iam_apikey='<iam_apikey>',
149+
apikey='<apikey>',
146150
iam_url='<iam_url>') # optional - the default value is https://iam.bluemix.net/identity/token
147151
```
148152

149153
```python
150154
# after instantiation, letting the SDK manage the IAM token
151155
discovery = DiscoveryV1(version='2018-08-01', url='<url_as_per_region>')
152-
discovery.set_iam_apikey('<iam_apikey>')
156+
discovery.set_apikey('<apikey>')
153157
```
154158

155159
#### Supplying the access token
@@ -204,6 +208,11 @@ print(response.get_status_code())
204208
```
205209
See the [changelog](https://github.com/watson-developer-cloud/python-sdk/wiki/Changelog) for the details.
206210

211+
## Changes for v3.0
212+
The SDK is generated using OpenAPI Specification(OAS3). Changes are basic reordering of parameters in function calls.
213+
214+
The package is renamed to ibm_watson. See the [changelog](https://github.com/watson-developer-cloud/python-sdk/wiki/Changelog) for the details.
215+
207216
## Migration
208217
This version includes many breaking changes as a result of standardizing behavior across the new generated services. Full details on migration from previous versions can be found [here](https://github.com/watson-developer-cloud/python-sdk/wiki/Migration).
209218

@@ -310,6 +319,7 @@ service.synthesize_using_websocket('I like to pet dogs',
310319
* [responses] for testing
311320
* Following for web sockets support in speech to text
312321
* `websocket-client` 0.48.0
322+
* `ibm_cloud_sdk_core` >=0.2.0
313323

314324
## Contributing
315325

0 commit comments

Comments
 (0)