-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 1.04 KB
/
Makefile
File metadata and controls
39 lines (30 loc) · 1.04 KB
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
target:
@echo -e "\033[1mneofetch-win v$(shell grep -oP '(?<=__version__ = ")[^"]*' neofetch_win/__init__.py)\033[0m" \
"\nUse 'make \033[0;36mtarget\033[0m' where \033[0;36mtarget\033[0m is one of the following:"
@awk -F ':|##' '/^[^\t].+?:.*?##/ { printf " \033[0;36m%-15s\033[0m %s\n", $$1, $$NF }' $(MAKEFILE_LIST)
# Production tools
install: ## Install the package
pip install .
uninstall: ## Uninstall the package
pip uninstall neofetch-win -y
reinstall: uninstall install ## Reinstall the package
# Development tools
install_dev: ## Install the package in development mode
pip install .[dev]
venv: ## Create a virtual environment
python -m venv .venv
type: ## Run pyright type checker
@pyright --pythonversion 3.11
lint: ## Run ruff linter
@ruff check --config pyproject.toml
clean:
rm -rf ./build
rm -rf ./dist
rm -rf ./neofetch-win.egg-info
# Maintainer-only commands
upload_pypi: ## Maintainer only - Upload latest version to PyPi
@echo Uploading to PyPi...
pip install .
python -m build
twine upload dist/*
@echo Done!