Skip to content

Commit

Permalink
Release 1.0.6 (#115)
Browse files Browse the repository at this point in the history
* Release 1.0.6

Co-authored-by: Alex Panin <alexpanin@Domino469s-MacBook-Pro.local>
  • Loading branch information
ddl-alexpanin and Alex Panin committed Dec 8, 2021
1 parent 0c4fe25 commit 65ea792
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to the `python-domino` library will be documented in this fi

### Added

### Changed

## 1.0.6

### Added

* Automatically re-read auth token from file to avoid reusing short-lived access tokens
* Better token expiration error handling for job_start and runs_start methods
* Added support for external volume mounts in job_start
Expand Down
41 changes: 23 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
# python-domino

Python bindings for the Domino API.
This library provides bindings for the [Domino Data Lab API](https://dominodatalab.github.io/api-docs/).

Permits interaction with a Domino deployment from Python using the [Domino API](https://dominodatalab.github.io/api-docs/).

The latest released version is [1.0.5](https://github.com/dominodatalab/python-domino/archive/1.0.5.zip).
The latest released version is `1.0.6`.

## Version Compatibility Matrix

`python-domino` library is compatible with different versions of the `Domino`:

| Domino Versions | Python-Domino |
| --------------- |:-------------:|
| 3.6.x or Lower | [0.3.5](http://github.com/dominodatalab/python-domino/archive/0.3.5.zip) |
| 4.1.0 or Higher | [1.0.0](https://github.com/dominodatalab/python-domino/archive/1.0.0.zip) or Higher |
| Domino Versions | Python-Domino |
| --------------- |:---------------:|
| 3.6.x or Lower | [0.3.5](http://github.com/dominodatalab/python-domino/archive/0.3.5.zip) |
| 4.1.0 or Higher | [1.0.0](https://github.com/dominodatalab/python-domino/archive/1.0.0.zip) or Higher |

## Installation

At this time, these Domino Python bindings are not in PyPi. You can install the latest version of this package from our Github `master` branch with the following:
Starting from version `1.0.6`, `python-domino` is available on PyPI as `dominodatalab`:

pip install dominodatalab

pip install https://github.com/dominodatalab/python-domino/archive/master.zip
If you are adding install instructions for `python-domino` to your [Domino Environment](https://support.dominodatalab.com/hc/en-us/articles/115000392643-Compute-Environment-Management) Dockerfile Instructions field, you must add `RUN` to the beginning:

If you are adding install instructions for `python-domino` to your [Domino Environment](https://support.dominodatalab.com/hc/en-us/articles/115000392643-Compute-Environment-Management) `Dockerfile Instructions` field, you must add `RUN` to the beginning:
RUN pip install dominodatalab

RUN pip install https://github.com/dominodatalab/python-domino/archive/master.zip
To install specific version of the library from PyPI, for example, `1.0.6`, use the following command:

You can also add `python-domino` to your `requirements.txt` file with the following syntax:
pip install dominodatalab==1.0.6

git+git://github.com/dominodatalab/python-domino.git
To install specific version of the library from GitHub, for example, `1.0.6`, use the following command:

Note: To install lower version of library, for example `0.3.5` use the following command:
pip install https://github.com/dominodatalab/python-domino/archive/1.0.6.zip

pip install https://github.com/dominodatalab/python-domino/archive/0.3.5.zip

## Overview

Expand Down Expand Up @@ -249,10 +248,16 @@ parameter in `job_start` method

The `python-domino` client comes bundled with an Operator for use with airflow as an extra.

To install its dependencies, when installing the package from github add the `airflow` flag to extras with pip.
When installing the client from PyPI, add the `airflow` flag to extras:

```
pip install dominodatalab[airflow]
```

Similarly, when installing the client from GitHub, use the following command:

```
pip install -e git+https://github.com/dominodatalab/python-domino.git@master#egg=python-domino[airflow]
pip install -e git+https://github.com/dominodatalab/python-domino.git@1.0.6#egg=python-domino[airflow]
```

### DominoOperator
Expand Down
2 changes: 1 addition & 1 deletion domino/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.5'
__version__ = '1.0.6'
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_version():
packages=find_packages(),
scripts=[],
url="https://github.com/dominodatalab/python-domino",
download_url=f"https://github.com/dominodatalab/python-domino/{get_version()}.zip", # noqa
download_url='https://github.com/dominodatalab/python-domino/archive/' + get_version() + '.zip',
license="Apache Software License (Apache 2.0)",
description="Python bindings for the Domino API",
long_description=README,
Expand All @@ -42,6 +42,7 @@ def get_version():
tests_require=[
"pytest==6.2.2",
"requests_mock>=1.9.*",
'polling2'
],
extras_require={
"airflow": ["apache-airflow==1.*,>=1.10"],
Expand Down

0 comments on commit 65ea792

Please sign in to comment.