Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 0f209b2

Browse files
committed
Merge branch 'v0.0.15_work'
2 parents a84fa6f + 12c0c8a commit 0f209b2

File tree

9 files changed

+57
-48
lines changed

9 files changed

+57
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Paperspace Python
22
=================
33

4-
Release 0.0.14
4+
Release 0.0.15
55

66
See [releasenotes.md](https://github.com/Paperspace/paperspace-python/blob/master/releasenotes.md) for details on the current release, as well as release history.
77

conda/python2/paperspace/meta.yaml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
11
{% set name = "paperspace" %}
2-
{% set version = "0.0.14" %}
3-
{% set file_ext = "tar.gz" %}
4-
{% set hash_type = "sha256" %}
5-
{% set hash_value = "eaee7d09abdc1ee7b575250f5d127f1f874a2fa456ebb7c6ddee4a366356297c" %}
2+
{% set version = "0.0.15" %}
63

74
package:
8-
name: '{{ name|lower }}'
9-
version: '{{ version }}'
5+
name: "{{ name|lower }}"
6+
version: "{{ version }}"
107

118
source:
12-
fn: '{{ name }}-{{ version }}.{{ file_ext }}'
13-
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }}
14-
'{{ hash_type }}': '{{ hash_value }}'
9+
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
10+
sha256: b43d8216354a6fce571f3c091cbf04a52603c6a52ddfa70a7be586ec67c9eea1
1511

1612
build:
1713
number: 0
1814
entry_points:
1915
- paperspace-python = paperspace.main:main
20-
script: python setup.py install --single-version-externally-managed --record=record.txt
16+
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
2117

2218
requirements:
2319
host:
24-
- python
25-
- setuptools
26-
- requests
2720
- boto3
2821
- botocore
29-
- six
30-
run:
22+
- pip
3123
- python
3224
- requests
25+
- six
26+
run:
3327
- boto3
3428
- botocore
29+
- python
30+
- requests
3531
- six
3632

3733
test:
@@ -42,13 +38,13 @@ test:
4238

4339
about:
4440
home: https://github.com/paperspace/paperspace-python
45-
license: ISC License (ISCL)
41+
license: ISC (ISCL)
4642
license_family: OTHER
47-
license_file: ''
43+
license_file:
4844
summary: Paperspace Python
49-
description: "Paperspace Python"
50-
doc_url: ''
51-
dev_url: ''
45+
doc_url:
46+
dev_url:
5247

5348
extra:
54-
recipe-maintainers: ''
49+
recipe-maintainers:
50+
- your-github-id-here

conda/python3/paperspace/meta.yaml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
11
{% set name = "paperspace" %}
2-
{% set version = "0.0.14" %}
3-
{% set file_ext = "tar.gz" %}
4-
{% set hash_type = "sha256" %}
5-
{% set hash_value = "eaee7d09abdc1ee7b575250f5d127f1f874a2fa456ebb7c6ddee4a366356297c" %}
2+
{% set version = "0.0.15" %}
63

74
package:
8-
name: '{{ name|lower }}'
9-
version: '{{ version }}'
5+
name: "{{ name|lower }}"
6+
version: "{{ version }}"
107

118
source:
12-
fn: '{{ name }}-{{ version }}.{{ file_ext }}'
13-
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }}
14-
'{{ hash_type }}': '{{ hash_value }}'
9+
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
10+
sha256: b43d8216354a6fce571f3c091cbf04a52603c6a52ddfa70a7be586ec67c9eea1
1511

1612
build:
1713
number: 0
1814
entry_points:
1915
- paperspace-python = paperspace.main:main
20-
script: python setup.py install --single-version-externally-managed --record=record.txt
16+
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "
2117

2218
requirements:
2319
host:
24-
- python
25-
- setuptools
26-
- requests
2720
- boto3
2821
- botocore
29-
- six
30-
run:
22+
- pip
3123
- python
3224
- requests
25+
- six
26+
run:
3327
- boto3
3428
- botocore
29+
- python
30+
- requests
3531
- six
3632

3733
test:
@@ -42,13 +38,13 @@ test:
4238

4339
about:
4440
home: https://github.com/paperspace/paperspace-python
45-
license: ISC License (ISCL)
41+
license: ISC (ISCL)
4642
license_family: OTHER
47-
license_file: ''
43+
license_file:
4844
summary: Paperspace Python
49-
description: "Paperspace Python"
50-
doc_url: ''
51-
dev_url: ''
45+
doc_url:
46+
dev_url:
5247

5348
extra:
54-
recipe-maintainers: ''
49+
recipe-maintainers:
50+
- your-github-id-here

paperspace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
from . import templates
1010
from . import users
1111

12-
__version__ = "0.0.13"
12+
__version__ = "0.0.15"

paperspace/jobs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import base64
12
import inspect
23
import json
34
import os
@@ -414,6 +415,7 @@ def run(params={}, no_logging=False):
414415
print(params['command'])
415416
sys.exit(1)
416417

418+
params['command'] = base64.b64encode(bytes(params['command'], 'utf-8'))
417419
res = create(params, no_logging)
418420
if run_this:
419421
sys.exit(0)

paperspace/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ def main():
7474
elif opt.startswith('--') and not skip_arg_processing:
7575
param = opt[2:]
7676
if param in ['script', 'python', 'conda', 'ignoreFiles', 'apiKey', 'container', 'machineType', 'name',
77-
'project', 'projectId', 'command', 'workspace', 'dataset', 'registryUsername', 'registryPassword',
78-
'workspaceUsername', 'workspacePassword', 'cluster', 'clusterId', 'ports', 'isPreemptible']:
77+
'project', 'projectId', 'command', 'workspace', 'dataset', 'registryUsername',
78+
'registryPassword', 'workspaceUsername', 'workspacePassword', 'cluster', 'clusterId',
79+
'ports', 'isPreemptible', 'useDockerfile', 'buildOnly', 'registryTarget',
80+
'registryTargetUsername', 'registryTargetPassword', 'relDockerfilePath']:
7981
if args and not args[0].startswith('--'):
8082
params[param] = args.pop(0)
8183
else:

paperspace/method.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def method(category, method, params):
135135
data = params
136136
params = None
137137
r = requests.request(http_method, config.CONFIG_HOST + path,
138-
headers={'x-api-key': config.PAPERSPACE_API_KEY},
138+
headers={'x-api-key': config.PAPERSPACE_API_KEY, 'ps_client_name': 'paperspace-python',
139+
'ps_client_version' : "0.0.15"},
139140
params=params, data=data, files=files)
140141
#pprint(vars(r.request))
141142
except requests.exceptions.RequestException as e:

releasenotes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Paperspace Python Release Notes
22

3+
## Release Notes for v0.0.15
4+
5+
### New features
6+
* Run gradient jobs from custom Dockerfile built containers (see: https://docs.paperspace.com/gradient/jobs/create-a-job#new-run-jobs-from-dockerfiles)
7+
8+
* Push GPU-enabled container images to a registry of your choice
9+
10+
* Add support for yarn package manager
11+
12+
### Fixes
13+
* Add custom headers to requests
14+
315
## Release Notes for v0.0.14
416

517
#### New features

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setup(
1616
name='paperspace',
17-
version='0.0.14',
17+
version='0.0.15',
1818
description='Paperspace Python',
1919
long_description=long_description,
2020
url='https://github.com/paperspace/paperspace-python',

0 commit comments

Comments
 (0)