changeset 9:ead552bcd268

add setup.py and prepare for publishing
author sheep@wintermute
date Wed, 14 Apr 2010 13:47:52 +0200
parents 1ad7cf9159dd
children 6cea15b348e2
files jpath.py setup.py
diffstat 2 files changed, 28 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jpath.py	Wed Apr 14 12:57:16 2010 +0200
+++ b/jpath.py	Wed Apr 14 13:47:52 2010 +0200
@@ -23,7 +23,8 @@
     foo.*.baz
     ["foo"][*]["baz"]
 
-    This may return more or less than a single element.
+    This may return more or less than a single element. Use get to get the
+    first one, and get_all to get a list of all possibilities.
     If you want to skip any number of elements in path, use two dots '..':
 
     foo..baz
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Wed Apr 14 13:47:52 2010 +0200
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from distutils.core import setup
+
+import jpath
+
+setup(
+    name='jpath',
+    py_modules=['jpath'],
+    version=jpath.__version__,
+    description='Access nested dicts and lists using JSON-like path notation.'
+    long_description=jpath.__doc__,
+    author='Radomir Dopieralski',
+    author_email='jpath@sheep.art.pl',
+    classifiers = [
+'Development Status :: 2 - Pre-Alpha',
+'License :: OSI Approved :: Python Software Foundation License',
+'Programming Language :: Python',
+'Intended Audience :: Developers',
+'License :: OSI Approved :: Python Software Foundation License',
+'Operating System :: OS Independent',
+'Topic :: Software Development :: Libraries :: Python Modules',
+'Topic :: Text Processing',
+    ],
+)