Toolset to render and manage AWS CloudFormation ( )
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
669 B

VERSION ?= $(shell grep '__version__' cloudbender/ | cut -d' ' -f3 | cut -d'-' -f1 | sed -e 's/"//g')
PACKAGE_FILE := dist/cloudbender-$(VERSION)-py2.py3-none-any.whl
.PHONY: test build test_upload upload all
all: test build
flake8 --ignore=E501 cloudbender tests
TEST=True pytest --log-cli-level=DEBUG
rm -rf .cache build .coverage .eggs cloudbender.egg-info .pytest_cache dist
build: $(PACKAGE_FILE)
python bdist_wheel --universal
test_upload: $(PACKAGE_FILE)
twine upload --repository-url dist/cloudbender-*.whl
upload: $(PACKAGE_FILE)
twine upload dist/cloudbender-*.whl