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

Commit a5966e9

Browse files
BartoszCkidandruszak
authored andcommitted
fix setup.py so conda upload works
1 parent 6b7683e commit a5966e9

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

paperspace/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111
from .login import login, logout
1212
from .method import print_json_pretty
1313

14+
__version__ = "0.0.16"
15+
1416
_ = StatsdClient # to keep import save from "Optimize Imports", auto code cleanup, etc.

paperspace/__version__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

paperspace/main.py

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

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

paperspace/method.py

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

77
import requests
88

9-
from .__version__ import version
9+
from . import __version__ as version
1010
from .config import *
1111

1212

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
import re
12
from codecs import open
2-
from os import path
3+
from os import path, io
34

45
from setuptools import setup, find_packages
56

6-
from paperspace.__version__ import version
7+
with io.open("paperspace/__init__.py", "rt", encoding="utf8") as f:
8+
version = re.search(r"__version__ = \"(.*?)\"", f.read()).group(1)
79

810
here = path.abspath(path.dirname(__file__))
911

1012
# Get the long description from the README file
1113
try:
1214
import pypandoc
15+
1316
long_description = pypandoc.convert('README.md', 'rst')
1417
except(IOError, ImportError, OSError):
1518
with open('README.md', encoding='utf-8') as f:
@@ -24,14 +27,14 @@
2427
author='Paperspace Co.',
2528
author_email='info@paperspace.com',
2629
classifiers=[
27-
'Development Status :: 3 - Alpha',
2830
'Intended Audience :: Developers',
2931
'Topic :: Software Development :: Libraries',
3032
'License :: OSI Approved :: ISC License (ISCL)',
3133
'Programming Language :: Python :: 2.7',
3234
'Programming Language :: Python :: 3.4',
3335
'Programming Language :: Python :: 3.5',
3436
'Programming Language :: Python :: 3.6',
37+
'Programming Language :: Python :: 3.7',
3538
],
3639
keywords='paperspace api development library',
3740
packages=find_packages(exclude=['contrib', 'docs', 'tests']),

0 commit comments

Comments
 (0)