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

Commit 6b7683e

Browse files
BartoszCkidandruszak
authored andcommitted
Add gradient-statsd to setup.py install_requires and inc version
1 parent 832cb4f commit 6b7683e

File tree

9 files changed

+33
-22
lines changed

9 files changed

+33
-22
lines changed

Pipfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
[[source]]
2-
32
url = "https://pypi.python.org/simple"
43
name = "pypi"
54
verify_ssl = true
65

7-
86
[packages]
9-
10-
"e1839a8" = {path = ".", editable = true}
7+
e1839a8 = {path = ".",editable = true}
118
requests = {extras = ["security"]}
129
cryptography = {extras = ["security"]}
1310
"boto3" = "*"
1411
botocore = "*"
1512
six = "*"
16-
13+
gradient-statsd = "*"
1714

1815
[dev-packages]
19-
2016
twine = "*"
2117
pypandoc = "*"
18+
pylint = "*"
19+
hacking = "*"

conda/python2/paperspace/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "paperspace" %}
2-
{% set version = "0.0.15" %}
2+
{% set version = "0.0.16" %}
33

44
package:
55
name: "{{ name|lower }}"

conda/python3/paperspace/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "paperspace" %}
2-
{% set version = "0.0.15" %}
2+
{% set version = "0.0.16" %}
33

44
package:
55
name: "{{ name|lower }}"

paperspace/__init__.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
from .config import *
2-
from .login import login, logout
3-
from .method import print_json_pretty
4-
from .jobs import run
1+
from gradient_statsd import Client as StatsdClient
2+
53
from . import jobs
64
from . import machines
75
from . import networks
86
from . import scripts
97
from . import templates
108
from . import users
9+
from .config import *
10+
from .jobs import run
11+
from .login import login, logout
12+
from .method import print_json_pretty
1113

12-
__version__ = "0.0.15"
14+
_ = StatsdClient # to keep import save from "Optimize Imports", auto code cleanup, etc.

paperspace/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.0.16"

paperspace/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import os
33

4-
from . import __version__
4+
from .__version__ import version
55
from .login import login, logout, set_apikey
66
from .jobs import run, print_json_pretty
77

@@ -121,7 +121,7 @@ def main():
121121

122122

123123
def vers(prog):
124-
print('%s %s' % (prog, __version__))
124+
print('%s %s' % (prog, version))
125125

126126

127127
def login_usage(prog):

paperspace/method.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import json
2-
import os
2+
import subprocess
33
import sys
44
import tempfile
5-
import time
65
import zipfile
7-
from pprint import pprint
86

97
import requests
10-
import subprocess
118

9+
from .__version__ import version
1210
from .config import *
1311

12+
1413
def zip_to_tmp(files, ignore_files=[]):
1514
file = files[0]
1615
zipname = os.path.join(tempfile.gettempdir(),
@@ -136,7 +135,7 @@ def method(category, method, params):
136135
params = None
137136
r = requests.request(http_method, config.CONFIG_HOST + path,
138137
headers={'x-api-key': config.PAPERSPACE_API_KEY, 'ps_client_name': 'paperspace-python',
139-
'ps_client_version' : "0.0.15"},
138+
'ps_client_version' : version},
140139
params=params, data=data, files=files)
141140
#pprint(vars(r.request))
142141
except requests.exceptions.RequestException as e:

releasenotes.md

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

3+
## Release Notes for v0.0.16
4+
5+
### New features
6+
* Add statsd agent support with StatsdClient
7+
8+
### Fixes
9+
* Fix crashing on converting to bytes in python < 3
10+
311
## Release Notes for v0.0.15
412

513
### New features

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from codecs import open
22
from os import path
3+
34
from setuptools import setup, find_packages
45

6+
from paperspace.__version__ import version
7+
58
here = path.abspath(path.dirname(__file__))
69

710
# Get the long description from the README file
@@ -14,7 +17,7 @@
1417

1518
setup(
1619
name='paperspace',
17-
version='0.0.15',
20+
version=version,
1821
description='Paperspace Python',
1922
long_description=long_description,
2023
url='https://github.com/paperspace/paperspace-python',
@@ -32,7 +35,7 @@
3235
],
3336
keywords='paperspace api development library',
3437
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
35-
install_requires=['requests[security]', 'boto3', 'botocore', 'six'],
38+
install_requires=['requests[security]', 'boto3', 'botocore', 'six', 'gradient-statsd'],
3639
entry_points={'console_scripts': [
3740
'paperspace-python = paperspace.main:main',
3841
]},

0 commit comments

Comments
 (0)