Toolset to render and manage AWS CloudFormation ( https://pypi.org/project/cloudbender )
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.

25 lines
669B

  1. VERSION ?= $(shell grep '__version__' cloudbender/__init__.py | cut -d' ' -f3 | cut -d'-' -f1 | sed -e 's/"//g')
  2. PACKAGE_FILE := dist/cloudbender-$(VERSION)-py2.py3-none-any.whl
  3. .PHONY: test build test_upload upload all
  4. all: test build
  5. test:
  6. flake8 --ignore=E501 cloudbender tests
  7. TEST=True pytest --log-cli-level=DEBUG
  8. clean:
  9. rm -rf .cache build .coverage .eggs cloudbender.egg-info .pytest_cache dist
  10. build: $(PACKAGE_FILE)
  11. $(PACKAGE_FILE):
  12. python setup.py bdist_wheel --universal
  13. test_upload: $(PACKAGE_FILE)
  14. twine upload --repository-url https://test.pypi.org/legacy/ dist/cloudbender-*.whl
  15. upload: $(PACKAGE_FILE)
  16. twine upload dist/cloudbender-*.whl