From 3added6a5396d69a3387b9c9102969f7e66cb504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jero=CC=81nimo=20Albi?= Date: Sun, 1 Mar 2020 12:27:01 +0100 Subject: [PATCH] Updates version to 2.0.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ kusanagi/__init__.py | 6 +++--- kusanagi/errors.py | 2 +- kusanagi/json.py | 2 +- kusanagi/logging.py | 2 +- kusanagi/middleware.py | 2 +- kusanagi/payload.py | 2 +- kusanagi/schema.py | 2 +- kusanagi/sdk/__init__.py | 2 +- kusanagi/sdk/action.py | 2 +- kusanagi/sdk/base.py | 2 +- kusanagi/sdk/component.py | 2 +- kusanagi/sdk/file.py | 2 +- kusanagi/sdk/http/request.py | 2 +- kusanagi/sdk/http/response.py | 2 +- kusanagi/sdk/middleware.py | 2 +- kusanagi/sdk/param.py | 2 +- kusanagi/sdk/request.py | 2 +- kusanagi/sdk/response.py | 2 +- kusanagi/sdk/runner.py | 2 +- kusanagi/sdk/schema/action.py | 2 +- kusanagi/sdk/schema/error.py | 2 +- kusanagi/sdk/schema/file.py | 2 +- kusanagi/sdk/schema/param.py | 2 +- kusanagi/sdk/schema/service.py | 2 +- kusanagi/sdk/service.py | 2 +- kusanagi/sdk/transport/__init__.py | 2 +- kusanagi/sdk/transport/call.py | 2 +- kusanagi/sdk/transport/data.py | 2 +- kusanagi/sdk/transport/error.py | 2 +- kusanagi/sdk/transport/link.py | 2 +- kusanagi/sdk/transport/relation.py | 2 +- kusanagi/sdk/transport/transaction.py | 2 +- kusanagi/serialization.py | 2 +- kusanagi/server.py | 2 +- kusanagi/service.py | 2 +- kusanagi/urn.py | 2 +- kusanagi/utils.py | 2 +- kusanagi/versions.py | 2 +- 39 files changed, 60 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33725f0..9cb354e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [2.0.0] - 2020-03-01 +### Fixed +- Fixes Param type resolution when no type is given +- Fixes broken tests +- Handle runtime call exceptions + +### Changed +- Adds more tests +- Changes runtime call to save the call into the transport after errors +- Adds `get_timeout()` to ActionSchema +- Adds `get_url_host()` method to HttpRequest +- Fixes `HttpResponse.set_header()` to match new specifications +- Adds flake8 config file +- Changes pylama settings to use github review line length +- Improves `Param.get_value()` +- Changes max line length to 119 to match Github's code review line length +- Update param constructor and add value fallback +- Add overwrite option +- Update language support + ## [1.0.1] - 2019-08-17 ### Fixed - Update value of default timeout diff --git a/kusanagi/__init__.py b/kusanagi/__init__.py index 85097bb..035a647 100644 --- a/kusanagi/__init__.py +++ b/kusanagi/__init__.py @@ -1,10 +1,10 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. __license__ = "MIT" -__copyright__ = "Copyright (c) 2016-2019 KUSANAGI S.L. (http://kusanagi.io)" -__version__ = '1.0.1' +__copyright__ = "Copyright (c) 2016-2020 KUSANAGI S.L. (http://kusanagi.io)" +__version__ = '2.0.0' diff --git a/kusanagi/errors.py b/kusanagi/errors.py index 5022ace..4c7e6f1 100644 --- a/kusanagi/errors.py +++ b/kusanagi/errors.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/json.py b/kusanagi/json.py index 366864d..cdf37df 100644 --- a/kusanagi/json.py +++ b/kusanagi/json.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/logging.py b/kusanagi/logging.py index 548c7a6..1812f7d 100644 --- a/kusanagi/logging.py +++ b/kusanagi/logging.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/middleware.py b/kusanagi/middleware.py index dc848db..a803e5e 100644 --- a/kusanagi/middleware.py +++ b/kusanagi/middleware.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/payload.py b/kusanagi/payload.py index d022214..b745bfa 100644 --- a/kusanagi/payload.py +++ b/kusanagi/payload.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/schema.py b/kusanagi/schema.py index 823d681..d193e5a 100644 --- a/kusanagi/schema.py +++ b/kusanagi/schema.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/__init__.py b/kusanagi/sdk/__init__.py index 6f76ba3..b1162d8 100644 --- a/kusanagi/sdk/__init__.py +++ b/kusanagi/sdk/__init__.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/action.py b/kusanagi/sdk/action.py index ef042e3..a184dcd 100644 --- a/kusanagi/sdk/action.py +++ b/kusanagi/sdk/action.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/base.py b/kusanagi/sdk/base.py index 8403f30..bad43a0 100644 --- a/kusanagi/sdk/base.py +++ b/kusanagi/sdk/base.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/component.py b/kusanagi/sdk/component.py index 278cb5a..494a1d5 100644 --- a/kusanagi/sdk/component.py +++ b/kusanagi/sdk/component.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/file.py b/kusanagi/sdk/file.py index c63f7db..c4232d5 100644 --- a/kusanagi/sdk/file.py +++ b/kusanagi/sdk/file.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/http/request.py b/kusanagi/sdk/http/request.py index 803ffc1..711419a 100644 --- a/kusanagi/sdk/http/request.py +++ b/kusanagi/sdk/http/request.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/http/response.py b/kusanagi/sdk/http/response.py index f5bddfd..4766cc8 100644 --- a/kusanagi/sdk/http/response.py +++ b/kusanagi/sdk/http/response.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/middleware.py b/kusanagi/sdk/middleware.py index ed28ba1..f03c161 100644 --- a/kusanagi/sdk/middleware.py +++ b/kusanagi/sdk/middleware.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/param.py b/kusanagi/sdk/param.py index 0a0d37a..90fce3f 100644 --- a/kusanagi/sdk/param.py +++ b/kusanagi/sdk/param.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/request.py b/kusanagi/sdk/request.py index 27ac6e2..5e435c4 100644 --- a/kusanagi/sdk/request.py +++ b/kusanagi/sdk/request.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/response.py b/kusanagi/sdk/response.py index 6227949..7f1b5d6 100644 --- a/kusanagi/sdk/response.py +++ b/kusanagi/sdk/response.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/runner.py b/kusanagi/sdk/runner.py index e6fc593..59c999d 100644 --- a/kusanagi/sdk/runner.py +++ b/kusanagi/sdk/runner.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/schema/action.py b/kusanagi/sdk/schema/action.py index 8881dec..84c3746 100644 --- a/kusanagi/sdk/schema/action.py +++ b/kusanagi/sdk/schema/action.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/schema/error.py b/kusanagi/sdk/schema/error.py index 26e190e..c8b360c 100644 --- a/kusanagi/sdk/schema/error.py +++ b/kusanagi/sdk/schema/error.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/schema/file.py b/kusanagi/sdk/schema/file.py index 66d69d2..f8fe0ad 100644 --- a/kusanagi/sdk/schema/file.py +++ b/kusanagi/sdk/schema/file.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/schema/param.py b/kusanagi/sdk/schema/param.py index c7b5b1f..484caa9 100644 --- a/kusanagi/sdk/schema/param.py +++ b/kusanagi/sdk/schema/param.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/schema/service.py b/kusanagi/sdk/schema/service.py index 6e12154..b31f433 100644 --- a/kusanagi/sdk/schema/service.py +++ b/kusanagi/sdk/schema/service.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/service.py b/kusanagi/sdk/service.py index aa652b5..2417d25 100644 --- a/kusanagi/sdk/service.py +++ b/kusanagi/sdk/service.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/__init__.py b/kusanagi/sdk/transport/__init__.py index 1448496..29a803b 100644 --- a/kusanagi/sdk/transport/__init__.py +++ b/kusanagi/sdk/transport/__init__.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/call.py b/kusanagi/sdk/transport/call.py index 1cba6b3..3b45357 100644 --- a/kusanagi/sdk/transport/call.py +++ b/kusanagi/sdk/transport/call.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/data.py b/kusanagi/sdk/transport/data.py index 17468f7..f777882 100644 --- a/kusanagi/sdk/transport/data.py +++ b/kusanagi/sdk/transport/data.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/error.py b/kusanagi/sdk/transport/error.py index d587e32..558cdee 100644 --- a/kusanagi/sdk/transport/error.py +++ b/kusanagi/sdk/transport/error.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/link.py b/kusanagi/sdk/transport/link.py index a34db85..77ac908 100644 --- a/kusanagi/sdk/transport/link.py +++ b/kusanagi/sdk/transport/link.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/relation.py b/kusanagi/sdk/transport/relation.py index 001832a..0e602be 100644 --- a/kusanagi/sdk/transport/relation.py +++ b/kusanagi/sdk/transport/relation.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/sdk/transport/transaction.py b/kusanagi/sdk/transport/transaction.py index 67de035..7a567d9 100644 --- a/kusanagi/sdk/transport/transaction.py +++ b/kusanagi/sdk/transport/transaction.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/serialization.py b/kusanagi/serialization.py index 43ce041..bfd1462 100644 --- a/kusanagi/serialization.py +++ b/kusanagi/serialization.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/server.py b/kusanagi/server.py index 8e120af..00eccba 100644 --- a/kusanagi/server.py +++ b/kusanagi/server.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/service.py b/kusanagi/service.py index ceab7b8..857e07d 100644 --- a/kusanagi/service.py +++ b/kusanagi/service.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/urn.py b/kusanagi/urn.py index 8acabed..e2d1105 100644 --- a/kusanagi/urn.py +++ b/kusanagi/urn.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/utils.py b/kusanagi/utils.py index 816b568..a11f842 100644 --- a/kusanagi/utils.py +++ b/kusanagi/utils.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # diff --git a/kusanagi/versions.py b/kusanagi/versions.py index 94aaa1a..9d31207 100644 --- a/kusanagi/versions.py +++ b/kusanagi/versions.py @@ -1,5 +1,5 @@ # Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) -# Copyright (c) 2016-2019 KUSANAGI S.L. All rights reserved. +# Copyright (c) 2016-2020 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. #