summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--Makefile24
-rw-r--r--requirements.txt3
-rw-r--r--setup.py5
-rw-r--r--tox.ini16
5 files changed, 34 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9aad35d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.egg-info
+.tox
+build
+plantuml.jar
diff --git a/Makefile b/Makefile
index 7d4dd23..d1a0e8a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,12 @@
BUILDDIR := build
-.PHONY: clean html pdf default
+.PHONY: default clean
-default: pdf
-
-clean:
- rm -rf $(BUILDDIR) plantuml.jar
-
-html: plantuml.jar | $(BUILDDIR)
- sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \
- requirements $(BUILDDIR)/requirements/html
-
-pdf: plantuml.jar | $(BUILDDIR)
- sphinx-build -b latex -c etc -d $(BUILDDIR)/doctrees \
- requirements $(BUILDDIR)/requirements/latex
- $(MAKE) -C $(BUILDDIR)/requirements/latex \
- LATEXOPTS='--interaction=nonstopmode' all-pdf
-
-$(BUILDDIR):
- mkdir -p $(BUILDDIR)
+default: plantuml.jar
+ tox
plantuml.jar:
wget 'http://downloads.sourceforge.net/project/plantuml/plantuml.jar'
+
+clean:
+ rm -rf .tox build plantuml.jar
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..6024eb7
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,3 @@
+sphinx
+sphinx_numfig
+sphinxcontrib-plantuml
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..8ce1bf4
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,5 @@
+from setuptools import setup
+
+setup(
+ name = "promise",
+)
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..7cab86b
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,16 @@
+[tox]
+minversion = 1.4
+envlist = pdf,html
+skipsdist = True
+
+[testenv]
+deps = -r{toxinidir}/requirements.txt
+
+[testenv:pdf]
+commands =
+ sphinx-build -b latex -c etc -d build/doctrees requirements build/requirements/latex
+ make -C build/requirements/latex LATEXOPTS='--interaction=nonstopmode' all-pdf
+
+[testenv:html]
+commands =
+ sphinx-build -b html -c etc -d build/doctrees requirements build/requirements/html