mirror of
				https://github.com/enpaul/peewee-plus.git
				synced 2025-11-04 09:16:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# kodak makefile
 | 
						|
 | 
						|
PROJECT = peewee_plus
 | 
						|
 | 
						|
.PHONY: help
 | 
						|
# Put it first so that "make" without argument is like "make help"
 | 
						|
# Adapted from:
 | 
						|
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
 | 
						|
help: ## List Makefile targets
 | 
						|
	$(info Makefile documentation)
 | 
						|
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'
 | 
						|
 | 
						|
clean-tox:
 | 
						|
	rm --recursive --force ./.mypy_cache
 | 
						|
	rm --recursive --force ./.tox
 | 
						|
	rm --force .coverage
 | 
						|
	find ./tests -type d -name __pycache__ -prune -exec rm --recursive --force {} \;
 | 
						|
 | 
						|
clean-py:
 | 
						|
	rm --recursive --force ./dist
 | 
						|
	rm --recursive --force ./build
 | 
						|
	rm --recursive --force ./*.egg-info
 | 
						|
	find ./ -type d -name __pycache__ -prune -exec rm --recursive --force {} \;
 | 
						|
 | 
						|
clean: clean-tox clean-py; ## Clean temp build/cache files and directories
 | 
						|
 | 
						|
wheel: ## Build Python binary distribution wheel package
 | 
						|
	poetry build --format wheel
 | 
						|
 | 
						|
source: ## Build Python source distribution package
 | 
						|
	poetry build --format sdist
 | 
						|
 | 
						|
build: clean wheel source; ## Build all distribution packages
 | 
						|
 | 
						|
test: clean-tox ## Run the project testsuite(s)
 | 
						|
	poetry run tox --parallel
 | 
						|
 | 
						|
publish: clean test build ## Build and upload to pypi (requires $PYPI_API_KEY be set)
 | 
						|
	@poetry publish --username __token__ --password $(PYPI_API_KEY)
 | 
						|
 | 
						|
dev: ## Create local dev environment
 | 
						|
	poetry install --sync --with dev --with ci --with test --with security --with static
 | 
						|
	poetry run pre-commit install
 |