/
Makefile
38 lines (28 loc) 路 672 Bytes
/
Makefile
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
# Define variables
PYTHON=python
PIP=pip
PACKAGE=megabots
.PHONY: install test clean build publish
install:
$(PIP) install -r requirements.txt
test:
$(PYTHON) -m pytest ./tests
clean:
rm -rf build dist *.egg-info .pytest_cache ./**/__pycache__
build:
$(PYTHON) setup.py sdist bdist_wheel
publish: clean build
$(PYTHON) -m twine upload dist/*
trace:
langchain-server
freeze:
$(PIP) freeze > requirements.txt
gradio:
gradio app.py
help:
@echo "install - install dependencies"
@echo "test - run tests"
@echo "clean - remove build artifacts"
@echo "build - build package"
@echo "publish - publish package to PyPI"
@echo "help - show this help message"