Skip to content

Commit

Permalink
feat: change python version
Browse files Browse the repository at this point in the history
  • Loading branch information
cowan-macady committed Jan 5, 2023
1 parent 29a6f7a commit f4effed
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
release-please:
name: Prepare Release notes
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- id: release-please
uses: maprokes/release-please-action@main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ permissions:
jobs:
release:
name: Release SDK to pypi repository
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
cache: "pipenv"

- name: Install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: pipx install pipenv
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
cache: "pipenv"
- name: Install project
run: pipenv install
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ authlib = "*"
grpcio-tools = "*"

[requires]
python_version = "3.8"
python_version = "3.11"
113 changes: 49 additions & 64 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 10 additions & 15 deletions indykite_sdk/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def main():

# CHANGE-PASSWORD-OF-USER (admin activity)
password_change_of_user = subparsers.add_parser("change-password-of-user")
password_change_of_user.add_argument("digital_twin_id", help="UUID4 ID of the digital twin for password change")
password_change_of_user.add_argument("tenant_id", help="UUID4 ID of the tenant")
password_change_of_user.add_argument("digital_twin_id", help="gid ID of the digital twin for password change")
password_change_of_user.add_argument("tenant_id", help="gid ID of the tenant")
password_change_of_user.add_argument("new_password", help="New password for the user in '' (single quotation mark)")

# GET-DT
get_dt = subparsers.add_parser("get-dt")
get_dt.add_argument("digital_twin_id", help="UUID4 ID of the digital twin for password change")
get_dt.add_argument("tenant_id", help="UUID4 ID of the tenant")
get_dt.add_argument("digital_twin_id", help="gid ID of the digital twin for password change")
get_dt.add_argument("tenant_id", help="gid ID of the tenant")
get_dt.add_argument("property_list", nargs="+", help="Array list of the required properties")

# GET-DT-BY-TOKEN
Expand All @@ -66,8 +66,8 @@ def main():

# PATCH-PROPERTIES
patch_properties = subparsers.add_parser("patch-properties")
patch_properties.add_argument("digital_twin_id", help="UUID4 ID of the digital twin for password change")
patch_properties.add_argument("tenant_id", help="UUID4 ID of the tenant")
patch_properties.add_argument("digital_twin_id", help="gid ID of the digital twin for password change")
patch_properties.add_argument("tenant_id", help="gid ID of the tenant")
patch_properties.add_argument("--add", nargs="+", help="Name and value of the property to add (--add email x@x.x)")
patch_properties.add_argument("--add_by_ref", nargs="+", help='''
Name and value of the property where the value is a reference
Expand Down Expand Up @@ -95,14 +95,14 @@ def main():

# START-DT-EMAIL-VERIFICATION
start_dt_email_verification = subparsers.add_parser("start-dt-email-verification")
start_dt_email_verification.add_argument("digital_twin", help="UUID4 of the digital twin")
start_dt_email_verification.add_argument("tenant_id", help="UUID4 of the tenant")
start_dt_email_verification.add_argument("digital_twin", help="gid of the digital twin")
start_dt_email_verification.add_argument("tenant_id", help="gid of the tenant")
start_dt_email_verification.add_argument("email", help="email address to validate")

# DELETE-USER (admin activity)
del_dt = subparsers.add_parser("del-dt")
del_dt.add_argument("digital_twin_id", help="UUID4 ID of the digital twin for password change")
del_dt.add_argument("tenant_id", help="UUID4 ID of the tenant")
del_dt.add_argument("digital_twin_id", help="gid ID of the digital twin for password change")
del_dt.add_argument("tenant_id", help="gid ID of the tenant")

# DELETE-USER-BY-TOKEN (self-service)
del_dt_by_token = subparsers.add_parser("del-dt-by-token")
Expand Down Expand Up @@ -306,11 +306,6 @@ def main():
delete_service_account_parser.add_argument("service_account_id", help="Service account Id")
delete_service_account_parser.add_argument("etag", nargs='?', help="Optional Etag")

# application_agent_credential
application_agent_credential_parser = subparsers.add_parser("application_agent_credential")
application_agent_credential_parser.add_argument("application_agent_credential_id",
help="Application agent credential id")

# register_service_account_credential_jwk
register_service_account_credential_jwk_parser = subparsers.add_parser(
"register_service_account_credential_jwk")
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.10
py-version=3.11

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
'google-cloud-storage',
'protobuf',
],
python_requires='~=3.8',
python_requires='~=3.11',
)

0 comments on commit f4effed

Please sign in to comment.