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
|
# require the dependencies
|
||||||
import sheet
|
from cheat import *
|
||||||
import sheets
|
from cheat.utils import *
|
||||||
from utils import *
|
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
|
|
||||||
|
|
||||||
def main():
|
if __name__ == '__main__':
|
||||||
# parse the command-line options
|
# parse the command-line options
|
||||||
options = docopt(__doc__, version='cheat 2.1.17')
|
options = docopt(__doc__, version='cheat 2.1.16')
|
||||||
|
|
||||||
# list directories
|
# list directories
|
||||||
if options['--directories']:
|
if options['--directories']:
|
||||||
@ -60,6 +59,3 @@ def main():
|
|||||||
# print the cheatsheet
|
# print the cheatsheet
|
||||||
else:
|
else:
|
||||||
print(colorize(sheet.read(options['<cheatsheet>'])))
|
print(colorize(sheet.read(options['<cheatsheet>'])))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
34
setup.py
34
setup.py
@ -1,32 +1,26 @@
|
|||||||
"""cheat
|
from distutils.core import setup
|
||||||
~~~~~~~~
|
import os
|
||||||
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
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'cheat',
|
name = 'cheat',
|
||||||
version = '2.1.17',
|
version = '2.1.16',
|
||||||
author = 'Chris Lane',
|
author = 'Chris Lane',
|
||||||
author_email = 'chris@chris-allen-lane.com',
|
author_email = 'chris@chris-allen-lane.com',
|
||||||
license = 'GPL3',
|
license = 'GPL3',
|
||||||
description = 'cheat allows you to create and view interactive cheatsheets on the command-line',
|
description = 'cheat allows you to create and view interactive cheatsheets '
|
||||||
long_description = __doc__,
|
'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',
|
url = 'https://github.com/chrisallenlane/cheat',
|
||||||
packages = find_packages(),
|
packages = [
|
||||||
package_data = {
|
'cheat',
|
||||||
'cheat.cheatsheets': ['*'],
|
'cheat.cheatsheets',
|
||||||
},
|
'cheat.test',
|
||||||
entry_points = {
|
|
||||||
'console_scripts': [
|
|
||||||
'cheat = cheat.app:main',
|
|
||||||
],
|
],
|
||||||
|
package_data = {
|
||||||
|
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
|
||||||
},
|
},
|
||||||
|
scripts = ['bin/cheat'],
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'docopt >= 0.6.1',
|
'docopt >= 0.6.1',
|
||||||
'pygments >= 1.6.0',
|
'pygments >= 1.6.0',
|
||||||
|
Loading…
Reference in New Issue
Block a user