-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
49 lines (41 loc) · 1.1 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
44
45
46
47
48
49
help:
@echo ' init'
@echo ' install poetry and all project dependencies'
@echo ' test'
@echo ' run all tests'
@echo ' build'
@echo ' package for distributing in pypi repository'
@echo ' test_upload'
@echo ' package for distributing in test pypi repository'
@echo ' upload'
@echo ' upload package to pypi (You will require credentials)'
@echo ' clean'
@echo ' clean temporary files created during build'
@echo ' lint'
@echo ' lint all the python files'
init:
@echo 'Install python dependencies'
pip install poetry
poetry install
poetry shell
test:
@echo 'Run all tests'
pytest
build:
poetry build
test_upload:
python -m twine upload -r testpypi dist/*
upload:
poetry publish
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -type d -name __pycache__ -exec rm -r {} \+
rm -rf build/
rm -rf dist/
find . -name '*.egg-info' -exec rm -rf {} +
rm -rf .tox
rm -rf .pytest_cache .coverage
rm -rf .eggs
lint:
autopep8 random_word --recursive --in-place --pep8-passes 2000 --verbose