Compare commits
No commits in common. "d59a38721ee01f7822def002804bacc171cbfaf5" and "cf7fff35ae811275eb695565a36af8b7e7358a5a" have entirely different histories.
d59a38721e
...
cf7fff35ae
|
@ -1,11 +1,4 @@
|
|||
Negro Mate Web
|
||||
==================
|
||||
|
||||
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 .
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/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()
|
|
@ -98,11 +98,8 @@ def run(args, **kwargs):
|
|||
'rm',
|
||||
previous_hash,
|
||||
]
|
||||
result = subprocess.run(command)
|
||||
if result.returncode != 0:
|
||||
logger.info('Previous {} hash not removed: {}'.format(previous_hash, result.stdout))
|
||||
else:
|
||||
logger.info('Previous hash unpinned on local')
|
||||
subprocess.check_call(command)
|
||||
logger.info('Previous hash unpinned on local')
|
||||
|
||||
# remove previous pin on server
|
||||
data = urllib.parse.urlencode({
|
||||
|
|
|
@ -33,4 +33,4 @@ def run(args, **kwargs):
|
|||
directory=str(args.song_folder.expanduser()),
|
||||
)
|
||||
|
||||
test(HandlerClass=Handler, port=args.port, bind=args.bind or None)
|
||||
test(HandlerClass=Handler, port=args.port, bind=args.bind)
|
||||
|
|
Loading…
Reference in New Issue