Commits

Kirill Simonov committed a5b138e

Moved sphinx extensions to `sphinxcontrib` package.

Comments (0)

Files changed (3)

 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = ['sphinx.ext.ifconfig', 'sphinx.ext.autodoc',
-              'sphinxext_htsqldoc', 'sphinxext_texdiag']
+              'sphinxcontrib.htsqldoc', 'sphinxcontrib.texdiag']
 
 # The default URL of an HTSQL service.
 htsql_server = 'http://demo.htsql.org'

src/htsql/__init__.py

+#
+# Copyright (c) 2006-2011, Prometheus Research, LLC
+# See `LICENSE` for license information, `AUTHORS` for the list of authors.
+#
+
+
+"""
+:mod:`htsql`
+============
+
+:copyright: 2006-2011, Prometheus Research, LLC
+:authors: Clark C. Evans <cce@clarkevans.com>,
+          Kirill Simonov <xi@resolvent.net>;
+          see ``AUTHORS`` file in the source distribution
+          for the full list of contributors
+:license: See ``LICENSE`` file in the source distribution
+
+This package provides HTSQL, a query language for the accidental programmer.
+
+HTSQL is implemented as a WSGI application.  To create an application, run::
+
+    >>> from htsql import HTSQL
+    >>> app = HTSQL(db)
+
+where `db` is a connection URI, a string of the form::
+
+    engine://username:password@host:port/database
+
+`engine`
+    The type of the database server; ``pgsql`` or ``sqlite``.
+
+`username:password`
+    Used for authentication; optional.
+
+`host:port`
+    The server address; optional.
+
+`database`
+    The name of the database; for SQLite, the path to the database file.
+
+To execute a WSGI request, run::
+
+    >>> app(environ, start_response)
+
+To execute a raw HTSQL request, run::
+
+    >>> rows = app.produce(query, **parameters)
+"""
+
+
+__version__ = '2.3.0+'
+
+
+from .core.application import Application as HTSQL
+
+

src/sphinxcontrib/__init__.py

+__import__('pkg_resources').declare_namespace(__name__)