2015-10-16 00:56:34 +02:00
|
|
|
from distutils.core import setup
|
|
|
|
import os
|
2014-05-29 01:40:58 +02:00
|
|
|
|
2019-01-21 18:58:03 +01:00
|
|
|
# determine the directory in which to install system-wide cheatsheets
|
|
|
|
# KLUDGE: It would be better to read `/usr/share/cheat` from `config/cheat`
|
|
|
|
# rather than hard-coding it here
|
|
|
|
cheat_path = os.environ.get('CHEAT_PATH') or '/usr/share/cheat'
|
|
|
|
|
|
|
|
# aggregate the systme-wide cheatsheets
|
2018-05-12 17:19:16 +02:00
|
|
|
cheat_files = []
|
|
|
|
for f in os.listdir('cheat/cheatsheets/'):
|
2019-02-01 21:24:04 +01:00
|
|
|
cheat_files.append(os.path.join('cheat/cheatsheets/', f))
|
2018-05-12 17:19:16 +02:00
|
|
|
|
2019-01-21 18:58:03 +01:00
|
|
|
# specify build params
|
2014-04-27 05:31:13 +02:00
|
|
|
setup(
|
2019-02-01 21:24:04 +01:00
|
|
|
name='cheat',
|
2019-02-13 18:42:58 +01:00
|
|
|
version='2.5.1',
|
2019-02-01 21:24:04 +01:00
|
|
|
author='Chris Lane',
|
|
|
|
author_email='chris@chris-allen-lane.com',
|
|
|
|
license='GPL3',
|
|
|
|
description='cheat allows you to create and view interactive cheatsheets '
|
2015-10-16 00:56:34 +02:00
|
|
|
'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.',
|
2019-02-01 21:24:04 +01:00
|
|
|
url='https://github.com/chrisallenlane/cheat',
|
|
|
|
packages=[
|
2015-10-16 00:56:34 +02:00
|
|
|
'cheat',
|
|
|
|
'cheat.test',
|
|
|
|
],
|
2019-02-01 21:24:04 +01:00
|
|
|
scripts=['bin/cheat'],
|
|
|
|
install_requires=[
|
2014-04-27 05:31:13 +02:00
|
|
|
'docopt >= 0.6.1',
|
|
|
|
'pygments >= 1.6.0',
|
2019-01-29 17:42:14 +01:00
|
|
|
'termcolor >= 1.1.0',
|
2018-05-12 17:19:16 +02:00
|
|
|
],
|
2019-02-01 21:24:04 +01:00
|
|
|
data_files=[
|
2019-01-21 18:58:03 +01:00
|
|
|
(cheat_path, cheat_files),
|
2018-05-24 14:12:43 +02:00
|
|
|
('/etc', ['config/cheat']),
|
2018-05-12 17:19:16 +02:00
|
|
|
],
|
2014-04-27 05:31:13 +02:00
|
|
|
)
|