-
Notifications
You must be signed in to change notification settings - Fork 70
/
makefile
73 lines (61 loc) · 2.24 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
help:
$(info * deployment: build, publish, publish-test)
$(info * setup: init, demo)
clean-build:
$(info * cleaning build files)
@find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__
@rm -rf mnamer.egg-info build dist
clean-demo:
$(info * cleaning demo files)
@rm -rf build dist *.egg-info demo
clean: clean-build clean-demo
# Deployment Helpers -----------------------------------------------------------
init:
$(info * installing dependencies)
pip3 install -U pip
pip3 install -Ur requirements.txt
pip3 install -Ur requirements-dev.txt
build: clean-build init
$(info * building distributable)
python3 -m build --sdist --wheel --no-isolation > /dev/null 2>&1
publish: build
$(info * publishing to PyPI repository)
python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
publish-test: build
$(info * publishing to PyPI test repository)
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Setup Helpers ----------------------------------------------------------------
demo: clean-demo
$(info * setting up demo directory)
@mkdir -p \
demo \
'demo/Avengers Infinity War' \
'demo/Sample' \
'demo/Downloads' \
'demo/Images/Photos'
@cd demo && touch \
"Avengers Infinity War/Avengers.Infinity.War.en.srt" \
"Avengers Infinity War/Avengers.Infinity.War.wmv" \
"Downloads/Return of the Jedi 1080p.mkv" \
"Downloads/archer.2009.s10e07.webrip.x264-lucidtv.mkv" \
"Downloads/the.goonies.1985.mp4" \
"Images/Photos/DCM0001.jpg" \
"Images/Photos/DCM0002.jpg" \
"Ninja Turtles (1990).mkv" \
"O.J. - Made in America S01EP03 (2016) (1080p).mp4" \
"Planet Earth II S01E06 - Cities (2016) (2160p).mp4" \
"Pride & Prejudice 2005.ts" \
"Sample/the mandalorian s01x02.mp4" \
"Skiing Trip.mp4" \
"aladdin.1992.avi" \
"aladdin.2019.avi" \
"archer.2009.s10e07.webrip.x264-lucidtv.mp4" \
"game.of.thrones.01x05-eztv.mp4" \
"homework.txt" \
"kill.bill.2003.ts" \
"lost s01e01-02.mp4" \
"made up movie.mp4" \
"made up show s01e10.mkv" \
"s.w.a.t.2017.s02e01.mkv" \
"scan001.tiff" \
"temp.zip"