From 7ed2810cf2bbec2199450b3b70adceee24512150 Mon Sep 17 00:00:00 2001 From: Achilleas Date: Tue, 7 Sep 2021 11:20:50 -0400 Subject: [PATCH 1/3] update python versions & examples --- README.md | 6 ++---- setup.py | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d66055c1..d017eb42 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ ## Injective Python SDK -Note: Apple `M1` processor is not supported - ### Dependences **Ubuntu** @@ -24,7 +22,7 @@ import injective.exchange_api ### Usage Requires Python 3.7+ -[examples](https://github.com/InjectiveLabs/sdk-python/tree/master/examples): https://github.com/InjectiveLabs/sdk-python/tree/master/examples +[Examples](https://github.com/InjectiveLabs/sdk-python/tree/master/examples) ```bash $ pipenv shell $ pipenv install @@ -35,7 +33,7 @@ $ python examples/exchange_api_example/examples/spot_exchange_rpc/8_StreamOrders # sending a msg with bank transfer # signs and posts a Tx to the Injective Chain -$ python examples/chain_client_example/examples/example.py +$ python examples/exchange_api_examples/spot_exchange_rpc/8_StreamOrdersRequest.py ``` Upgrade `pip` to the latest version, if you see these warnings: ``` diff --git a/setup.py b/setup.py index 9392e0b1..805381c6 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ EMAIL = "max@injectiveprotocol.com" AUTHOR = "Injective Labs" REQUIRES_PYTHON = ">=3.7.0" -VERSION = "0.3.2" +VERSION = "0.4.1" REQUIRED = [ "grpcio", @@ -27,7 +27,8 @@ "bech32", "mnemonic", "hdwallets", - "pysha3", + "pysha3" + "protobuf", ] # The rest you shouldn't have to touch too much :) @@ -114,7 +115,7 @@ def run(self): "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], From 1e04818170745b4c7b6a20445e77634912541d11 Mon Sep 17 00:00:00 2001 From: Achilleas Date: Tue, 7 Sep 2021 11:24:08 -0400 Subject: [PATCH 2/3] update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d017eb42..c300be48 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ $ pipenv install # connecting to Injective Exchange API # and listening for new orders from one specific spot market -$ python examples/exchange_api_example/examples/spot_exchange_rpc/8_StreamOrdersRequest.py +$ python examples/exchange_api_examples/spot_exchange_rpc/8_StreamOrdersRequest.py # sending a msg with bank transfer # signs and posts a Tx to the Injective Chain -$ python examples/exchange_api_examples/spot_exchange_rpc/8_StreamOrdersRequest.py +$ python examples/chain_client_examples/1_CosmosBankMsgSend.py ``` Upgrade `pip` to the latest version, if you see these warnings: ``` From 67686202a4aa3e272d13254c74d17ba442143788 Mon Sep 17 00:00:00 2001 From: Achilleas Date: Tue, 7 Sep 2021 11:38:16 -0400 Subject: [PATCH 3/3] update required packages --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 805381c6..3e1a9c3e 100755 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ "bech32", "mnemonic", "hdwallets", - "pysha3" + "pysha3", "protobuf", ]