Hiroki MIZUNO avatar Hiroki MIZUNO committed 20d4af9

setup dependencies

Comments (0)

Files changed (5)

+===========================
+blockdiagcontrib-excelhogan
+===========================
+A plugin for `blockdiag` that provides imagedrawer for excel shape.
+Most Japanese peaple love writing documentation with MS-Excel.
+
+
+Usage
+======
+Give '-T shape.xls' option to blockdiag command line::
+
+   $ blockdiag -T shape.xls input.diag
+
+
+Requirements
+============
+* blockdiag 1.2.1 or later
+* PyWin32
+
+
+License
+=======
+Apache License 2.0

blockdiagcontrib_excelshape/__init__.py

+# -*- coding: utf-8 -*- #  Copyright 2012 Takeshi KOMIYA
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+print "install"
+__import__('pkg_resources').declare_namespace(__name__)

blockdiagcontrib_excelshape/excelshape.py

+# -*- coding: utf-8 -*- 
+#  Copyright 2012 MIZUNO Hiroki
+# 
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+try:
+    from PIL import Image
+    from PIL import ImageDraw
+    from PIL import ImageFont
+    from PIL import ImageFilter
+except ImportError:
+    import Image
+    import ImageDraw
+    import ImageFont
+    import ImageFilter
+
+
+def setup(self):
+    pass
 [buildout]
-parts =
+parts = app
+
+develop = .
+
+[app]
+recipe = zc.recipe.egg
+eggs =
+     sphinx
+     sphinxcontrib-blockdiag
+     blockdiag
+     blockdiagcontrib-excelshape
+interpreter = py
+# -*- coding: utf-8 -*- 
+from setuptools import setup, find_packages 
+import os, sys
+
+version = '0.1.0'
+long_description = open("README.txt").read()
+
+classifiers = [
+    "Development Status :: 4 - Beta",
+    "Intended Audience :: System Administrators",
+    "License :: OSI Approved :: Python Software Foundation License",
+    "Programming Language :: Python",
+    "Topic :: Software Development",
+    "Topic :: Software Development :: Documentation",
+    "Topic :: Text Processing :: Markup",
+]
+
+setup(
+     name='blockdiagcontrib-excelshape',
+     version=version,
+     description='imagedrawer plugin for blockdiag',
+     long_description=long_description,
+     classifiers=classifiers,
+     keywords=['diagram','generator'],
+     author='MIZUNO Hiroki',
+     author_email='mzpppp at gmail.com',
+     url='http://bitbucket.org/mzp/blockdiagcontrib-excelshape',
+     license='Apache License 2.0',
+     packages=find_packages(),
+     package_data = {'': ['buildout.cfg']},
+     namespace_packages=['blockdiagcontrib_excelshape'],
+     include_package_data=True,
+     install_requires=[
+        'blockdiag>=1.2.1',
+        'setuptools'
+     ],
+     entry_points="""
+        [blockdiag_imagedrawers]
+        excelshape = blockdiagcontrib_excelshape
+     """,
+)
+
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.