first commit
This commit is contained in:
4
scripts/format.sh
Executable file
4
scripts/format.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
root="$(dirname "$(readlink -f "$0")")"
|
||||
parent="$(dirname "$root")"
|
||||
autopep8 --in-place --recursive --aggressive --max-line-length=140 "$parent/gifmaker"
|
20
scripts/tag.py
Executable file
20
scripts/tag.py
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# This is used to create a tag in the git repo
|
||||
# You probably don't want to run this
|
||||
|
||||
# pacman: python-gitpython
|
||||
import os
|
||||
import git
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
here = Path(__file__).resolve()
|
||||
parent = here.parent.parent
|
||||
os.chdir(parent)
|
||||
|
||||
name = int(time.time())
|
||||
repo = git.Repo(".")
|
||||
repo.create_tag(name)
|
||||
repo.remotes.origin.push(name)
|
||||
print(f"Created tag: {name}")
|
8
scripts/test.sh
Executable file
8
scripts/test.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# This is used to test if the program is working properly
|
||||
|
||||
root="$(dirname "$(readlink -f "$0")")"
|
||||
parent="$(dirname "$root")"
|
||||
cd "$parent"
|
||||
|
||||
venv/bin/python -m gifmaker.main --script "scripts/test.toml"
|
13
scripts/test.toml
Normal file
13
scripts/test.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
input = "media/video.webm"
|
||||
output = "/tmp/gifmaker_test.gif"
|
||||
words = "Disregard [Random] ; Acquire [Random] ; [date] ; [number 0 999];"
|
||||
fontsize = 80
|
||||
fontcolor = "light2"
|
||||
bgcolor = "darkfont2"
|
||||
outline = "font"
|
||||
filter = "random2"
|
||||
width = 700
|
||||
bottom = 30
|
||||
right = 30
|
||||
delay = "p100"
|
||||
verbose = true
|
9
scripts/venv.sh
Executable file
9
scripts/venv.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# This is used to install the python virtual env
|
||||
|
||||
root="$(dirname "$(readlink -f "$0")")"
|
||||
parent="$(dirname "$root")"
|
||||
cd "$parent"
|
||||
|
||||
python -m venv venv &&
|
||||
venv/bin/pip install -r requirements.txt
|
Reference in New Issue
Block a user