File: Makefile

package info (click to toggle)
mkdocs-redirects 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: python: 168; makefile: 23; sh: 17
file content (21 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clean:  ## Clean intermediate build files
	find . -name '__pycache__' | xargs rm -rf
	find . -name '*.pyc' | xargs rm -rf
	rm -rf dist/
.PHONY: clean

build: clean dev  ## Build the package (source distribution)
	python setup.py sdist
.PHONY: build

dev: clean  ## Setup development environment
	pip install .[dev]
.PHONY: dev

test: dev ## Run tests
	.tools/ci.sh
.PHONY: test

release: build  ## Release to PyPi
	twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
.PHONY: release