2019-02-08 17:21:09 +01:00
|
|
|
from cheat.appdirs import user_config_dir, user_data_dir
|
2015-10-16 00:56:34 +02:00
|
|
|
from distutils.core import setup
|
|
|
|
import os
|
2014-05-29 01:40:58 +02:00
|
|
|
|
2019-02-07 19:34:20 +01:00
|
|
|
# determine the path in which to install the cheatsheets included with the
|
|
|
|
# package
|
|
|
|
cheat_path = os.environ.get('CHEAT_PATH') or \
|
2019-02-08 17:21:09 +01:00
|
|
|
user_data_dir('cheat', 'cheat')
|
2019-02-07 19:34:20 +01:00
|
|
|
|
|
|
|
# determine the path in which to install the config file
|
|
|
|
config_path = os.environ.get('CHEAT_GLOBAL_CONF_PATH') or \
|
|
|
|
os.environ.get('CHEAT_LOCAL_CONF_PATH') or \
|
2019-02-08 17:21:09 +01:00
|
|
|
user_config_dir('cheat', 'cheat')
|
2019-01-21 18:58:03 +01:00
|
|
|
|
|
|
|
# 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-04 18:04:52 +01:00
|
|
|
version='2.5.0',
|
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),
|
2019-02-07 19:34:20 +01:00
|
|
|
(config_path, ['config/cheat']),
|
2018-05-12 17:19:16 +02:00
|
|
|
],
|
2014-04-27 05:31:13 +02:00
|
|
|
)
|