Skip to content

Commit

Permalink
feat: update sdk methods and dependencies
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
subinpc committed Sep 6, 2022
1 parent 7d6abbb commit dea7bcf
Show file tree
Hide file tree
Showing 21 changed files with 3,768 additions and 1,048 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ coverage.xml
.vscode

# virtual env
venv/
venv*/

# python 3 virtual env
python3/

Expand All @@ -73,3 +74,8 @@ test/__init__.py
.openapi-generator-ignore
/.pydevproject
/.settings/

# files produced by "npm install" commands during build
package.json
package-lock.json
node_modules/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
81 changes: 6 additions & 75 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ suggestion-mode=yes

# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
confidence=
confidence=HIGH

# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
Expand All @@ -49,18 +49,10 @@ disable=too-many-arguments,
too-many-instance-attributes,
too-many-locals,
too-many-branches,
bad-continuation,
too-many-lines,
line-too-long,
similarities,
print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
import-error,
raw-checker-failed,
bad-inline-option,
locally-disabled,
Expand All @@ -69,68 +61,7 @@ disable=too-many-arguments,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
deprecated-operator-function,
deprecated-urllib-function,
xreadlines-attribute,
deprecated-sys-function,
exception-escape,
comprehension-escape,
invalid-name
invalid-name

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -570,4 +501,4 @@ valid-metaclass-classmethod-first-arg=cls
# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
Exception
1 change: 1 addition & 0 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[
"@semantic-release/git",
{
"assets" : [ "CHANGELOG.md" ],
"message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}"
}
],
Expand Down
73 changes: 73 additions & 0 deletions .secrets.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"exclude": {
"files": "^.secrets.baseline$",
"lines": null
},
"generated_at": "2022-08-02T15:17:24Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
},
{
"name": "ArtifactoryDetector"
},
{
"base64_limit": 4.5,
"name": "Base64HighEntropyString"
},
{
"name": "BasicAuthDetector"
},
{
"name": "BoxDetector"
},
{
"name": "CloudantDetector"
},
{
"ghe_instance": "github.ibm.com",
"name": "GheDetector"
},
{
"hex_limit": 3,
"name": "HexHighEntropyString"
},
{
"name": "IbmCloudIamDetector"
},
{
"name": "IbmCosHmacDetector"
},
{
"name": "JwtTokenDetector"
},
{
"keyword_exclude": null,
"name": "KeywordDetector"
},
{
"name": "MailchimpDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "SlackDetector"
},
{
"name": "SoftlayerDetector"
},
{
"name": "StripeDetector"
},
{
"name": "TwilioKeyDetector"
}
],
"results": {},
"version": "0.13.1+ibm.50.dss",
"word_list": {
"file": null,
"hash": null
}
}
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
dist: bionic

dist: xenial
language: python

cache: pip

Expand All @@ -9,26 +9,23 @@ notifications:

matrix:
include:
- python: 3.6
- python: 3.7
- python: 3.8
- python: 3.9
- python: 3.10

before_install:
- npm install npm@latest -g
install:
- sudo apt-get update
- sudo apt-get install pandoc
- pip install pypandoc
# - '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'

install:
- pip install tox-travis
- pip install setuptools=="60.8.2"

script: tox
script:
- make ci

before_deploy:
- pip install bump2version
- nvm install 12
- nvm install 14
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
Expand All @@ -39,7 +36,7 @@ deploy:
script: npx semantic-release
skip_cleanup: true
on:
python: '3.6'
python: '3.7'
branch: master
- provider: pypi
user: __token__
Expand All @@ -48,5 +45,5 @@ deploy:
repository: https://upload.pypi.org/legacy
skip_cleanup: true
on:
python: '3.6'
python: '3.7'
tags: true
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include requirements.txt requirements-dev.txt
include requirements.txt
include requirements-dev.txt
include LICENSE
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This makefile is used to make it easier to get the project set up
# to be ready for development work in the local sandbox.
# example: "make setup"

setup: deps dev_deps install_project

all: upgrade_pip setup test-unit lint

ci: setup test-unit lint

upgrade_pip:
python -m pip install --upgrade pip

deps:
python -m pip install -r requirements.txt

dev_deps:
python -m pip install -r requirements-dev.txt

install_project:
python -m pip install -e .

test: test-unit test-int

test-unit:
python -m pytest --cov=iaesdk test/unit

test-int:
python -m pytest test/integration

test-examples:
python -m pytest examples

lint:
./pylint.sh
7 changes: 7 additions & 0 deletions appscan-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Configuration>
<Targets>
<Target path=".">
<Exclude>test/</Exclude>
</Target>
</Targets>
</Configuration>
Loading

0 comments on commit dea7bcf

Please sign in to comment.