|  | 
|  | 1 | +# -*- coding: utf-8 -*- | 
|  | 2 | + | 
|  | 3 | +"""Replace the default ``flask shell`` command with a similar one running PTPython.""" | 
|  | 4 | + | 
|  | 5 | +from __future__ import absolute_import, division, print_function | 
|  | 6 | + | 
| 1 | 7 | from setuptools import setup | 
| 2 | 8 | 
 | 
| 3 | 9 | 
 | 
|  | 10 | +URL = 'https://github.com/jacquerie/flask-shell-ptpython' | 
|  | 11 | + | 
|  | 12 | +readme = open('README.rst').read() | 
|  | 13 | + | 
|  | 14 | +setup_requires = [ | 
|  | 15 | + 'autosemver~=0.0,>=0.5.2', | 
|  | 16 | +] | 
|  | 17 | + | 
|  | 18 | +install_requires = [ | 
|  | 19 | + 'Flask~=0.0,>=0.12.2', | 
|  | 20 | + 'click~=6.0,>=6.7', | 
|  | 21 | + 'ptpython~=0.0,>=0.41', | 
|  | 22 | +] | 
|  | 23 | + | 
|  | 24 | +docs_require = [] | 
|  | 25 | + | 
|  | 26 | +tests_require = [ | 
|  | 27 | + 'flake8-future-import~=0.0,>=0.4.3', | 
|  | 28 | + 'pytest-flake8~=0.0,>=.0.9.1', | 
|  | 29 | + 'pytest~=3.0,>=3.2.3', | 
|  | 30 | +] | 
|  | 31 | + | 
|  | 32 | +extras_require = { | 
|  | 33 | + 'docs': docs_require, | 
|  | 34 | + 'tests': tests_require, | 
|  | 35 | +} | 
|  | 36 | + | 
|  | 37 | +extras_require['all'] = [] | 
|  | 38 | +for name, reqs in extras_require.items(): | 
|  | 39 | + extras_require['all'].extend(reqs) | 
|  | 40 | + | 
| 4 | 41 | setup( | 
| 5 |  | - name="flask-shell-ptpython", | 
| 6 |  | - author="Jacopo Notarstefano", | 
| 7 |  | - author_email="jacopo.notarstefano@gmail.com", | 
| 8 |  | - description="Replace the default `flask shell` command with a similar command running Ptpython.", | 
| 9 |  | - url="http://github.com/jacquerie/flask-shell-ptpython", | 
| 10 |  | - version="0.0.1", | 
|  | 42 | + name='flask-shell-ptpython', | 
|  | 43 | + autosemver={ | 
|  | 44 | + 'bugtracker_url': URL + '/issues', | 
|  | 45 | + }, | 
|  | 46 | + url=URL, | 
|  | 47 | + license='MIT', | 
|  | 48 | + author='Jacopo Notarstefano', | 
|  | 49 | + author_email='jacopo.notarstefano@gmail.com', | 
| 11 | 50 |  py_modules=['flask_shell_ptpython'], | 
| 12 |  | - install_requires=[ | 
| 13 |  | - 'flask>=0.11', | 
| 14 |  | - 'click', | 
| 15 |  | - 'ptpython>=0.15', | 
| 16 |  | - ], | 
|  | 51 | + include_package_data=True, | 
|  | 52 | + zip_safe=False, | 
|  | 53 | + platforms='any', | 
|  | 54 | + description=__doc__, | 
|  | 55 | + long_description=readme, | 
|  | 56 | + setup_requires=setup_requires, | 
|  | 57 | + install_requires=install_requires, | 
|  | 58 | + tests_require=tests_require, | 
|  | 59 | + extras_require=extras_require, | 
| 17 | 60 |  entry_points={ | 
| 18 | 61 |  'flask.commands': [ | 
| 19 | 62 |  'shell=flask_shell_ptpython:shell_command', | 
| 20 | 63 |  ], | 
| 21 | 64 |  }, | 
|  | 65 | + classifiers=[ | 
|  | 66 | + 'Development Status :: 4 - Beta', | 
|  | 67 | + 'Environment :: Console', | 
|  | 68 | + 'Intended Audience :: Developers', | 
|  | 69 | + 'License :: OSI Approved :: MIT License', | 
|  | 70 | + 'Operating System :: OS Independent', | 
|  | 71 | + 'Programming Language :: Python :: 2', | 
|  | 72 | + 'Programming Language :: Python :: 2.7', | 
|  | 73 | + 'Programming Language :: Python :: 3', | 
|  | 74 | + 'Programming Language :: Python :: 3.5', | 
|  | 75 | + 'Programming Language :: Python :: 3.6', | 
|  | 76 | + 'Programming Language :: Python', | 
|  | 77 | + ], | 
| 22 | 78 | ) | 
0 commit comments