Extract lscolors into its own python project.
This commit is contained in:
parent
895470b01b
commit
a724d234c3
6 changed files with 20 additions and 5 deletions
|
|
@ -7,3 +7,4 @@ decorator==5.1.0
|
|||
pexpect==4.8.0
|
||||
termstr==2021.10.18
|
||||
fill3==2021.10.18
|
||||
lscolors==2021.10.18
|
||||
|
|
|
|||
1
install
1
install
|
|
@ -6,5 +6,6 @@ set -e
|
|||
|
||||
python3.9 -m pip install -r ./termstr/requirements.txt $1 ./termstr
|
||||
python3.9 -m pip install -r ./fill3/requirements.txt $1 ./fill3
|
||||
python3.9 -m pip install $1 ./lscolors
|
||||
python3.9 -m pip install -r ./eris/requirements.txt $1 ./eris
|
||||
./install-tools
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
|
||||
|
||||
|
||||
"""Determine a color for a file based on its file type.
|
||||
|
||||
This is done in the same way as the ls command.
|
||||
"""
|
||||
"""Give coloring for file types as in the ls command."""
|
||||
|
||||
|
||||
import os
|
||||
16
lscolors/setup.py
Executable file
16
lscolors/setup.py
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3.9
|
||||
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
|
||||
setup(name="lscolors",
|
||||
version="2021.10.18",
|
||||
description=("Give coloring for file types as in the ls command."),
|
||||
url="https://github.com/ahamilton/eris",
|
||||
author="Andrew Hamilton",
|
||||
license="Artistic 2.0",
|
||||
py_modules=["lscolors"])
|
||||
2
test-all
2
test-all
|
|
@ -4,7 +4,7 @@
|
|||
FAILURE=0
|
||||
CODEBASE_PATH=$(dirname $0)
|
||||
cd ${CODEBASE_PATH}
|
||||
for test in {termstr,fill3,eris}/tests/*_test.py; do
|
||||
for test in {termstr,fill3,lscolors,eris}/tests/*_test.py; do
|
||||
echo "Testing $test …"
|
||||
./${test} 2>&1
|
||||
FAILURE=$(($FAILURE | $?))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue