forked from MasoniteFramework/masonite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (40 loc) · 961 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 '.[test]'
# Create MySQL Database
# Create Postgres Database
test:
python -m pytest tests
ci:
python -m pytest tests -m "not integrations"
lint:
python -m flake8 src/masonite/ --ignore=E501,F401,E203,E128,E402,E731,F821,E712,W503,F811
format:
black src/masonite
black tests/
make lint
sort:
isort tests
isort src/masonite
coverage:
python -m pytest --cov-report term --cov-report xml --cov=src/masonite tests/
python -m coveralls
show:
python -m pytest --cov-report term --cov-report html --cov=src/masonite tests/
cov:
python -m pytest --cov-report term --cov-report xml --cov=src/masonite 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