mirror of
https://github.com/cheat/cheat.git
synced 2024-11-26 07:51:35 +01:00
Undid packaging refactoring.
This commit is contained in:
parent
3b2848668a
commit
20d52376f9
@ -31,15 +31,14 @@ Options:
|
||||
"""
|
||||
|
||||
# require the dependencies
|
||||
import sheet
|
||||
import sheets
|
||||
from utils import *
|
||||
from cheat import *
|
||||
from cheat.utils import *
|
||||
from docopt import docopt
|
||||
|
||||
|
||||
def main():
|
||||
if __name__ == '__main__':
|
||||
# parse the command-line options
|
||||
options = docopt(__doc__, version='cheat 2.1.17')
|
||||
options = docopt(__doc__, version='cheat 2.1.16')
|
||||
|
||||
# list directories
|
||||
if options['--directories']:
|
||||
@ -60,6 +59,3 @@ def main():
|
||||
# print the cheatsheet
|
||||
else:
|
||||
print(colorize(sheet.read(options['<cheatsheet>'])))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
46
setup.py
46
setup.py
@ -1,32 +1,26 @@
|
||||
"""cheat
|
||||
~~~~~~~~
|
||||
cheat allows you to create and view interactive cheatsheets on the
|
||||
command-line. It was designed to help remind *nix system administrators of
|
||||
options for commands that they use frequently, but not frequently enough
|
||||
to remember.
|
||||
:license: GPL3
|
||||
"""
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from distutils.core import setup
|
||||
import os
|
||||
|
||||
setup(
|
||||
name = 'cheat',
|
||||
version = '2.1.17',
|
||||
author = 'Chris Lane',
|
||||
author_email = 'chris@chris-allen-lane.com',
|
||||
license = 'GPL3',
|
||||
description = 'cheat allows you to create and view interactive cheatsheets on the command-line',
|
||||
long_description = __doc__,
|
||||
url = 'https://github.com/chrisallenlane/cheat',
|
||||
packages = find_packages(),
|
||||
package_data = {
|
||||
'cheat.cheatsheets': ['*'],
|
||||
},
|
||||
entry_points = {
|
||||
'console_scripts': [
|
||||
'cheat = cheat.app:main',
|
||||
],
|
||||
name = 'cheat',
|
||||
version = '2.1.16',
|
||||
author = 'Chris Lane',
|
||||
author_email = 'chris@chris-allen-lane.com',
|
||||
license = 'GPL3',
|
||||
description = 'cheat allows you to create and view interactive cheatsheets '
|
||||
'on the command-line. It was designed to help remind *nix system '
|
||||
'administrators of options for commands that they use frequently, but not '
|
||||
'frequently enough to remember.',
|
||||
url = 'https://github.com/chrisallenlane/cheat',
|
||||
packages = [
|
||||
'cheat',
|
||||
'cheat.cheatsheets',
|
||||
'cheat.test',
|
||||
],
|
||||
package_data = {
|
||||
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
|
||||
},
|
||||
scripts = ['bin/cheat'],
|
||||
install_requires = [
|
||||
'docopt >= 0.6.1',
|
||||
'pygments >= 1.6.0',
|
||||
|
Loading…
Reference in New Issue
Block a user