Skip to content

Commit dea7bcf

Browse files
committed
feat: update sdk methods and dependencies
1. Adding new sdk methods and updating existing methods for v3 api. 2. Updating dependencies, including sdk core. Removed unnecessary dependencies. 3. Updated build steps. BREAKING CHANGE: Minimum supported python version The minimum supported python version is now 3.7. Signed-off-by: Subin Shekhar <[email protected]>
1 parent 7d6abbb commit dea7bcf

21 files changed

+3768
-1048
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ coverage.xml
4848
.vscode
4949

5050
# virtual env
51-
venv/
51+
venv*/
52+
5253
# python 3 virtual env
5354
python3/
5455

@@ -73,3 +74,8 @@ test/__init__.py
7374
.openapi-generator-ignore
7475
/.pydevproject
7576
/.settings/
77+
78+
# files produced by "npm install" commands during build
79+
package.json
80+
package-lock.json
81+
node_modules/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.pylintrc

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ suggestion-mode=yes
3232

3333
# Only show warnings with the listed confidence levels. Leave empty to show
3434
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
35-
confidence=
35+
confidence=HIGH
3636

3737
# Disable the message, report, category or checker with the given id(s). You
3838
# can either give multiple identifiers separated by comma (,) or put this
@@ -49,18 +49,10 @@ disable=too-many-arguments,
4949
too-many-instance-attributes,
5050
too-many-locals,
5151
too-many-branches,
52-
bad-continuation,
52+
too-many-lines,
53+
line-too-long,
5354
similarities,
54-
print-statement,
55-
parameter-unpacking,
56-
unpacking-in-except,
57-
old-raise-syntax,
58-
backtick,
59-
long-suffix,
60-
old-ne-operator,
61-
old-octal-literal,
62-
import-star-module-level,
63-
non-ascii-bytes-literal,
55+
import-error,
6456
raw-checker-failed,
6557
bad-inline-option,
6658
locally-disabled,
@@ -69,68 +61,7 @@ disable=too-many-arguments,
6961
useless-suppression,
7062
deprecated-pragma,
7163
use-symbolic-message-instead,
72-
apply-builtin,
73-
basestring-builtin,
74-
buffer-builtin,
75-
cmp-builtin,
76-
coerce-builtin,
77-
execfile-builtin,
78-
file-builtin,
79-
long-builtin,
80-
raw_input-builtin,
81-
reduce-builtin,
82-
standarderror-builtin,
83-
unicode-builtin,
84-
xrange-builtin,
85-
coerce-method,
86-
delslice-method,
87-
getslice-method,
88-
setslice-method,
89-
no-absolute-import,
90-
old-division,
91-
dict-iter-method,
92-
dict-view-method,
93-
next-method-called,
94-
metaclass-assignment,
95-
indexing-exception,
96-
raising-string,
97-
reload-builtin,
98-
oct-method,
99-
hex-method,
100-
nonzero-method,
101-
cmp-method,
102-
input-builtin,
103-
round-builtin,
104-
intern-builtin,
105-
unichr-builtin,
106-
map-builtin-not-iterating,
107-
zip-builtin-not-iterating,
108-
range-builtin-not-iterating,
109-
filter-builtin-not-iterating,
110-
using-cmp-argument,
111-
eq-without-hash,
112-
div-method,
113-
idiv-method,
114-
rdiv-method,
115-
exception-message-attribute,
116-
invalid-str-codec,
117-
sys-max-int,
118-
bad-python3-import,
119-
deprecated-string-function,
120-
deprecated-str-translate-call,
121-
deprecated-itertools-function,
122-
deprecated-types-field,
123-
next-method-defined,
124-
dict-items-not-iterating,
125-
dict-keys-not-iterating,
126-
dict-values-not-iterating,
127-
deprecated-operator-function,
128-
deprecated-urllib-function,
129-
xreadlines-attribute,
130-
deprecated-sys-function,
131-
exception-escape,
132-
comprehension-escape,
133-
invalid-name
64+
invalid-name
13465

13566
# Enable the message, report, category or checker with the given id(s). You can
13667
# either give multiple identifier separated by comma (,) or put this option
@@ -570,4 +501,4 @@ valid-metaclass-classmethod-first-arg=cls
570501
# Exceptions that will emit a warning when being caught. Defaults to
571502
# "BaseException, Exception".
572503
overgeneral-exceptions=BaseException,
573-
Exception
504+
Exception

