Kirill Simonov avatar Kirill Simonov committed de40788

Added basic directory layout, the setup script, and README/NEWS/LICENSE files.

Comments (0)

Files changed (11)

+HTSQL -- Installation Instructions
+==================================
+
+(detailed installation instructions).
+
+Copyright (c) 2006-2010 Prometheus Research, LLC.
+All rights reserved.
+
+This software is released through a "BSD" style license for use with
+open source databases (such as MySQL, PostgreSQL, SQLite). A commercial
+license is needed for use with a commercial database system, such as
+Oracle, IBM's DB2, or Microsoft SQL Server.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions 
+are met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY, AGAINST INFRINGEMENT, TITLE AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+If this software is used in conjunction with a database system, said
+database system must be published under a license approved by the Open
+Source Initiative or released in the public domain.
+HTSQL - List of Changes
+=======================
+
+1.1.1 (2010-05-XX)
+------------------
+
+* Initial release.
+* (list of the basic features supported in this release).
+
+HTSQL - A Query Language for the Accidental Programmer
+======================================================
+
+HTSQL is a schema-driven URL-to-SQL translator that takes a request over
+HTTP, converts it to a SQL query, executes the query against a database,
+and returns the results in a format best suited for the user agent (CSV,
+HTML, etc.).  HTSQL requests are shorter and easier to read than their SQL
+equivalents.  They allow users to do many of the things they could do with
+SQL, but without the risks and complications of unrestricted database
+access.
+
+(more about it).
+
+(short installation instructions and a reference to INSTALL).
+
+(short license note and a reference to LICENSE).
+
+(links to the web site, documentation, bug tracking and other resources).
+

doc/reference.rst

+HTSQL Reference
+===============
+
+(...)
+
+HTSQL Tutorial
+==============
+
+(...)
+
+#
+# Copyright (c) 2006-2010, Prometheus Research, LLC
+# Authors: Clark C. Evans <cce@clarkevans.com>,
+#          Kirill Simonov <xi@resolvent.net>
+#
+
+# The setup script for HTSQL; requires setuptools to run.
+#
+# Type `python setup.py install` to install HTSQL, or see `INSTALL`
+# for the list of prerequisites and detailed installation instructions.
+
+from setuptools import setup, find_packages
+import os.path
+
+# We use the merged content of `README` and `NEWS` as the long
+# description of the package.
+
+root = os.path.dirname(__file__)
+README = open(os.path.join(root, 'README')).read()
+NEWS = open(os.path.join(root, 'NEWS')).read()
+
+# The distutils parameters are defined here.  Do not forget to update
+# the `__version__` attribute in `src/htsql/__init__.py` whenever the
+# `VERSION` parameter is updated here.
+
+NAME = "HTSQL"
+VERSION = "1.1.1-tip"
+DESCRIPTION = "Query language for the accidental programmer"
+LONG_DESCRIPTION = "\n".join([README, NEWS])
+AUTHOR = "Clark C. Evans and Kirill Simonov; Prometheus Research, LLC"
+AUTHOR_EMAIL = "cce@clarkevans.com"
+LICENSE = "Free To Use But Restricted"
+PLATFORMS = "Any"
+URL = "http://htsql.org/"
+DOWNLOAD_URL = "http://htsql.org/download/%s-%s.tar.gz" % (NAME, VERSION)
+CLASSIFIERS = [
+    "Development Status :: 4 - Beta",
+    "Environment :: Console",
+    "Environment :: Web Environment",
+    "Intended Audience :: Developers",
+    "Intended Audience :: Information Technology",
+    "Intended Audience :: Science/Research",        
+    "License :: Free To Use But Restricted",
+    "License :: Other/Proprietary License",
+    "Programming Language :: Python",
+    "Programming Language :: Python :: 2.5",
+    "Programming Language :: Python :: 2.6",
+    "Programming Language :: SQL",
+    "Topic :: Database :: Front-Ends",
+    "Topic :: Internet :: WWW/HTTP :: WSGI",
+    "Topic :: Software Development :: Libraries",
+]
+KEYWORDS = "sql http uri relational database"
+PACKAGES = find_packages()
+INCLUDE_PACKAGE_DATA = True
+ENTRY_POINTS = {
+    'console_scripts': ['htsql-ctl = htsql.ctl:main'],
+}
+INSTALL_REQUIRES = [
+    'simplejson>=2.0',
+    'psycopg2>=2.0.10',
+    'pyyaml>=3.07',
+    'setuptools>=0.6c9',
+]
+
+setup(name=NAME,
+      version=VERSION,
+      description=DESCRIPTION,
+      long_description=LONG_DESCRIPTION,
+      author=AUTHOR,
+      author_email=AUTHOR_EMAIL,
+      license=LICENSE,
+      platforms=PLATFORMS,
+      url=URL,
+      download_url=DOWNLOAD_URL,
+      classifiers=CLASSIFIERS,
+      keywords=KEYWORDS,
+      packages=PACKAGES,
+      include_package_data=INCLUDE_PACKAGE_DATA,
+      entry_points=ENTRY_POINTS,
+      install_requires=INSTALL_REQUIRES,
+)
+
+

src/htsql/__init__.py

+#
+# Copyright (c) 2006-2010, Prometheus Research, LLC
+# Authors: Clark C. Evans <cce@clarkevans.com>,
+#          Kirill Simonov <xi@resolvent.net>
+#
+
+__version__ = '1.1.1-tip'
+

src/htsql_pgsql/__init__.py

+#
+# Copyright (c) 2006-2010, Prometheus Research, LLC
+# Authors: Clark C. Evans <cce@clarkevans.com>,
+#          Kirill Simonov <xi@resolvent.net>
+#

src/htsql_sqlite/__init__.py

+#
+# Copyright (c) 2006-2010, Prometheus Research, LLC
+# Authors: Clark C. Evans <cce@clarkevans.com>,
+#          Kirill Simonov <xi@resolvent.net>
+#

test/regress.yaml

+title: HTSQL Regression Tests
+tests: []
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.