Skip to content

Commit 260ce22

Browse files
Release 1.0.5 (#103)
Release 1.0.5
1 parent 8874122 commit 260ce22

File tree

4 files changed

+52
-15
lines changed

4 files changed

+52
-15
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ All notable changes to the `python-domino` library will be documented in this fi
66

77
### Added
88

9+
### Changed
10+
11+
## 1.0.5
12+
13+
### Added
14+
15+
* Added support for launching Dask jobs
916
* Added the ability to choose which exceptions to ignore (if any) while polling for `job_start_blocking`
1017
* Added several new unit tests in `test_basic_auth.py` and `test_jobs.py`
1118
* Added a public method to re-authenticate if a token expires (assuming a long-running process)

README.md

+30-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Python bindings for the Domino API.
44

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

7-
The latest released version is [1.0.4](https://github.com/dominodatalab/python-domino/archive/1.0.4.zip).
7+
The latest released version is [1.0.5](https://github.com/dominodatalab/python-domino/archive/1.0.5.zip).
88

99
## Version Compatibility Matrix
1010

@@ -15,7 +15,7 @@ The latest released version is [1.0.4](https://github.com/dominodatalab/python-d
1515
| 3.6.x or Lower | [0.3.5](http://github.com/dominodatalab/python-domino/archive/0.3.5.zip) |
1616
| 4.1.0 or Higher | [1.0.0](https://github.com/dominodatalab/python-domino/archive/1.0.0.zip) or Higher |
1717

18-
## Installation
18+
## Installation
1919

2020
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:
2121

@@ -30,7 +30,7 @@ You can also add `python-domino` to your `requirements.txt` file with the follow
3030
git+git://github.com/dominodatalab/python-domino.git
3131

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

3636
## Overview
@@ -53,9 +53,9 @@ The parameters are:
5353
* *domino_token_file:* (Optional) Path to domino token file containing auth token. If not provided the library will expect to find one
5454
in the DOMINO_TOKEN_FILE environment variable.
5555

56-
Note:
56+
Note:
5757
1. In case both api_key and domino_token_file are available, then preference will be given to domino_token_file.
58-
2. By default the log level is set to `INFO`, to set log level to `DEBUG`, set `DOMINO_LOG_LEVEL` environment variable to `DEBUG`
58+
2. By default the log level is set to `INFO`, to set log level to `DEBUG`, set `DOMINO_LOG_LEVEL` environment variable to `DEBUG`
5959
<hr>
6060

6161
## Methods
@@ -87,7 +87,7 @@ Start a new run on the selected project. The parameters are:
8787
* *isDirect:* (Optional) Whether or not this command should be passed directly to a shell.
8888
* *commitId:* (Optional) The commitId to launch from. If not provided, will launch from latest commit.
8989
* *title:* (Optional) A title for the run.
90-
* *tier:* (Optional) The hardware tier to use for the run. This is the human-readable name of the hardware tier, such as "Free", "Small", or "Medium". Will use project default tier if not provided.
90+
* *tier:* (Optional) The hardware tier to use for the run. This is the human-readable name of the hardware tier, such as "Free", "Small", or "Medium". Will use project default tier if not provided.
9191
* *publishApiEndpoint:* (Optional) Whether or not to publish an API endpoint from the resulting output.
9292

9393
<hr>
@@ -163,7 +163,7 @@ Publishes an app in the Domino project, or republish an existing app. The parame
163163

164164
### app_unpublish()
165165

166-
Stops all running apps in the Domino project.
166+
Stops all running apps in the Domino project.
167167

168168
<hr>
169169

@@ -177,7 +177,7 @@ Starts a new Job (run) in the project
177177
* *environment_id (string):* (Optional) The environment id to launch job with. If not provided it will use the default environment for the project
178178
* *on_demand_spark_cluster_properties (dict):* (Optional) On demand spark cluster properties. Following properties
179179
can be provided in spark cluster
180-
180+
181181
```
182182
{
183183
"computeEnvironmentId": "<Environment ID configured with spark>"
@@ -191,15 +191,36 @@ Starts a new Job (run) in the project
191191
(optional defaults to 0; 1GB is 1000MB Here)
192192
}
193193
```
194+
* *param compute_cluster_properties (dict):* (Optional) The compute cluster properties definition contains parameters for
195+
launching any Domino supported compute cluster for a job. Use this to launch a job that uses a compute cluster instead of
196+
the deprecated `on_demand_spark_cluster_properties` field. If `on_demand_spark_cluster_properties` and `compute_cluster_properties`
197+
are both present, `on_demand_spark_cluster_properties` will be ignored. `compute_cluster_properties` contains the following fields:
194198
199+
```
200+
{
201+
"clusterType": <string, one of "Ray", "Spark">,
202+
"computeEnvironmentId": <string, The environment ID for the cluster's nodes>,
203+
"computeEnvironmentRevisionSpec": <one of "ActiveRevision", "LatestRevision",
204+
{"revisionId":"<environment_revision_id>"} (optional)>,
205+
"masterHardwareTierId": <string, the Hardware tier ID for the cluster's master node>,
206+
"workerCount": <number, the total workers to spawn for the cluster>,
207+
"workerHardwareTierId": <string, The Hardware tier ID for the cluster workers>,
208+
"workerStorage": <{ "value": <number>, "unit": <one of "GiB", "MB"> },
209+
The disk storage size for the cluster's worker nodes (optional)>
210+
"maxWorkerCount": <number, The max number of workers allowed. When
211+
this configuration exists, autoscaling is enabled for the cluster and
212+
"workerCount" is interpreted as the min number of workers allowed in the cluster
213+
(optional)>
214+
}
215+
```
195216
<hr>
196217
197218
### job_stop(*job_id*, *commit_results=True*):
198219
199220
Stops the Job (run) in the project
200221
201222
* *job_id (string):* Job identifier
202-
* *commit_results (boolean):* Defaults to `True`, if `false` job results will not be committed
223+
* *commit_results (boolean):* Defaults to `True`, if `false` job results will not be committed
203224
204225
<hr>
205226

domino/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.4'
1+
__version__ = '1.0.5'

setup.py

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
from setuptools import setup
1+
import pathlib
2+
from setuptools import setup, find_packages
23
import re
34

45
PACKAGE_NAME = 'domino'
56

7+
# The directory containing this file
8+
HERE = pathlib.Path(__file__).parent
9+
10+
# The text of the README file
11+
README = (HERE / "README.md").read_text()
612

713
def get_version():
814
try:
@@ -22,12 +28,15 @@ def get_version():
2228
version=get_version(),
2329
author='Domino Data Lab',
2430
author_email='[email protected]',
25-
packages=[PACKAGE_NAME],
31+
packages=find_packages(),
2632
scripts=[],
27-
url='http://www.dominodatalab.com',
28-
license='LICENSE.txt',
33+
url='https://github.com/dominodatalab/python-domino',
34+
download_url='https://github.com/dominodatalab/python-domino/' + get_version() + '.zip',
35+
license='Apache Software License (Apache 2.0)',
2936
description='Python bindings for the Domino API',
30-
long_description='',
37+
long_description=README,
38+
long_description_content_type="text/markdown",
39+
keywords=['Domino Data Lab', 'API'],
3140
install_requires=[
3241
'requests>=2.4.2',
3342
'bs4==0.*,>=0.0.1',

0 commit comments

Comments
 (0)