[Pytest-commit] commit/pytest: bubenkoff: add docs target

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Mar 2 21:43:43 CET 2015


1 new commit in pytest:

https://bitbucket.org/pytest-dev/pytest/commits/cca9e94489f0/
Changeset:   cca9e94489f0
Branch:      parametrized-fixture-override
User:        bubenkoff
Date:        2015-03-02 20:43:31+00:00
Summary:     add docs target
Affected #:  2 files

diff -r bae41ffae0c4fc5d0e1852e320692d34395a2c90 -r cca9e94489f0ffa7d0b18ceb8dbbef2696377f29 Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,24 @@
-# create virtual environment
+# Set of targets useful for development/release process
 PYTHON = python2.7
+PATH := $(PWD)/.env/bin:$(PATH)
 
+# prepare virtual python environment
 .env:
 	virtualenv .env -p $(PYTHON)
 
 # install all needed for development
 develop: .env
-	.env/bin/pip install -e . tox
+	pip install -e . tox -r requirements-docs.txt
 
 # clean the development envrironment
 clean:
 	-rm -rf .env
+
+# generate documentation
+docs: develop
+	cd doc/en; make html
+	find doc/en/ -name '*.txt' | xargs .env/bin/regendoc
+
+# upload documentation
+upload-docs: develop
+	cd doc/en; make install

diff -r bae41ffae0c4fc5d0e1852e320692d34395a2c90 -r cca9e94489f0ffa7d0b18ceb8dbbef2696377f29 requirements-docs.txt
--- /dev/null
+++ b/requirements-docs.txt
@@ -0,0 +1,2 @@
+sphinx==1.2.3
+hg+ssh://hg@bitbucket.org/RonnyPfannschmidt/regendoc#egg=regendoc

Repository URL: https://bitbucket.org/pytest-dev/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list