Commits

Michael P. Jung  committed 32f6c4e

Add files required for the release on PyPI

  • Participants
  • Parent commits a130a3e
  • Tags v0.1.0

Comments (0)

Files changed (6)

+Copyright (c) 2012 Michael P. Jung
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+
+  * Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
+include README
+include LICENSE
+This package provides code for rendering PDF letters compliant to
+DIN 5008 and DIN 676 using reportlab. The so called "DIN Brief" is
+fits into "DIN-lang" window envelopes.

File dinbrief/__init__.py

+__version__ = '0.1.0'

File requirements.txt

+reportlab
+#!/usr/bin/env python
+
+import os
+from setuptools import setup
+
+# Utility function to read the README file.
+# Used for the long_description.  It's nice, because now 1) we have a top level
+# README file and 2) it's easier to type in the README file than to put a raw
+# string in below ...
+def read(fname):
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+# Prevent "TypeError: 'NoneType' object is not callable" when running tests.
+# (http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
+try:
+    import multiprocessing
+except ImportError:
+    pass
+
+from dinbrief import __version__ as package_version
+
+setup(
+    name='dinbrief',
+    version=package_version,
+    description='PDF renderer for DIN 5008 and DIN 676 compliant letters',
+    long_description=read('README'),
+    author='Michael P. Jung',
+    author_email='michael.jung@terreon.de',
+    license='BSD',
+    keywords='dinbrief DIN 5008 676 brief letter pdf',
+    url='https://bitbucket.org/terreon/dinbrief',
+    packages=['dinbrief'],
+    #test_suite='dinbrief.tests',
+    install_requires=read('requirements.txt').split('\n'),
+    classifiers=[
+        'Development Status :: 3 - Alpha',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: BSD License',
+        'Programming Language :: Python :: 2.7',
+        'Topic :: Software Development :: Libraries :: Python Modules',
+    ]
+)