forked from nvbn/thefuck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·73 lines (63 loc) · 1.91 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·73 lines (63 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# Will be deprecated soon
from setuptools import setup, find_packages
import sys
import os
import fastentrypoints
# Enforce Python 3.12+
if sys.version_info < (3, 12):
print(
f"thefuck requires Python 3.12 or later "
f"({sys.version_info.major}.{sys.version_info.minor} detected)."
)
sys.exit(-1)
# Show help instead of failing when setup.py is called without any command.
if len(sys.argv) == 1:
sys.argv.append('--help')
if os.environ.get('CONVERT_README'):
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
else:
long_description = ''
VERSION = '4.1'
install_requires = ['psutil', 'colorama', 'six']
extras_require = {
':python_version>"3.12"': ['decorator', 'pyte'],
":sys_platform=='win32'": ['win_unicode_console']
}
if sys.platform == "win32":
scripts = ['scripts\\fuck.bat', 'scripts\\fuck.ps1']
entry_points = {
'console_scripts': [
'thefuck = thefuck.entrypoints.main:main',
'thefuck_firstuse = thefuck.entrypoints.not_configured:main'
]
}
else:
scripts = []
entry_points = {
'console_scripts': [
'thefuck = thefuck.entrypoints.main:main',
'fuck = thefuck.entrypoints.not_configured:main'
]
}
setup(
name='thefuck',
version=VERSION,
description="Magnificent app which corrects your previous console command",
long_description=long_description,
author='Infomanraf',
author_email='infomanraf.gleaming971@passinbox.com',
url='https://github.com/Radiump123/thefuck-py3.12.x',
license='MIT',
packages=find_packages(
exclude=['ez_setup', 'examples', 'tests', 'tests.*', 'release']
),
include_package_data=True,
zip_safe=False,
python_requires='>=3.12',
install_requires=install_requires,
extras_require=extras_require,
scripts=scripts,
entry_points=entry_points
)