holger krekel avatar holger krekel committed 351c719

some meta information

Comments (0)

Files changed (3)

+
+# These lines are suggested according to the svn:ignore property
+# Feel free to enable them by uncommenting them
+syntax:glob
+*.pyc
+*.pyo
+*.swp
+*.html
+*.class
+
+build
+dist
+initpkg.egg-info
+
 import os
 from types import ModuleType
 
+__version__ = "1.0a1"
+
 class Package(object):
     def __init__(self, name, exportdefs, metainfo):
         pkgmodule = sys.modules[name]
         assert not hasattr(pkgmodule, '__pkg__')
         pkgmodule.__pkg__ = self
 
-        # make available pkgname.__
+        # make internal python modules available under pkgname.__.
+        # instead of pkgname. directly.
         implname = name + '.' + '__'
         self.implmodule = ModuleType(implname)
         self.implmodule.__name__ = implname
+"""
+initpkg: control exported namespace of a python package.
+
+compatible to CPython 2.3 through to CPython 3.1, Jython, PyPy
+
+(c) 2009 holger krekel, Holger Krekel
+"""
+
+import os, sys
+
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
+from initpkg import __version__
+
+def main():
+    setup(
+        name='initpkg',
+        description='initpkg: control exported namespace of a python package',
+        long_description = __doc__,
+        version= __version__,
+        url='http://bitbucket.org/hpk42/initpkg',
+        license='MIT License',
+        platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
+        author='holger krekel and others',
+        author_email='holger at merlinux.eu',
+        classifiers=[
+            'Development Status :: 4 - Beta',
+            'Intended Audience :: Developers',
+            'License :: OSI Approved :: GNU General Public License (GPL)',
+            'Operating System :: POSIX',
+            'Operating System :: Microsoft :: Windows',
+            'Operating System :: MacOS :: MacOS X',
+            'Topic :: Software Development :: Libraries',
+            'Programming Language :: Python'],
+        py_modules=['initpkg']
+    )
+
+if __name__ == '__main__':
+    main()
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.