mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 14:01:36 +01:00
89bb9aaf13
The prior attempt to resolve #420 and #431 relied on `appdirs` to determine the appropriate directories into which to install files. Previously, `setup.py` dynamically attempted to install `appdirs` via `pip` during installation if necessary. This attempt to failed on multiple platforms, however, due to backwards-incompatible `pip` interfaces. As a workaround, I have now directly included `appdirs` (a small module) within `cheat` itself. This approach is explicitly supported per the `appdirs` documentation: https://pypi.org/project/appdirs/
11 lines
220 B
Bash
Executable File
11 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Resolve the app root
|
|
SCRIPT=`realpath $0`
|
|
SCRIPTPATH=`dirname $SCRIPT`
|
|
APPROOT=`realpath "$SCRIPTPATH/.."`
|
|
|
|
flake8 $APPROOT/setup.py
|
|
flake8 $APPROOT/bin/cheat
|
|
flake8 $APPROOT/cheat/*.py --exclude=appdirs.py
|