From 6410d8dfdccbbaabc62e9aebef8f360dadda25ef Mon Sep 17 00:00:00 2001 From: Steve Bunting Date: Tue, 2 Jan 2024 13:52:02 -0800 Subject: [PATCH 1/2] Changes from 1.1.0 publish --- README.md | 8 +++++--- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ef003a9..0a50c12 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ pip install supergood Set the environment variables `SUPERGOOD_CLIENT_ID` and `SUPERGOOD_CLIENT_SECRET` using the API keys generated in the [getting started instructions](../getting-started.md). -Initialize the Supergood client at the root of your application, or anywhere you're making API calls with the following code: +Initialize the Supergood client at the root of your application, or anywhere you're making API calls. ```python from Supergood import Client @@ -24,8 +24,8 @@ Client() **Passing keys** -You can also pass the API keys in manually without setting environment variables.\ -\ +You can also pass the API keys in manually without setting environment variables. + Replace `` and `` with the API keys you generated in the [getting started instructions](../getting-started.md). ```python @@ -34,6 +34,8 @@ from Supergood import Client Client(client_id="", client_secret="") ``` +Note: If your application makes use of the `multiprocessing` library to make API calls, you'll need to initialize a client for each `Process`. + ## 3. Monitor your API calls You're all set to use Supergood! diff --git a/setup.cfg b/setup.cfg index 8061f28..2e872b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.0.22 +current_version = 1.1.0 commit = True tag = True diff --git a/setup.py b/setup.py index 7c8127a..14f04b3 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="supergood", - version="1.0.22", + version="1.1.0", author="Alex Klarfeld", description="The Python client for Supergood", long_description=long_description, From 5c4fe0e5b21451e8fadc5e803d80c8daaf6842f0 Mon Sep 17 00:00:00 2001 From: Steve Bunting Date: Tue, 2 Jan 2024 13:53:41 -0800 Subject: [PATCH 2/2] fix publish script --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 0293e9e..91b1603 100755 --- a/publish.sh +++ b/publish.sh @@ -4,7 +4,7 @@ source .env rm -rf dist # Pull latest README.md from Gitbook -curl -C - -0 https://raw.githubusercontent.com/supergoodsystems/docs/287d642c47fb485c9b5d7e4271ec07146a733358/installing-clients/python.md > README.md +curl -C - -0 https://raw.githubusercontent.com/supergoodsystems/docs/main/installing-clients/python.md > README.md git add README.md git commit -m "Update README.md"