.releaserc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[
1414
"@semantic-release/git",
1515
{
16+
"assets" : [ "CHANGELOG.md" ],
1617
"message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}"
1718
}
1819
],

.secrets.baseline

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"exclude": {
3+
"files": "^.secrets.baseline$",
4+
"lines": null
5+
},
6+
"generated_at": "2022-08-02T15:17:24Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"base64_limit": 4.5,
16+
"name": "Base64HighEntropyString"
17+
},
18+
{
19+
"name": "BasicAuthDetector"
20+
},
21+
{
22+
"name": "BoxDetector"
23+
},
24+
{
25+
"name": "CloudantDetector"
26+
},
27+
{
28+
"ghe_instance": "github.ibm.com",
29+
"name": "GheDetector"
30+
},
31+
{
32+
"hex_limit": 3,
33+
"name": "HexHighEntropyString"
34+
},
35+
{
36+
"name": "IbmCloudIamDetector"
37+
},
38+
{
39+
"name": "IbmCosHmacDetector"
40+
},
41+
{
42+
"name": "JwtTokenDetector"
43+
},
44+
{
45+
"keyword_exclude": null,
46+
"name": "KeywordDetector"
47+
},
48+
{
49+
"name": "MailchimpDetector"
50+
},
51+
{
52+
"name": "PrivateKeyDetector"
53+
},
54+
{
55+
"name": "SlackDetector"
56+
},
57+
{
58+
"name": "SoftlayerDetector"
59+
},
60+
{
61+
"name": "StripeDetector"
62+
},
63+
{
64+
"name": "TwilioKeyDetector"
65+
}
66+
],
67+
"results": {},
68+
"version": "0.13.1+ibm.50.dss",
69+
"word_list": {
70+
"file": null,
71+
"hash": null
72+
}
73+
}

.travis.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
language: python
1+
dist: bionic
22

3-
dist: xenial
3+
language: python
44

55
cache: pip
66

@@ -9,26 +9,23 @@ notifications:
99

1010
matrix:
1111
include:
12-
- python: 3.6
1312
- python: 3.7
1413
- python: 3.8
1514
- python: 3.9
15+
- python: 3.10
1616

17-
before_install:
18-
- npm install npm@latest -g
17+
install:
1918
- sudo apt-get update
2019
- sudo apt-get install pandoc
2120
- pip install pypandoc
22-
# - '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'
23-
24-
install:
25-
- pip install tox-travis
21+
- pip install setuptools=="60.8.2"
2622

27-
script: tox
23+
script:
24+
- make ci
2825

2926
before_deploy:
3027
- pip install bump2version
31-
- nvm install 12
28+
- nvm install 14
3229
- npm install @semantic-release/changelog
3330
- npm install @semantic-release/exec
3431
- npm install @semantic-release/git
@@ -39,7 +36,7 @@ deploy:
3936
script: npx semantic-release
4037
skip_cleanup: true
4138
on:
42-
python: '3.6'
39+
python: '3.7'
4340
branch: master
4441
- provider: pypi
4542
user: __token__
@@ -48,5 +45,5 @@ deploy:
4845
repository: https://upload.pypi.org/legacy
4946
skip_cleanup: true
5047
on:
51-
python: '3.6'
48+
python: '3.7'
5249
tags: true

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
include requirements.txt requirements-dev.txt
1+
include requirements.txt
2+
include requirements-dev.txt
3+
include LICENSE

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This makefile is used to make it easier to get the project set up
2+
# to be ready for development work in the local sandbox.
3+
# example: "make setup"
4+
5+
setup: deps dev_deps install_project
6+
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+
14+
deps:
15+
python -m pip install -r requirements.txt
16+
17+
dev_deps:
18+
python -m pip install -r requirements-dev.txt
19+
20+
install_project:
21+
python -m pip install -e .
22+
23+
test: test-unit test-int
24+
25+
test-unit:
26+
python -m pytest --cov=iaesdk test/unit
27+
28+
test-int:
29+
python -m pytest test/integration
30+
31+
test-examples:
32+
python -m pytest examples
33+
34+
lint:
35+
./pylint.sh

appscan-config.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Configuration>
2+
<Targets>
3+
<Target path=".">
4+
<Exclude>test/</Exclude>
5+
</Target>
6+
</Targets>
7+
</Configuration>

0 commit comments

Comments
 (0)