forked from MasoniteFramework/orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
40 lines (40 loc) · 936 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
init:
cp .env-example .env
pip install -r requirements.txt
pip install .
# Create MySQL Database
# Create Postgres Database
test:
python -m pytest tests
ci:
make test
lint:
python -m flake8 src/masoniteorm/ --ignore=E501,F401,E203,E128,E402,E731,F821,E712,W503,F811
format:
black src/masoniteorm
black tests/
make lint
sort:
isort tests
isort src/masoniteorm
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