From 65ea7920f7c496856a16a9df21629293e4e945dc Mon Sep 17 00:00:00 2001 From: Alex Panin <59580529+ddl-alexpanin@users.noreply.github.com> Date: Wed, 8 Dec 2021 15:43:30 -0800 Subject: [PATCH] Release 1.0.6 (#115) * Release 1.0.6 Co-authored-by: Alex Panin --- CHANGELOG.md | 6 ++++++ README.md | 41 +++++++++++++++++++++++------------------ domino/_version.py | 2 +- setup.py | 3 ++- 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d918f0..b415e51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 02cee2d..06864b5 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/domino/_version.py b/domino/_version.py index 858de17..da2182f 100644 --- a/domino/_version.py +++ b/domino/_version.py @@ -1 +1 @@ -__version__ = '1.0.5' +__version__ = '1.0.6' diff --git a/setup.py b/setup.py index 68facaa..9cb8518 100644 --- a/setup.py +++ b/setup.py @@ -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, @@ -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"],