-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 829 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
DC_RUN_OPTS := --rm --service-ports
test:
pipenv run python3 -m pytest
dcbuild:
docker-compose build \
--build-arg NEWUID=$(shell id -u) \
--build-arg NEWGID=$(shell id -g) \
peewee_extras
dcshell:
docker-compose run $(DC_RUN_OPTS) peewee_extras /bin/bash -i
clean:
rm -rf *.egg *.egg-info .tox .benchmarks .cache pytestdebug.log \
.coverage dist build .eggs
find . -name "*.pyc" -exec rm -rf {} \;
find . -name "__pycache__" -exec rm -rf {} \;
submit:
python setup.py sdist upload
setup_databases:
psql -c 'drop database if exists peewee_test;' -U postgres
psql -c 'create database peewee_test;' -U postgres
mysql -u root -e 'drop database if exists peewee_test;'
mysql -u root -e 'create database peewee_test;'
publish:
pipenv run python3 setup.py sdist bdist_wheel
pipenv run twine upload dist/*