-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (32 loc) · 789 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
.PHONY: docs
init:
pip install -e .
pip install -r requirements-dev.txt
lint:
make black
make flake8
make prospector
black:
black socialname
flake8:
flake8 --max-line-length=120 socialname
prospector:
prospector socialname
test:
tox --parallel
coverage:
pytest --cov-config .coveragerc --verbose --cov-report term --cov-report html --cov=socialname tests
sites:
python scripts/site_list.py
publish:
rm -fr build dist .egg socialname.egg-info
pip install twine wheel
python setup.py sdist bdist_wheel
twine upload dist/*
rm -fr build dist .egg socialname.egg-info
testpublish:
rm -fr build dist .egg socialname.egg-info
pip install twine wheel
python setup.py sdist bdist_wheel
twine upload --repository testpypi dist/*
rm -fr build dist .egg socialname.egg-info