Commits

cavanaug committed c26982a

More changes for pypi

  • Participants
  • Parent commits 9ce1cbf

Comments (0)

Files changed (1)

-# Note:  
-#    This is a bit of a hack to make things work properly on windows with bin.
-#    However it still doesnt quite do the right thing in terms of dropping the .py on unix platforms, sigh...
-#
+
+
 
 from distutils.core import setup
 from distutils.command.install import INSTALL_SCHEMES
 
 required_python_version = '2.6'
 
+classifiers = """
+Development Status :: 5 - Production/Stable
+Environment :: Console
+Intended Audience :: Developers
+Intended Audience :: System Administrators
+License :: OSI Approved :: BSD License
+Operating System :: OS Independent
+Programming Language :: Python :: 2
+Topic :: Text Processing
+Topic :: Software Development :: Build Tools
+Topic :: Utilities
+"""
+classifier_list = [c for c in classifiers.split("\n") if c]
+
+setup_args = dict(
+   name='j2', 
+   version='1.2',
+   author = 'John Cavanaugh',
+   author_email = 'cavanaughwww+open@gmail.com',
+   maintainer = 'John Cavanaugh',
+   maintainer_email = 'cavanaughwww+open@gmail.com',
+   description = 'cmdline text templating & rendering tool using Jinja2',
+   long_description="""
+j2 is commandline text templating & rendering tool, it brings the power of the Jinja2 engine to general
+purpose text compilation. The tool excels at the various situations where you need to compile/generate
+text files as part of a build system or other types of automation process (sysadmin to configuration
+files etc)
+""",
+   keywords = 'text templating cmdline',
+   license = 'BSD',
+   scripts = ['j2'],
+   url = 'http://bitbucket.org/cavanaug/j2',
+   classifiers = classifier_list,
+   requires=[ 'Jinja2' ]
+   )
 
 def main():
     if sys.version < required_python_version:
 
     if sys.platform == 'win32':
         shutil.copyfile('j2', 'j2.py')
-        dist=setup(name='j2', version='1.2', scripts = ['j2.py'],)
-    else:
-        dist=setup(name='j2', version='1.2', scripts = ['j2'],)
+        setup_args['scripts']=['j2.py']
+
+    dist=setup(**setup_args)
 
 if __name__ == "__main__":
    main()