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

Commit 2efd2fe

Browse files
committed
changes for publishing to pypi
1 parent 736f663 commit 2efd2fe

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017, Paperspace <support@paperspace.com>
1+
Copyright (c) 2018 Paperspace <support@paperspace.com>
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
44

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
# paperspace-python
2-
Paperspace API for python
1+
Paperspace API for Python
2+
=========================
33

4-
Coming soon...
4+
Sample usage:
5+
6+
import paperspace
7+
8+
paperspace.config.PAPERSPACE_API_KEY = '14a4bc1cbc414...'
9+
10+
paperspace.jobs.runas_job({'project': 'myproject', 'machineType': 'GPU+', 'container': 'Test-Container'})
11+
12+
print('hello paperspace!')
13+
14+
15+
Contributing
16+
============
517

618
Want to contribute? Contact us at hello@paperspace.com

setup.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from setuptools import setup, find_packages
2+
from codecs import open
3+
from os import path
4+
5+
here = path.abspath(path.dirname(__file__))
6+
7+
# Get the long description from the README file
8+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
9+
long_description = f.read()
10+
11+
setup(
12+
name='paperspace',
13+
version='0.0.2',
14+
description='Paperspace API for Python',
15+
long_description=long_description,
16+
url='https://github.com/paperspace/paperspace-python',
17+
author='Paperspace Co.',
18+
author_email='info@paperspace.com',
19+
classifiers=[
20+
'Development Status :: 3 - Alpha',
21+
'Intended Audience :: Developers',
22+
'Topic :: Software Development :: Libraries',
23+
'License :: OSI Approved :: ISC License (ISCL)',
24+
'Programming Language :: Python :: 3',
25+
'Programming Language :: Python :: 3.4',
26+
'Programming Language :: Python :: 3.5',
27+
'Programming Language :: Python :: 3.6',
28+
],
29+
keywords='paperspace api development library',
30+
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
31+
install_requires=['boto3', 'botocore', 'requests'],
32+
)

0 commit comments

Comments
 (0)