File: Makefile

package info (click to toggle)
ghp-import 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 180 kB
  • sloc: python: 329; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DOCS_BRANCH := gh-pages
DOCS_REMOTE := origin
DOCS_OPTS := -p

install:
	pip install -e .[dev]

lint:
	flake8 ./ghp_import.py ./setup.py ./docs/build.py

docs:
	python ./docs/build.py
	ghp-import $(DOCS_OPTS) docs/ -b $(DOCS_BRANCH) -r $(DOCS_REMOTE) -m "Update docs [skip ci]" -o

clean:
	python -c "import os; os.remove(os.path.join('docs', 'index.html'))"
	git branch -D $(DOCS_BRANCH)
	git push $(DOCS_REMOTE) --delete $(DOCS_BRANCH)

release:
	python setup.py sdist bdist_wheel
	twine upload --skip-existing --non-interactive ./dist/*

.PHONY: docs lint install clean release