Compare commits
5 Commits
cf7fff35ae
...
d59a38721e
Author | SHA1 | Date |
---|---|---|
Ales (Shagi) Zabala Alava | d59a38721e | |
Ales (Shagi) Zabala Alava | f99c27fd57 | |
Ales (Shagi) Zabala Alava | 6d497ad367 | |
Ales (Shagi) Zabala Alava | 1d3f170f01 | |
Ales (Shagi) Zabala Alava | 35fb6a81f9 |
|
@ -1,4 +1,11 @@
|
|||
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 .
|
||||
|
|
11
build.py
11
build.py
|
@ -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()
|
|
@ -98,8 +98,11 @@ def run(args, **kwargs):
|
|||
'rm',
|
||||
previous_hash,
|
||||
]
|
||||
subprocess.check_call(command)
|
||||
logger.info('Previous hash unpinned on local')
|
||||
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')
|
||||
|
||||
# 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)
|
||||
test(HandlerClass=Handler, port=args.port, bind=args.bind or None)
|
||||
|
|
Loading…
Reference in New Issue