1- .PHONY : clean help full lint build environment test docs coverage push
1+ .PHONY : clean help full lint build environment test docs push
22.DEFAULT_GOAL := help
33
44define BROWSER_PYSCRIPT
@@ -51,22 +51,18 @@ lint: environment ## Check for styling errors
5151 autopep8 --recursive torrentfile tests
5252 isort torrentfile tests
5353 pydocstyle torrentfile tests
54- pyroma .
54+ pycodestyle torrentfile tests
5555 pylint torrentfile tests
56+ pyroma .
5657 prospector torrentfile
5758 prospector tests
5859
59-
6060test : environment # # run tests quickly with the default Python
6161 @echo Testing
62- pytest tests --cov=torrentfile --pylint
63-
64- coverage : environment # # check code coverage with the default Python
65- @echo Generating Coverage Report
66- coverage run --source torrentfile -m pytest tests
62+ pytest tests --cov=torrentfile --cov=tests --pylint
6763 coverage xml -o coverage.xml
6864
69- push : clean lint test coverage docs # # push to remote repo
65+ push : clean lint test docs # # push to remote repo
7066 @echo pushing to remote
7167 git add .
7268 git commit -m " $m "
@@ -80,6 +76,7 @@ docs: environment ## Regenerate docs from changes
8076
8177build : clean install
8278 python setup.py sdist bdist_wheel bdist_egg
79+ # twine upload dist/*
8380 rm -rfv ../runner
8481 mkdir ../runner
8582 touch ../runner/exe
@@ -92,13 +89,12 @@ build: clean install
9289 pyinstaller --distpath ../runner/dist --workpath ../runner/build \
9390 -D -n torrentfile -c -i ../runner/torrentfile.ico \
9491 --specpath ../runner/ ../runner/exe
95- mkdir ./dist/bin
96- cp -rfv ../../runner/dist ./dist/bin
97- # twine upload dist/*
92+ cp -rfv ../runner/dist/* ./dist/
93+ tar -va -c -f ./dist/torrentfile.zip ./dist/torrentfile
9894
99- install : environment clean test # # Install Locally
95+ install : # # Install Locally
10096 pip install --upgrade -rrequirements.txt --no-cache-dir
101- python setup.py install
97+ pip install -e .
10298
10399branch : clean # # Switch git branches after changes have been made
104100 git checkout master
0 commit comments