-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
32 lines (28 loc) · 877 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
clean:
find . -name '*.pyo' -delete
find . -name '*.pyc' -delete
find . -name __pycache__ -delete
find . -name '*~' -delete
lint:
flake8 --max-line-length 88 beanstalk_dispatch && black --check beanstalk_dispatch && isort --check-only --recursive beanstalk_dispatch
test: lint
test_app/manage.py test beanstalk_dispatch
installdeps:
pip install --upgrade pip
pip install -e .
pip install -r dev-requirements.txt
release: clean lint test
ifeq ($(TAG_NAME),)
$(error Usage: make release TAG_NAME=<tag-name>)
endif
# NOTE(joshblum): First you should update the changelog and bump the
# version in setup.py
git clean -dxf
git tag $(TAG_NAME)
git push --tags
# Create the wheels for Python2 and Python3.
python setup.py sdist bdist_wheel --universal
# To check whether the README formats properly.
twine check dist/*
# Upload to pypi.
twine upload dist/*