| 1 |
all: |
| 2 |
|
| 3 |
SHELL := /bin/bash |
| 4 |
|
| 5 |
# Package |
| 6 |
.PHONY: clean |
| 7 |
clean: |
| 8 |
@rm -rf build/ dist/ *.egg-info/ README.md README.rst |
| 9 |
@pip install -e . # have to reinstall because we are using self |
| 10 |
README.md: $(shell find j2cli/) $(wildcard misc/_doc/**) |
| 11 |
@python misc/_doc/README.py | python j2cli/__init__.py -f json -o $@ misc/_doc/README.md.j2 |
| 12 |
|
| 13 |
|
| 14 |
.PHONY: build publish-test publish |
| 15 |
build: README.md |
| 16 |
@./setup.py build sdist bdist_wheel |
| 17 |
publish-test: README.md |
| 18 |
@twine upload --repository pypitest dist/* |
| 19 |
publish: README.md |
| 20 |
@twine upload dist/* |
| 21 |
|
| 22 |
|
| 23 |
.PHONY: test test-tox |
| 24 |
test: |
| 25 |
@nosetests |
| 26 |
test-tox: |
| 27 |
@tox |