added formatting
This commit is contained in:
@@ -21,9 +21,11 @@ clean: ## Clean build and .egg folder in py modules
|
||||
pipx: ## Install all packages with pipx
|
||||
for module in *; do if [ -f $$module/setup.py ]; then pipx install $$module; fi; done
|
||||
|
||||
format: ## Reformat packages with black
|
||||
black SimpleWebPage/
|
||||
black TSVFilter/
|
||||
black markslider/
|
||||
|
||||
packages: clean ## Create packages for every module
|
||||
for module in *; do if [ -f $$module/setup.py ]; then tar czf $$module.tgz $$module; fi; done
|
||||
|
||||
tar-SimpleWebPage: clean ## Create package for SimpleWebPage
|
||||
tar czf SimpleWebPage.tgz SimpleWebPage/
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
from distutils.core import setup
|
||||
|
||||
|
||||
def version_reader(path):
|
||||
for line in open(path, "rt").read(1024).split("\n"):
|
||||
if line.startswith("VERSION"):
|
||||
return line.split("=")[1].strip().replace('"', "")
|
||||
|
||||
|
||||
version = version_reader(os.path.join("simplewebpage", "__init__.py"))
|
||||
setup(
|
||||
name="SimpleWebPage",
|
||||
@@ -19,7 +21,5 @@ setup(
|
||||
"SimpleWebPage=simplewebpage:main",
|
||||
],
|
||||
},
|
||||
install_requires = [
|
||||
'markdown>=3.3.4'
|
||||
]
|
||||
install_requires=["markdown>=3.3.4"],
|
||||
)
|
||||
|
||||
@@ -28,6 +28,7 @@ import traceback, tty, termios, subprocess, signal
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
import ansicodes, md_color
|
||||
|
||||
try:
|
||||
import climage
|
||||
except ImportError:
|
||||
@@ -278,7 +279,13 @@ class slide_reader:
|
||||
width = max(5, self.scrsize[1] - 10)
|
||||
output = climage.convert(
|
||||
image.group(3),
|
||||
is_unicode=True, is_truecolor=True, is_256color=False, is_16color=False, is_8color=False, width=width, palette="default"
|
||||
is_unicode=True,
|
||||
is_truecolor=True,
|
||||
is_256color=False,
|
||||
is_16color=False,
|
||||
is_8color=False,
|
||||
width=width,
|
||||
palette="default",
|
||||
)
|
||||
output = output.split("\n")
|
||||
while len(output[0].strip()) == 0:
|
||||
|
||||
@@ -16,8 +16,6 @@ setup(
|
||||
author="Ville Rantanen",
|
||||
author_email="ville.q.rantanen@gmail.com",
|
||||
keywords=["Markdown", "Slideshow"],
|
||||
entry_points = {'console_scripts': 'markslider = markslider.markslider:main'},
|
||||
install_requires = [
|
||||
'pygments', 'climage'
|
||||
]
|
||||
entry_points={"console_scripts": "markslider = markslider.markslider:main"},
|
||||
install_requires=["pygments", "climage"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user