Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Moved to GitHub.

- Pylons project docs theme.

- Added tox configuration.
  • Loading branch information...
commit ba29368073a562601e920a6bbf4e39430b0998bb 1 parent b5842a3
@mcdonc mcdonc authored
View
21 .gitignore
@@ -0,0 +1,21 @@
+*.egg
+*.egg-info
+*.pyc
+*$py.class
+*.pt.py
+*.txt.py
+*~
+.coverage
+.tox/
+nosetests.xml
+pyramid/coverage.xml
+tutorial.db
+env26/
+env25/
+env24/
+env27/
+jyenv/
+pypyenv/
+build/
+dist/
+peppercorn/coverage.xml
View
9 CHANGES.txt
@@ -1,6 +1,15 @@
Changes
=======
+Next release
+------------
+
+- Moved to GitHub.
+
+- Pylons project docs theme.
+
+- Added tox configuration.
+
0.3 (2010-09-02)
----------------
View
2  COPYRIGHT.txt
@@ -1,3 +1,3 @@
-Copyright (c) 2010 Agendaless Consulting and Contributors.
+Copyright (c) 2011 Agendaless Consulting and Contributors.
(http://www.agendaless.com), All Rights Reserved
View
4 README.txt
@@ -5,5 +5,5 @@ A library for converting a token stream into a data structure
comprised of sequences, mappings, and scalars, developed primarily for
converting HTTP form post data into a richer data structure.
-Please see `http://docs.repoze.org/peppercorn
-<http://docs.repoze.org/peppercorn>`_ for the documentation.
+Please see http://docs.pylonsproject.org/peppercorn/dev/
+for the documentation.
View
2  docs/.gitignore
@@ -0,0 +1,2 @@
+_build/
+_themes/
View
62 docs/Makefile
@@ -9,7 +9,7 @@ PAPER =
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d .build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
@@ -23,48 +23,66 @@ help:
@echo " linkcheck to check all external links for integrity"
clean:
- -rm -rf .build/*
+ -rm -rf _build/*
-html:
- mkdir -p .build/html .build/doctrees
- $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) .build/html
+html: _themes/
+ mkdir -p _build/html _build/doctrees
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
@echo
- @echo "Build finished. The HTML pages are in .build/html."
+ @echo "Build finished. The HTML pages are in _build/html."
+
+text:
+ mkdir -p _build/text _build/doctrees
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) _build/text
+ @echo
+ @echo "Build finished. The HTML pages are in _build/text."
pickle:
- mkdir -p .build/pickle .build/doctrees
- $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle
+ mkdir -p _build/pickle _build/doctrees
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
@echo
@echo "Build finished; now you can process the pickle files or run"
- @echo " sphinx-web .build/pickle"
+ @echo " sphinx-web _build/pickle"
@echo "to start the sphinx-web server."
web: pickle
-htmlhelp:
- mkdir -p .build/htmlhelp .build/doctrees
- $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) .build/htmlhelp
+htmlhelp: _themes
+ mkdir -p _build/htmlhelp _build/doctrees
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
- ".hhp project file in .build/htmlhelp."
+ ".hhp project file in _build/htmlhelp."
latex:
- mkdir -p .build/latex .build/doctrees
- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) .build/latex
+ mkdir -p _build/latex _build/doctrees
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
+ cp _static/*.png _build/latex
+ ./convert_images.sh
+ cp _static/latex-warning.png _build/latex
+ cp _static/latex-note.png _build/latex
@echo
- @echo "Build finished; the LaTeX files are in .build/latex."
+ @echo "Build finished; the LaTeX files are in _build/latex."
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
"run these through (pdf)latex."
changes:
- mkdir -p .build/changes .build/doctrees
- $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) .build/changes
+ mkdir -p _build/changes _build/doctrees
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
@echo
- @echo "The overview file is in .build/changes."
+ @echo "The overview file is in _build/changes."
linkcheck:
- mkdir -p .build/linkcheck .build/doctrees
- $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) .build/linkcheck
+ mkdir -p _build/linkcheck _build/doctrees
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
- "or in .build/linkcheck/output.txt."
+ "or in _build/linkcheck/output.txt."
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) _build/epub
+ @echo
+ @echo "Build finished. The epub file is in _build/epub."
+
+_themes:
+ git clone git://github.com/Pylons/pylons_sphinx_theme.git _themes
View
12 docs/conf.py
@@ -48,7 +48,7 @@
# General substitutions.
project = 'peppercorn'
-copyright = '2010, Repoze Developers <repoze-dev@lists.repoze.org>'
+copyright = '2011, Agendaless Consulting <pylons-discuss@googlegroups.com>'
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
@@ -93,10 +93,14 @@
# Options for HTML output
# -----------------------
+sys.path.append(os.path.abspath('_themes'))
+html_theme_path = ['_themes']
+html_theme = 'pylons'
+
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
-html_style = 'repoze.css'
+#html_style = 'pylons.css'
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
@@ -119,7 +123,7 @@
# here, relative to this directory. They are copied after the builtin
# static files, so a file named "default.css" will overwrite the builtin
# "default.css".
-html_static_path = ['.static']
+#html_static_path = ['.static']
# If not '', a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format.
@@ -175,7 +179,7 @@
# author, document class [howto/manual]).
latex_documents = [
('index', 'peppercorn.tex', 'Peppercorn Documentation',
- 'Repoze Developers', 'manual'),
+ 'Pylons Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the
View
15 setup.py
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2010 Agendaless Consulting and Contributors.
+# Copyright (c) 2011 Agendaless Consulting and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the BSD-like license at
@@ -18,8 +18,13 @@
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.txt')).read()
-CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+
+try:
+ README = open(os.path.join(here, 'README.txt')).read()
+ CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+except:
+ README = ''
+ CHANGES = ''
requires = []
@@ -36,8 +41,8 @@
],
keywords='web wsgi form generation library',
author="Agendaless Consulting",
- author_email="repoze-dev@lists.repoze.org",
- url="http://www.repoze.org",
+ author_email="pylons-discuss@googlegroups.com",
+ url="http://pylonsproject.org",
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
packages=find_packages(),
include_package_data=True,
View
23 tox.ini
@@ -0,0 +1,23 @@
+[tox]
+envlist =
+ py24,py25,py26,py27,jython,pypy,cover
+
+[testenv]
+commands =
+ python setup.py test -q
+
+[testenv:cover]
+basepython =
+ python2.6
+commands =
+ python setup.py nosetests --with-xunit --with-xcoverage
+deps =
+ nose
+ coverage<3.4
+ nosexcover
+
+# we separate coverage into its own testenv because a) "last run wins" wrt
+# cobertura jenkins reporting and b) pypy and jython can't handle any
+# combination of versions of coverage and nosexcover that i can find.
+# coverage <3.4 is required by nosexcover 1.0.4.
+
Please sign in to comment.
Something went wrong with that request. Please try again.