-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (30 loc) · 974 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
39
40
41
42
43
.PHONY: clean all deps pypi-test test install
.PHONY: lint pypi pypi-test release
all: deps test lint install
deps:
. venv/bin/activate && pip install --upgrade pip
. venv/bin/activate && pip install -r requirements.txt
venv:
virtualenv venv
test:
. venv/bin/activate && pytest -s
. venv/bin/activate && ./smallscheme/main.py fact.scm
. venv/bin/activate && ./smallscheme/main.py -t tests.scm
lint:
. venv/bin/activate && pycodestyle smallscheme
install:
. venv/bin/activate && python setup.py install
clean:
rm -rf *.egg-info dist .pytest_cache *.html venv
pypi-test:
. venv/bin/activate && twine upload -r testpypi dist/*.tar.gz
pypi:
. venv/bin/activate && twine upload -r smallscheme dist/*.tar.gz
pip-docker-test:
docker build -t smallscheme-pip-test -f Dockerfile.piptest .
build-docker-test:
docker build -t smallscheme -f Dockerfile.build .
alltests: test build-docker-test
release:
./bumpver
. venv/bin/activate && python setup.py sdist