From fcbf2dbe1a3948eafed67a1dd9ee382e63da5821 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello <8296030+Piccirello@users.noreply.github.com> Date: Thu, 14 Sep 2023 13:31:52 -0700 Subject: [PATCH] Delete example directory --- example/README.md | 33 --------------------------------- example/install.sh | 5 ----- example/install_py3.sh | 5 ----- example/sample.py | 11 ----------- 4 files changed, 54 deletions(-) delete mode 100644 example/README.md delete mode 100644 example/install.sh delete mode 100644 example/install_py3.sh delete mode 100644 example/sample.py diff --git a/example/README.md b/example/README.md deleted file mode 100644 index b2a261d..0000000 --- a/example/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# doppler-sdk-example -A basic example of how to use the doppler-sdk package. - -## Installation - -If `doppler-sdk` is published to pypi: -```sh -pip install doppler-sdk==1.1.1 -``` - -In the event `doppler-sdk` is not published to pypi, you can install it locally by running the following command in the example folder: -```sh -. ./install.sh -``` - -This will create and start a virtual environment and install the package locally in it. - -To close the virtual environment run: -```sh -deactivate -``` - -To re-activate the virtual environment once it is installed run: -```sh -source .venv/bin/activate -``` - -## Usage - -To run the example, run the following command in the examples folder: -```sh -python sample.py -``` diff --git a/example/install.sh b/example/install.sh deleted file mode 100644 index 17fd022..0000000 --- a/example/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -python -m venv .venv -source .venv/bin/activate -pip install build -python -m build --outdir dist ../ -pip install dist/doppler_sdk-1.1.1-py3-none-any.whl diff --git a/example/install_py3.sh b/example/install_py3.sh deleted file mode 100644 index 8aec866..0000000 --- a/example/install_py3.sh +++ /dev/null @@ -1,5 +0,0 @@ -python3 -m venv .venv -source .venv/bin/activate -pip3 install build -python3 -m build --outdir dist ../ -pip3 install dist/doppler_sdk-1.1.1-py3-none-any.whl \ No newline at end of file diff --git a/example/sample.py b/example/sample.py deleted file mode 100644 index 8d041a8..0000000 --- a/example/sample.py +++ /dev/null @@ -1,11 +0,0 @@ -from pprint import pprint -from dopplersdk import DopplerSDK - -DOPPLERSDK_BEARER_TOKEN = "" - -sdk = DopplerSDK() -sdk.set_bearer_token(DOPPLERSDK_BEARER_TOKEN) - -results = sdk.projects.list() - -pprint(vars(results))