Package design improvements
This commit is contained in:
parent
f6390dbac2
commit
61b8d6a207
|
@ -1,10 +1,10 @@
|
|||
# ===[ APP ]=== #
|
||||
|
||||
# ===[ PYTHON PACKAGE ]=== #
|
||||
/.tox/
|
||||
/build/
|
||||
/dist/
|
||||
/MANIFEST
|
||||
/*.egg/
|
||||
/*.egg-info/
|
||||
|
||||
# ===[ OTHER ]=== #
|
||||
|
@ -25,6 +25,7 @@
|
|||
Thumbs.db
|
||||
|
||||
# Utils
|
||||
/.tox/
|
||||
.sass-cache/
|
||||
.coverage
|
||||
|
||||
|
|
13
Makefile
13
Makefile
|
@ -1,14 +1,14 @@
|
|||
all:
|
||||
|
||||
SHELL := /bin/bash
|
||||
.PHONY: clean build publish
|
||||
.PHONY: clean build publish test test-tox test-docker
|
||||
|
||||
# Package
|
||||
clean:
|
||||
@rm -rf build/ dist/ *.egg-info/ README.md README.rst
|
||||
@pip install -e . # have to reinstall because we are using self
|
||||
README.md: $(shell find misc/ j2cli/)
|
||||
@python misc/_doc/README.py | python j2cli/__init__.py -f json misc/_doc/README.md.j2 > $@
|
||||
@python misc/_doc/README.py | python j2cli/__init__.py -f json -o $@ misc/_doc/README.md.j2
|
||||
README.rst: README.md
|
||||
@pandoc -f markdown -t rst -o README.rst README.md
|
||||
|
||||
|
@ -20,6 +20,11 @@ publish: README.rst
|
|||
@twine upload dist/*
|
||||
|
||||
|
||||
|
||||
test-2.6:
|
||||
test:
|
||||
@nosetests
|
||||
test-tox:
|
||||
@tox
|
||||
test-docker:
|
||||
@docker run --rm -it -v `pwd`:/src themattrix/tox
|
||||
test-docker-2.6: # temporary, since `themattrix/tox` has faulty 2.6
|
||||
@docker run --rm -it -v $(realpath .):/app mrupgrade/deadsnakes:2.6 bash -c 'cd /app && pip install -e . && pip install nose argparse && nosetests'
|
||||
|
|
Loading…
Reference in New Issue