Undid packaging refactoring.

This commit is contained in:
Chris Lane 2015-10-15 18:56:34 -04:00
parent 3b2848668a
commit 20d52376f9
2 changed files with 24 additions and 34 deletions

View File

@ -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()

View File

@ -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 '
url = 'https://github.com/chrisallenlane/cheat', 'administrators of options for commands that they use frequently, but not '
packages = find_packages(), 'frequently enough to remember.',
package_data = { url = 'https://github.com/chrisallenlane/cheat',
'cheat.cheatsheets': ['*'], packages = [
}, 'cheat',
entry_points = { 'cheat.cheatsheets',
'console_scripts': [ 'cheat.test',
'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',