Skip to content

Commit cf97a39

Browse files
Sdk update 20230125 144807 (#4)
* synced with latest python template * added missing npmrc * prepared v2 update of the python SDK * feat(build): added v2 integration tests * feat(test): added v2 integration tests * adjusted python version * fix(build) fixed linter warnings * fix(build): adjusted travis config to trigger semantic release on push to main * fix(build): adjusted semantic-release config (#5) * feat(build): release v1 (#6) BREAKING CHANGE: marks v1.0.0 of this repository * Update version 0.1.0 -> 1.0.0 * chore(release): 1.0.0 release notes # [1.0.0](https://github.ibm.com/coligo/python-sdk/compare/v0.1.0...v1.0.0) (2023-01-21) ### Features * **build:** release v1 ([#6](https://github.ibm.com/coligo/python-sdk/issues/6)) ([160b7d1](https://github.ibm.com/coligo/python-sdk/commit/160b7d1ac4855a0eb7e6c534c2acb500fa65695f)) ### BREAKING CHANGES * **build:** marks v1.0.0 of this repository * feat(ci): ready for v2 (#7) BREAKING CHANGE: v2.0.0 * Update version 1.0.0 -> 2.0.0 * chore(release): 2.0.0 release notes # [2.0.0](https://github.ibm.com/coligo/python-sdk/compare/v1.0.0...v2.0.0) (2023-01-24) ### Features * **ci:** ready for v2 ([#7](https://github.ibm.com/coligo/python-sdk/issues/7)) ([b5eea13](https://github.ibm.com/coligo/python-sdk/commit/b5eea1399e835a3b913add7687e05ed376e87031)) ### BREAKING CHANGES * **ci:** v2.0.0 * fix(ci): added encrypted pypi deploy key (#8) * Update version 2.0.0 -> 2.0.1 * chore(release): 2.0.1 release notes ## [2.0.1](https://github.ibm.com/coligo/python-sdk/compare/v2.0.0...v2.0.1) (2023-01-25) ### Bug Fixes * **ci:** added encrypted pypi deploy key ([#8](https://github.ibm.com/coligo/python-sdk/issues/8)) ([729d82b](https://github.ibm.com/coligo/python-sdk/commit/729d82b3fb1bf8e0b550041451d05a3c1d78f80d)) * SDK update 20230125-144807 Co-authored-by: semantic-release-bot <[email protected]>
1 parent 178dbd0 commit cf97a39

29 files changed

+16865
-510
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,10 @@ swagger.json
7676
/.pydevproject
7777

7878
/.settings/
79+
80+
# files produced by "npm install" commands during build
81+
package-lock.json
82+
node_modules/
83+
84+
# ignore the generated integration test files, as they cannot be used without manual editing
85+
integration/test_code_engine_v2.py

.releaserc

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis.yml

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
os: linux
1+
dist: bionic
2+
23
language: python
3-
dist: xenial
4+
45
cache: pip
56

67
# Only run on main (still tests PRs)
@@ -13,49 +14,28 @@ notifications:
1314

1415
matrix:
1516
include:
16-
- python: 3.6
17-
- python: 3.7
18-
- python: 3.8
17+
- python: '3.7'
18+
- python: '3.8'
19+
- python: '3.9'
20+
- python: '3.10'
1921

20-
before_install:
21-
- npm install npm@latest -g
22+
install:
2223
- sudo apt-get update
2324
- sudo apt-get install pandoc
2425
- pip install pypandoc
25-
# - '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'
26-
27-
install:
28-
- pip install tox-travis
29-
- pip install -r requirements.txt
30-
- pip install -r requirements-dev.txt
31-
- pip install .
32-
- python setup.py build
26+
- echo -e "machine github.ibm.com\n login $GITHUB_OAUTH_TOKEN" > ~/.netrc
27+
- pip install setuptools=="60.8.2"
3328

3429
script:
35-
- tox
36-
- pytest test
37-
- ./test-integration.sh
38-
39-
before_deploy:
40-
- pip install bump2version
41-
- nvm install 12
42-
- npm install @semantic-release/changelog
43-
- npm install @semantic-release/exec
44-
- npm install @semantic-release/git
45-
- npm install @semantic-release/github
30+
- make ci
4631

4732
deploy:
48-
- provider: script
49-
script: npx semantic-release
50-
skip_cleanup: true
51-
on:
52-
python: '3.6'
53-
branch: main
5433
- provider: pypi
5534
user: __token__
56-
password: $PYPI_TOKEN
35+
password:
36+
secure: lUZvqL7OY4b6JsZ3w8lbRzx3e1xPGdCaV2eXTZ/fTy+soRWSe8PayK8YkC9oNa9SuNDpJ1n2w24sq24O2KMsjhw7mpJHLPOR9Yj2hVlWL1GSvAT3huI0j4PnBc6LAGXqtFBF2YYr4mIFNV5Zx8WJ0GOT4JNZIaH7M1HrnK224aOkUFNaZXP/a0bwBI9uWFKPLbRoggoYtKU1z7SM18+OINSZOSPzHIyl6ng41pdEWLsdkP+3zt29+LbARMIsocOJ6tLXeM6Dn8G5IxZ9pvJk+royo4MTIKJ1k7QN5s2x19mZoM6SrC/loxSfAFjgypxRDlXK43OWOMRrKnfj7RVl5fW3TIi1RoAq6T6ciC8Yv80ZUr6tIMcBWGkpi7Pbfsc1Z9toYeoGwdc8VSgnl97+Oj8M4WsT03Wc9/Gnlr0MGG1jzUoCH58HjK0ATIP1r5g+KBSHWyJtksonnPXk/JepQQPxDCa6zB2vZz7MnAXTc3hg+6rWpxjy+RpIkmLq2pt5gJZhUnOafLaTsLiCvrD7K6/8wa2FfViK4105y7mVGy6k9Dgnb6HqhWQPdHGkbDiBZMi6NkNYMe3LuJ6Qkd0mKt3VHpJDLU5RRxF1WO9FaX832ER37u9+JCoJnbu4BevMWlkdVNJxqC+vN5yxgNU73/txYMwr52kRJXtcMt1PKMw=
5737
repository: https://upload.pypi.org/legacy
5838
skip_cleanup: true
5939
on:
60-
python: '3.6'
61-
tags: true
40+
python: '3.10'
41+
tags: true

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at phil_adams@us.ibm.com. All
58+
reported by contacting the project team at devxsdk@us.ibm.com. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

Makefile

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,35 @@
44

55
setup: deps dev_deps install_project
66

7+
all: upgrade_pip setup test-unit lint
8+
9+
ci: setup test-unit lint
10+
11+
upgrade_pip:
12+
python -m pip install --upgrade pip
13+
714
deps:
8-
pip install -r requirements.txt
15+
python -m pip install -r requirements.txt
916

1017
dev_deps:
11-
pip install -r requirements-dev.txt
18+
python -m pip install -r requirements-dev.txt
1219

1320
install_project:
14-
pip install -e .
21+
python -m pip install -e .
22+
23+
test: test-unit test-int
24+
25+
test-unit:
26+
python -m pytest --cov=ibm_code_engine_sdk test/unit
27+
28+
test-int:
29+
python -m pytest test/integration
30+
31+
test-examples:
32+
python -m pytest example
33+
34+
lint:
35+
./pylint.sh && black --check .
36+
37+
lint-fix:
38+
black .

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
<!--
33
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
44
-->
5-
# Python SDK for IBM Cloud Code Engine 0.1.0
5+
# Python SDK for IBM Cloud Code Engine 2.0.1
66

77
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
88

9-
Disclaimer: this SDK is being released initially as a **pre-release** version.
10-
Changes might occur which impact applications that use this SDK.
11-
129
## Table of Contents
1310

1411
<!--
@@ -42,28 +39,29 @@ IBM Cloud services:
4239

4340
Service Name | Imported Class Name
4441
--- | ---
45-
[IBM Cloud Code Engine](https://cloud.ibm.com/apidocs/codeengine) | IbmCloudCodeEngineV1
42+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.1) | CodeEngineV2
43+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.1) | IbmCloudCodeEngineV1
4644

4745
## Prerequisites
4846

4947
[ibm-cloud-onboarding]: https://cloud.ibm.com/registration
5048

5149
* An [IBM Cloud][ibm-cloud-onboarding] account.
5250
* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys).
53-
* Python 3.6 or above.
51+
* Python 3.7 or above.
5452

5553
## Installation
5654

5755
To install, use `pip` or `easy_install`:
5856

5957
```bash
60-
pip install --upgrade "ibm_code_engine_sdk>=0.1.0"
58+
pip install --upgrade "ibm_code_engine_sdk>=2.0.1"
6159
```
6260

6361
or
6462

6563
```bash
66-
easy_install --upgrade "ibm_code_engine_sdk>=0.1.0"
64+
easy_install --upgrade "ibm_code_engine_sdk>=2.0.1"
6765
```
6866

6967
## Using the SDK

example/README.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

example/example.py

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)