- Added instruction to lint `setup.py` to `ci/lint.sh`
- Updated `setup.py` per linter suggestions
This commit is contained in:
Chris Lane 2019-02-01 15:24:04 -05:00
parent a37577ee85
commit 9931b78c5f
2 changed files with 13 additions and 12 deletions

View File

@ -5,5 +5,6 @@ SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT` SCRIPTPATH=`dirname $SCRIPT`
APPROOT=`realpath "$SCRIPTPATH/.."` APPROOT=`realpath "$SCRIPTPATH/.."`
flake8 $APPROOT/setup.py
flake8 $APPROOT/bin/cheat flake8 $APPROOT/bin/cheat
flake8 $APPROOT/cheat/*.py flake8 $APPROOT/cheat/*.py

View File

@ -9,31 +9,31 @@ cheat_path = os.environ.get('CHEAT_PATH') or '/usr/share/cheat'
# aggregate the systme-wide cheatsheets # aggregate the systme-wide cheatsheets
cheat_files = [] cheat_files = []
for f in os.listdir('cheat/cheatsheets/'): for f in os.listdir('cheat/cheatsheets/'):
cheat_files.append(os.path.join('cheat/cheatsheets/',f)) cheat_files.append(os.path.join('cheat/cheatsheets/', f))
# specify build params # specify build params
setup( setup(
name = 'cheat', name='cheat',
version = '2.4.2', version='2.4.2',
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 ' description='cheat allows you to create and view interactive cheatsheets '
'on the command-line. It was designed to help remind *nix system ' 'on the command-line. It was designed to help remind *nix system '
'administrators of options for commands that they use frequently, but not ' 'administrators of options for commands that they use frequently, but not '
'frequently enough to remember.', 'frequently enough to remember.',
url = 'https://github.com/chrisallenlane/cheat', url='https://github.com/chrisallenlane/cheat',
packages = [ packages=[
'cheat', 'cheat',
'cheat.test', 'cheat.test',
], ],
scripts = ['bin/cheat'], scripts=['bin/cheat'],
install_requires = [ install_requires=[
'docopt >= 0.6.1', 'docopt >= 0.6.1',
'pygments >= 1.6.0', 'pygments >= 1.6.0',
'termcolor >= 1.1.0', 'termcolor >= 1.1.0',
], ],
data_files = [ data_files=[
(cheat_path, cheat_files), (cheat_path, cheat_files),
('/etc', ['config/cheat']), ('/etc', ['config/cheat']),
], ],