Compare commits

..

5 Commits

5 changed files with 16 additions and 17 deletions

View File

@ -1,4 +1,11 @@
Negro Mate Web Negro Mate Web
================== ==================
Static html compiler for the web of Negro Mate. Static html compiler for the web of Negro Mate.
Install from source
-------------------
Instalation uses the pep517 packaging format, whichs requires pip version
19 or newer.
pip install "pip>=19"
pip install .

View File

@ -1,11 +0,0 @@
#!/usr/bin/env python
import sys
from pathlib import Path, PurePath
from negromateweb.builder import Builder
builder = Builder(
Path('../bideoak'),
Path('../libreto/libreto.pdf'),
)
builder.build()

View File

@ -98,8 +98,11 @@ def run(args, **kwargs):
'rm', 'rm',
previous_hash, previous_hash,
] ]
subprocess.check_call(command) result = subprocess.run(command)
logger.info('Previous hash unpinned on local') if result.returncode != 0:
logger.info('Previous {} hash not removed: {}'.format(previous_hash, result.stdout))
else:
logger.info('Previous hash unpinned on local')
# remove previous pin on server # remove previous pin on server
data = urllib.parse.urlencode({ data = urllib.parse.urlencode({

View File

@ -33,4 +33,4 @@ def run(args, **kwargs):
directory=str(args.song_folder.expanduser()), directory=str(args.song_folder.expanduser()),
) )
test(HandlerClass=Handler, port=args.port, bind=args.bind) test(HandlerClass=Handler, port=args.port, bind=args.bind or None)

View File

@ -21,8 +21,8 @@ zip_safe = false
python_requires = >= 3.4 python_requires = >= 3.4
install_requires = install_requires =
Jinja2 Jinja2
ass ==0.4.4 ass ==0.5.2
negromate.songs ==1.1 negromate.songs ==1.3
[options.entry_points] [options.entry_points]
negromate.commands = negromate.commands =