Skip to content

Commit e763774

Browse files
committed
make file
1 parent 7dcc114 commit e763774

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ transformers
1010
labml_nn
1111
labml_helpers
1212
einops
13+
*.egg-info
14+
build
15+
dist

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
clean: ## Clean
2+
rm -rf dist
3+
rm -rf build
4+
rm -rf *.egg-info
5+
rm -rf html
6+
7+
build: clean ## Build PIPy Package
8+
python setup.py sdist bdist_wheel
9+
10+
check-content: build ## List contents of PIPy Package
11+
tar -tvf dist/*.tar.gz
12+
13+
check: build ## Check PIPy Package
14+
twine check dist/*
15+
16+
upload: build ## Upload PIPy Package
17+
twine upload dist/*
18+
19+
install: ## Install from repo
20+
pip install -e .
21+
22+
uninstall: ## Uninstall
23+
pip uninstall labml_nn
24+
25+
help: ## Show this help.
26+
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
27+
28+
.PHONY: clean build check upload help
29+
.DEFAULT_GOAL := help

0 commit comments

Comments
 (0)