Commits

Dan Connolly  committed db0b2b8

- trace imported conventions in finjax/__init__.py to their source
- via setup.py
- elaborate package metadata, esp.
- classifiers to include Accounting, License, etc.

  • Participants
  • Parent commits 07eb428

Comments (0)

Files changed (2)

File finjax/finjax/__init__.py

+'''__init__ -- finjax package init: build Pyramid WSGI application
+
+'''
+
+
+# dependencies from pypi; ../README.rst and ../setup.py
 from pyramid.config import Configurator
 from sqlalchemy import engine_from_config
 
 
 def main(global_config, **settings):
     """ This function returns a Pyramid WSGI application.
+
+    @see: `paste.app_factory`__
+    __ http://pythonpaste.org/deploy/#paste-app-factory
+
+    @param global_config: DEFAULT settings;
+                          see file:`development.ini`, `production.ini`
+    @param settings: settings for this application
+    @return: a WSGI application.
     """
     engine = engine_from_config(settings, 'sqlalchemy.')
     session = make_session()
     tv.config(config, 'transaction')
 
     return config.make_wsgi_app()
-

File finjax/setup.py

+'''setup -- package dependencies for finjax
+
+per `The Hitchhiker’s Guide to Packaging`__ and PasteDeploy__.
+
+__ http://guide.python-distribute.org/
+__ http://pythonpaste.org/deploy/
+'''
 import os
 
 from setuptools import setup, find_packages
 
 here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.txt')).read()
+README = open(os.path.join(here, 'README.rst')).read()
 CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
 
 requires = [
     'SQLAlchemy',
     'transaction',
     'pyramid_tm',
-    'pyramid_debugtoolbar',
     'zope.sqlalchemy',
     'waitress',
     'MySQL-python'
     ]
 
 setup(name='finjax',
-      version='0.0',
+      version='0.1',
       description='finjax',
       long_description=README + '\n\n' +  CHANGES,
       classifiers=[
         "Programming Language :: Python",
+        "Programming Language :: JavaScript",
         "Framework :: Pylons",
         "Topic :: Internet :: WWW/HTTP",
         "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
+        "Topic :: Office/Business :: Financial :: Accounting",
+        "Environment :: Web Environment",
+        "Intended Audience :: End Users/Desktop",
+        "License :: OSI Approved",
+        "License :: OSI Approved :: Apache Software License",
         ],
-      author='',
-      author_email='',
-      url='',
-      keywords='web wsgi bfg pylons pyramid',
+      author='Dan Connolly',
+      author_email='dckc@madmode.com',
+      url='http://www.madmode.com/',
+      keywords='web wsgi bfg pylons pyramid gnucash',
       packages=find_packages(),
       include_package_data=True,
       zip_safe=False,