forked from MasoniteFramework/orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
43 lines (40 loc) · 1.04 KB
/
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
init: .env .bootstrapped-pip
.bootstrapped-pip: requirements.txt requirements.dev
pip install -r requirements.txt -r requirements.dev
touch .bootstrapped-pip
.env:
cp .env-example .env
# Create MySQL Database
# Create Postgres Database
test: init
python -m pytest tests
ci:
make test
check: format sort lint
lint:
python -m flake8 src/masoniteorm/ --ignore=E501,F401,E203,E128,E402,E731,F821,E712,W503,F811
format: init
black src/masoniteorm tests/
sort: init
isort src/masoniteorm tests/
coverage:
python -m pytest --cov-report term --cov-report xml --cov=src/masoniteorm tests/
python -m coveralls
show:
python -m pytest --cov-report term --cov-report html --cov=src/masoniteorm tests/
cov:
python -m pytest --cov-report term --cov-report xml --cov=src/masoniteorm tests/
publish:
pip install twine
make test
python setup.py sdist
twine upload dist/*
rm -fr build dist .egg masonite.egg-info
rm -rf dist/*
pub:
python setup.py sdist
twine upload dist/*
rm -fr build dist .egg masonite.egg-info
rm -rf dist/*
pypirc:
cp .pypirc ~/.pypirc