|
16 | 16 | try: |
17 | 17 | import pypandoc |
18 | 18 |
|
19 | | - long_description = pypandoc.convert('README.md', 'rst') |
20 | | -except(IOError, ImportError, OSError): |
21 | | - with open('README.md', encoding='utf-8') as f: |
| 19 | + long_description = pypandoc.convert("README.md", "rst") |
| 20 | +except (IOError, ImportError, OSError): |
| 21 | + with open("README.md", encoding="utf-8") as f: |
22 | 22 | long_description = f.read() |
23 | 23 |
|
24 | 24 |
|
25 | 25 | class VerifyVersionCommand(install): |
26 | 26 | """Custom command to verify that the git tag matches our version""" |
27 | | - description = 'verify that the git tag matches our version' |
| 27 | + |
| 28 | + description = "verify that the git tag matches our version" |
28 | 29 |
|
29 | 30 | def run(self): |
30 | | - if '0.0.0' == version: |
| 31 | + if "0.0.0" == version: |
31 | 32 | sys.exit("Version unspecified") |
32 | 33 |
|
33 | 34 |
|
34 | 35 | setup( |
35 | | - name='gradient', |
| 36 | + name="gradient", |
36 | 37 | version=version, |
37 | | - description='Paperspace Python', |
| 38 | + description="Paperspace Python", |
38 | 39 | long_description=long_description, |
39 | 40 | long_description_content_type="text/markdown", |
40 | | - url='https://github.com/paperspace/gradient-cli', |
41 | | - author='Paperspace Co.', |
42 | | - author_email='info@paperspace.com', |
| 41 | + url="https://github.com/paperspace/gradient-cli", |
| 42 | + author="Paperspace Co.", |
| 43 | + author_email="info@paperspace.com", |
43 | 44 | classifiers=[ |
44 | | - 'Development Status :: 4 - Beta', |
45 | | - 'Intended Audience :: Developers', |
46 | | - 'Topic :: Software Development :: Libraries', |
47 | | - 'License :: OSI Approved :: ISC License (ISCL)', |
48 | | - 'Programming Language :: Python :: 2.7', |
49 | | - 'Programming Language :: Python :: 3.5', |
50 | | - 'Programming Language :: Python :: 3.6', |
51 | | - 'Programming Language :: Python :: 3.7', |
52 | | - 'Programming Language :: Python :: 3.8', |
| 45 | + "Development Status :: 7 - Inactive", |
| 46 | + "Intended Audience :: Developers", |
| 47 | + "Topic :: Software Development :: Libraries", |
| 48 | + "License :: OSI Approved :: ISC License (ISCL)", |
| 49 | + "Programming Language :: Python :: 2.7", |
| 50 | + "Programming Language :: Python :: 3.5", |
| 51 | + "Programming Language :: Python :: 3.6", |
| 52 | + "Programming Language :: Python :: 3.7", |
| 53 | + "Programming Language :: Python :: 3.8", |
53 | 54 | ], |
54 | | - keywords='paperspace api development library', |
55 | | - packages=find_packages(exclude=['contrib', 'docs', 'tests', 'old_tests']), |
| 55 | + keywords="paperspace api development library", |
| 56 | + packages=find_packages(exclude=["contrib", "docs", "tests", "old_tests"]), |
56 | 57 | install_requires=[ |
57 | | - 'requests[security]', |
58 | | - 'six', |
59 | | - 'click>=8.0.1,<9.0', |
60 | | - 'terminaltables', |
61 | | - 'click-didyoumean', |
62 | | - 'click-help-colors', |
63 | | - 'click-completion', |
64 | | - 'colorama==0.4.3', |
65 | | - 'requests-toolbelt', |
66 | | - 'progressbar2', |
67 | | - 'halo', |
68 | | - 'marshmallow<3.0', |
69 | | - 'attrs<=19', |
70 | | - 'PyYAML==5.3.1', |
71 | | - 'python-dateutil==2.*', |
72 | | - 'websocket-client==0.57.*', |
73 | | - 'gradient-utils>=0.1.2', |
74 | | - 'gql[requests]==3.0.0a6', |
75 | | - 'windows-curses>=2.3.0 ; platform_system=="Windows"' |
| 58 | + "requests[security]", |
| 59 | + "six", |
| 60 | + "click>=8.0.1,<9.0", |
| 61 | + "terminaltables", |
| 62 | + "click-didyoumean", |
| 63 | + "click-help-colors", |
| 64 | + "click-completion", |
| 65 | + "colorama==0.4.3", |
| 66 | + "requests-toolbelt", |
| 67 | + "progressbar2", |
| 68 | + "halo", |
| 69 | + "marshmallow<3.0", |
| 70 | + "attrs<=19", |
| 71 | + "PyYAML==5.3.1", |
| 72 | + "python-dateutil==2.*", |
| 73 | + "websocket-client==0.57.*", |
| 74 | + "gradient-utils>=0.1.2", |
| 75 | + "gql[requests]==3.0.0a6", |
| 76 | + 'windows-curses>=2.3.0 ; platform_system=="Windows"', |
76 | 77 | ], |
77 | | - entry_points={'console_scripts': [ |
78 | | - 'gradient = gradient:main.main', |
79 | | - ]}, |
| 78 | + entry_points={ |
| 79 | + "console_scripts": [ |
| 80 | + "gradient = gradient:main.main", |
| 81 | + ] |
| 82 | + }, |
80 | 83 | extras_require={ |
81 | 84 | "dev": [ |
82 | | - 'tox', |
83 | | - 'pytest', |
84 | | - 'mock', |
85 | | - 'twine', |
86 | | - 'sphinx', |
| 85 | + "tox", |
| 86 | + "pytest", |
| 87 | + "mock", |
| 88 | + "twine", |
| 89 | + "sphinx", |
87 | 90 | 'pathlib2;python_version<"3.4"', |
88 | | - 'sphinx-click', |
89 | | - 'recommonmark' |
| 91 | + "sphinx-click", |
| 92 | + "recommonmark", |
90 | 93 | ], |
91 | 94 | }, |
92 | 95 | cmdclass={ |
93 | | - 'verify': VerifyVersionCommand, |
| 96 | + "verify": VerifyVersionCommand, |
94 | 97 | }, |
95 | 98 | ) |
0 commit comments