1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 12:24:29 +00:00
thefuck/setup.py

35 lines
1.2 KiB
Python
Raw Normal View History

2015-07-01 07:37:41 +05:30
#!/usr/bin/env python
2015-04-08 18:15:49 +02:00
from setuptools import setup, find_packages
import sys
2015-04-08 18:15:49 +02:00
if sys.version_info < (2, 7):
2015-07-07 16:39:21 +03:00
print('thefuck requires Python version 2.7 or later' +
' ({}.{} detected).'.format(*sys.version_info[:2]))
2015-07-01 07:37:41 +05:30
sys.exit(-1)
2015-07-07 16:39:21 +03:00
elif (3, 0) < sys.version_info < (3, 3):
print('thefuck requires Python version 3.3 or later' +
' ({}.{} detected).'.format(*sys.version_info[:2]))
2015-07-01 07:37:41 +05:30
sys.exit(-1)
2015-04-08 18:15:49 +02:00
2015-07-19 22:33:56 +03:00
VERSION = '2.0'
2015-04-21 22:30:15 +02:00
2015-07-04 12:24:09 -03:00
install_requires = ['psutil', 'colorama', 'six']
2015-07-17 18:37:49 +02:00
extras_require = {':python_version<"3.4"': ['pathlib']}
2015-04-21 22:30:15 +02:00
2015-04-08 18:15:49 +02:00
setup(name='thefuck',
2015-04-21 22:30:15 +02:00
version=VERSION,
2015-04-08 18:19:01 +02:00
description="Magnificent app which corrects your previous console command",
author='Vladimir Iakovlev',
author_email='nvbn.rm@gmail.com',
url='https://github.com/nvbn/thefuck',
license='MIT',
2015-04-21 22:30:15 +02:00
packages=find_packages(exclude=['ez_setup', 'examples',
'tests', 'release']),
2015-04-08 18:15:49 +02:00
include_package_data=True,
zip_safe=False,
2015-07-04 12:24:09 -03:00
install_requires=install_requires,
2015-07-17 18:37:49 +02:00
extras_require=extras_require,
2015-04-08 18:15:49 +02:00
entry_points={'console_scripts': [
2015-05-07 13:32:23 +02:00
'thefuck = thefuck.main:main',
'thefuck-alias = thefuck.shells:app_alias']})