codernity avatar codernity committed 8ef929e

Setup changes. Mostly for pypi repo + some minor doc updates.

Comments (0)

Files changed (6)

CodernityDBPyClient/__init__.py

 
 
 __version__ = '0.3.1'
+__license__ = 'Apache 2.0'
+prune docs
+Client library for CodernityDB
+==============================
+
+CodernityDB-PyClient is a client library that targets to **100%**
+compatibility between CodernityDB_ in embeded mode and
+CodernityDB_ used with CodernityDB-HTTP_.
+
+The remote errors will be the same as local ones, and remote traceback will be also included in it.
+
+It will work perfectly even without CodernityDB in your system. That's possible by using python *import hook*.
+
+
+.. image:: http://labs.codernity.com/codernitydb-pyclient/_images/CodernityDBPyClient.png
+    :align: center
+
+
+Main documentation is located at http://labs.codernity.com/codernitydb-pyclient
+
+
+Install
+~~~~~~~
+
+Because CodernityDB-PyClient is pure Python you need to perform standard installation for Python applications::
+
+   pip install CodernityDB-PyClient
+
+or using easy_install::
+
+   easy_install CodernityDB-PyClient
+
+or from sources::
+
+   hg clone ssh://hg@bitbucket.org/codernity/codernitydb_pyclient
+   python setup.py install
+
+
+.. note::
+    You don't need CodernityDB and CodernityDB-HTTP on the same machine as CodernityDB-PyClient.
+
+
+.. note::
+    If you want to use ``msgpack`` please install ``msgpack-python``, or ``msgpack-pure`` to make use of it.
+
+
+.. _CodernityDB @ Bitbucket: http://bitbucket.org/codernity/codernitydb
+.. _Codernity: http://codernity.com
+.. _CodernityDB-HTTP: http://labs.codernity.com/codernitydb-http
+.. _CodernityDB-PyClient: http://labs.codernity.com/codernitydb-pyclient
+.. _CodernityDB: http://labs.codernity.com/codernitydb
     :align: center
 
 
-
 Install
 ~~~~~~~
 
-.. Because CodernityDB-PyClient is pure Python you need to perform standard installation for Python applications ::
-..
-..     pip install CodernityDB-PyClient
-..
-.. or using easy_install::
-..
-..     easy_install CodernityDB-PyClient
-..
-.. or from sourcess::
-..
-..     hg clone ssh://hg@bitbucket.org/codernity/codernitydb_pyclient
-..     python setup.py install
+Because CodernityDB-PyClient is pure Python you need to perform standard installation for Python applications ::
+    pip install CodernityDB-PyClient
 
 
-CodernityDB-PyClient is pure Python. So you just need to::
+or using easy_install::
 
-     hg clone ssh://hg@bitbucket.org/codernity/codernitydb-pyclient
-     python setup.py install
+   easy_install CodernityDB-PyClient
+
+or from sources::
+
+   hg clone ssh://hg@bitbucket.org/codernity/codernitydb_pyclient
+   cd codernitydb_pyclient
+   python setup.py install
+
 
 .. note::
     You don't need CodernityDB and CodernityDB-HTTP on the same machine as CodernityDB-PyClient.
 
-In near future we will publish packages on PyPi.
-
 
 .. note::
     If you want to use ``msgpack`` please install ``msgpack-python``, or ``msgpack-pure`` to make use of it.
 # limitations under the License.
 
 from setuptools import setup
+import os
 
-from CodernityDBPyClient import __version__
 
-setup(name='CodernityDBPyClient',
+def get_meta(inc, name):
+    import re
+    return eval(re.search(r'(?:%s)\s*=\s*(.*)' % name, inc).group(1))
+
+
+with open(os.path.join("CodernityDBPyClient", '__init__.py'), 'r') as _init:
+    _init_d = _init.read()
+
+__version__ = get_meta(_init_d, '__version__')
+__license__ = get_meta(_init_d, '__license__')
+
+
+with open('README') as f:
+    L_DESCR = f.read()
+
+
+setup(name='CodernityDB-PyClient',
       version=__version__,
-      description='CodernityDB http client',
+      description="Client library for CodernityDB-HTTP",
+      long_description=L_DESCR,
       author='Codernity',
       author_email='contact@codernity.com',
       url='http://codernity.com',
+      license=__license__,
       packages=['CodernityDBPyClient'],
       install_requires=['requests'],
-      )
+      classifiers=[
+      "License :: OSI Approved :: Apache Software License",
+      "Programming Language :: Python :: 2.6",
+      "Programming Language :: Python :: 2.7",
+      "Operating System :: MacOS :: MacOS X",
+      "Operating System :: POSIX",
+      "Operating System :: Microsoft :: Windows",
+      "Operating System :: OS Independent",
+      "Topic :: Internet",
+      "Topic :: Database",
+      "Topic :: Software Development",
+      "Intended Audience :: Developers",
+      "Development Status :: 4 - Beta"])
 #        :CODP:CodernityDBHTTP
 
 commands=
-#    pip install CodernityDB CodernityDBHTTP --upgrade -i http://pypi.codernity.com/simple
+#    pip install CodernityDB CodernityDB-HTTP --upgrade -i http://pypi.codernity.com/simple
     py.test --junitxml=junit-interface-{envname}.xml --cov-config .coveragerc_interf tests/test_interface.py
     py.test --junitxml=junit-client-{envname}.xml --cov-config .coveragerc_client tests/test_client.py
     py.test --junitxml=junit-without-db-{envname}.xml --cov-config .coveragerc_without tests/test_compatibility_without_db.py
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.