twitch-dl/Makefile

48 lines
959 B
Makefile
Raw Permalink Normal View History

2022-02-23 20:54:56 +00:00
.PHONY: docs
2018-01-25 10:09:20 +00:00
default : clean dist
2024-03-23 06:31:40 +00:00
dist:
python -m build
2018-01-25 10:09:20 +00:00
clean :
find . -name "*pyc" | xargs rm -rf $1
2024-04-27 16:59:47 +00:00
rm -rf build dist book bundle MANIFEST htmlcov deb_dist twitch-dl.*.pyz twitch-dl.1.man twitch_dl.egg-info
2020-08-13 11:47:03 +00:00
bundle:
mkdir bundle
cp twitchdl/__main__.py bundle
pip install . --target=bundle
rm -rf bundle/*.dist-info
find bundle/ -type d -name "__pycache__" -exec rm -rf {} +
python -m zipapp \
--python "/usr/bin/env python3" \
--output twitch-dl.`git describe`.pyz bundle \
--compress
2018-01-25 10:09:20 +00:00
publish :
2019-06-06 07:28:23 +00:00
twine upload dist/*.tar.gz dist/*.whl
2018-01-25 10:09:20 +00:00
coverage:
2024-04-24 06:59:01 +00:00
pytest --cov=twitchdl --cov-report html tests/
2018-01-25 10:09:20 +00:00
2019-02-10 09:46:03 +00:00
man:
scdoc < twitch-dl.1.scd > twitch-dl.1.man
test:
pytest
changelog:
./scripts/generate_changelog > CHANGELOG.md
2022-02-23 20:54:56 +00:00
docs: changelog
python scripts/generate_docs
mdbook build
docs-serve:
python scripts/generate_docs
mdbook serve --port 8000
docs-deploy: docs
rsync --archive --compress --delete --stats book/ bezdomni:web/twitch-dl