Skip to content

Commit

Permalink
Merge pull request #22 from DopplerHQ/v1.3.0-1712185506835
Browse files Browse the repository at this point in the history
liblab SDK update v1.3.0
  • Loading branch information
Kyle McGuire authored Apr 8, 2024
2 parents b08a0c0 + ef71a8e commit cdfef48
Show file tree
Hide file tree
Showing 209 changed files with 8,050 additions and 4,125 deletions.
415 changes: 415 additions & 0 deletions .manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023
Copyright (c) 2024

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 7 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
# 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.2.1
pip install doppler-sdk==1.3.0
```

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
```
6 changes: 6 additions & 0 deletions examples/install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

python -m venv .venv
call .venv\Scripts\activate
pip install build
python -m build --outdir dist ..\
pip install dist\doppler_sdk-1.3.0-py3-none-any.whl --force-reinstall
2 changes: 1 addition & 1 deletion examples/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ python -m venv .venv
source .venv/bin/activate
pip install build
python -m build --outdir dist ../
pip install dist/doppler_sdk-1.2.1-py3-none-any.whl
pip install dist/doppler_sdk-1.3.0-py3-none-any.whl --force-reinstall
2 changes: 1 addition & 1 deletion examples/install_py3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ python3 -m venv .venv
source .venv/bin/activate
pip3 install build
python3 -m build --outdir dist ../
pip3 install dist/doppler_sdk-1.2.1-py3-none-any.whl
pip3 install dist/doppler_sdk-1.3.0-py3-none-any.whl --force-reinstall
4 changes: 4 additions & 0 deletions install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

pip install -r requirements.txt
pip install -e src\dopplersdk\
python -m unittest discover -p "test*.py"
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "doppler-sdk"
version = "1.2.1"
version = "1.3.0"
license = { text = "MIT" }
description = """"""
readme = "README.md"
Expand All @@ -17,11 +17,14 @@ classifiers = [
]
dependencies = [
"requests",
"http-exceptions",
"http-exceptions"
]

[project.optional-dependencies]
test = [
"pytest",
"responses"
]

[project.urls]
Documentation = "https://docs.doppler.com/docs/sdk-python"
Source = "https://github.com/DopplerHQ/python-sdk"
Expand Down
Loading

0 comments on commit cdfef48

Please sign in to comment.