mirror of
https://github.com/haidaraM/ansible-playbook-grapher
synced 2024-11-10 14:14:19 +00:00
update makefile: include data in wildcard, add deploy to test, clean
This commit is contained in:
parent
db3867fb03
commit
09a1db9eeb
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -1,7 +1,7 @@
|
|||
ANSIBLE_VERSION=2.4
|
||||
VIRTUALENV_DIR=venv
|
||||
PACKAGE := dist/$(shell ls dist 2> /dev/null)
|
||||
SRC=$(wildcard ansibleplaybookgrapher/*.py setup.py)
|
||||
SRC=$(wildcard ansibleplaybookgrapher/*.py setup.py ansibleplaybookgrapher/data/*)
|
||||
|
||||
build: $(PACKAGE)
|
||||
|
||||
|
@ -9,9 +9,16 @@ $(PACKAGE): $(SRC)
|
|||
@echo "Building the package..."
|
||||
@python3 setup.py bdist_wheel
|
||||
|
||||
deploy: build
|
||||
# Deploy to Pypi Live environment
|
||||
deploy: clean build
|
||||
@echo "Deploying to Pypi Live environment..."
|
||||
@twine upload dist/*
|
||||
|
||||
# Deploy to Pypi test environment
|
||||
deploy_test: clean build
|
||||
@echo "Deploying to Pypi Test environment..."
|
||||
@twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
||||
|
||||
setup_virtualenv:
|
||||
@./test_install.sh $(VIRTUALENV_DIR) $(ANSIBLE_VERSION)
|
||||
|
||||
|
|
Loading…
Reference in a new issue