Skip to content

Commit

Permalink
Update deps and up patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeacom committed Mar 27, 2020
1 parent 96389f1 commit 5b61306
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 22 deletions.
30 changes: 30 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,33 @@ reference/
.mypy_cache/
.pytest_cache/
.github/

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Docs
_build/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# pyenv
.python-version
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ Python wrapper and CLI for [CloudEndure](https://www.cloudendure.com/)

## Installation & Usage

### poetry
### Basic Installation / pip

```sh
pip install cloudendure
cloudendure version
```

### Local Development with Poetry

```sh
brew install poetry # if not installed
poetry install cloudendure
poetry install
```

### pip
### Local Development with Docker

```sh
pip install cloudendure
docker run --rm -it cloudendurepy/cloudendure bash
```

### Usage
Expand Down
10 changes: 9 additions & 1 deletion cloudendure/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,17 @@ def login(self, username: str = "", password: str = "", token: str = "") -> bool
return True

@staticmethod
def get_endpoint(path: str, api_version: str = "latest", host: str = "https://console.cloudendure.com",) -> str:
def get_endpoint(path: str, api_version: str = "latest", host: str = "https://console.cloudendure.com") -> str:
"""Build the endpoint path.
Args:
path (str): The path to be requested.
api_version (str): The API version to be used.
For example: v5
Defaults to: latest
host (str): The API URL to be used.
Defaults to: https://console.cloudendure.com
Returns:
str: The CloudEndure API endpoint to be used.
Expand Down
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cloudendure"
version = "0.2.2"
version = "0.2.3"
description = "Python wrapper and CLI for CloudEndure"
authors = ["Mark Beacom <[email protected]>", "Tom Warnock <[email protected]>"]
maintainers = ["Evan Lucchesi <[email protected]>", "Nick Selpa <[email protected]>"]
Expand Down

0 comments on commit 5b61306

Please sign in to comment.