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
|
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 .
|
||||||
|
|
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',
|
'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({
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue