| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | from setuptools import setup, find_packages |
|---|
| 4 | |
|---|
| 5 | setup( |
|---|
| 6 | name='TracWikiExtras', |
|---|
| 7 | description='Plugin for Trac which extends the wiki with some extras', |
|---|
| 8 | keywords='trac wiki plugin icons smileys entities symbols color phrases ' |
|---|
| 9 | 'boxes', |
|---|
| 10 | url='https://trac-hacks.org/wiki/WikiExtrasPlugin', |
|---|
| 11 | version='1.3.1', |
|---|
| 12 | license='BSD', |
|---|
| 13 | author='Mikael Relbe', |
|---|
| 14 | author_email='mikael@relbe.se', |
|---|
| 15 | long_description=""" |
|---|
| 16 | This Trac plugin extends the Trac Wiki by providing support for: |
|---|
| 17 | * Icons and smileys. |
|---|
| 18 | * HTML entities and other frequently used symbols. |
|---|
| 19 | * Highlighting attentional phrases. |
|---|
| 20 | * Coloring text. |
|---|
| 21 | * Visually appealing and modern looking text and image boxes. |
|---|
| 22 | * Transformation of UNC paths to "file://" links. |
|---|
| 23 | |
|---|
| 24 | The Fugue icon library is contained within this distribution for |
|---|
| 25 | convenience (though installation time is taking a hit), which contains |
|---|
| 26 | more than 3.000(!) icons in three sizes (small/medium/large). |
|---|
| 27 | |
|---|
| 28 | Use the wiki markup (|name|) or the Icon macro to show any icon in the |
|---|
| 29 | library. When a glob pattern (* and ?) is part of the name, a preview |
|---|
| 30 | of matching icons is displayed. This feature is very handy for finding |
|---|
| 31 | and selecting an icon when a wiki page is being edited in side-by-side |
|---|
| 32 | mode. |
|---|
| 33 | |
|---|
| 34 | Attentional phrases such as FIXME, TODO and DONE are highlighted to |
|---|
| 35 | catch attention. |
|---|
| 36 | |
|---|
| 37 | Use the Color macro to decorate wiki text with colors. |
|---|
| 38 | |
|---|
| 39 | Use the box wiki processor -- and its variants rbox, newsbox and |
|---|
| 40 | imagebox -- to insert appealing and eye-catching boxes on the web page. |
|---|
| 41 | |
|---|
| 42 | Following set of macros that can be used to provide a visual index of |
|---|
| 43 | the markup: |
|---|
| 44 | * [[ShowEntities]] |
|---|
| 45 | * [[ShowIcons]] |
|---|
| 46 | * [[ShowPhrases]] |
|---|
| 47 | * [[ShowSmileys]] |
|---|
| 48 | * [[ShowSymbols]] |
|---|
| 49 | |
|---|
| 50 | Use the About-macros for instructions and demonstrations to wiki |
|---|
| 51 | authors on some of these features: |
|---|
| 52 | * [[AboutWikiBoxes]] |
|---|
| 53 | * [[AboutWikiIcons]] |
|---|
| 54 | * [[AboutWikiPhrases]] |
|---|
| 55 | |
|---|
| 56 | The set of smileys, symbols and phrases, and the width of boxes are |
|---|
| 57 | configurable. |
|---|
| 58 | |
|---|
| 59 | See http://p.yusukekamiyamane.com for an external reference on the |
|---|
| 60 | Fugue icon library. |
|---|
| 61 | |
|---|
| 62 | See http://www.w3.org/TR/html401/sgml/entities.html |
|---|
| 63 | for the official list of HTML 4.0 entities, |
|---|
| 64 | and http://www.cookwood.com/html/extras/entities.html |
|---|
| 65 | for an illustration. |
|---|
| 66 | |
|---|
| 67 | This plugin is based on the TracWikiGoodies plugin by Christian Boos, |
|---|
| 68 | see http://trac-hacks.org/wiki/WikiGoodiesPlugin |
|---|
| 69 | |
|---|
| 70 | It is not advisable to enable corresponding packages in |
|---|
| 71 | WikiGoodiesPlugin and *this* plugin at the same time. |
|---|
| 72 | """, |
|---|
| 73 | long_description_content_type = 'text/plain', |
|---|
| 74 | install_requires = ['Trac'], |
|---|
| 75 | packages = find_packages(exclude=['*.tests']), |
|---|
| 76 | package_data={ |
|---|
| 77 | 'tracwikiextras': ['doc/*', |
|---|
| 78 | 'htdocs/css/boxes-shadowless.css', |
|---|
| 79 | 'htdocs/css/boxes.css', |
|---|
| 80 | 'htdocs/css/phrases.css', |
|---|
| 81 | 'htdocs/icons/fugue/*.txt', |
|---|
| 82 | 'htdocs/icons/fugue/bonus/icons-24/*.png', |
|---|
| 83 | 'htdocs/icons/fugue/bonus/icons-32/*.png', |
|---|
| 84 | 'htdocs/icons/fugue/bonus/icons-shadowless-24/*.png', |
|---|
| 85 | 'htdocs/icons/fugue/bonus/icons-shadowless-32/*.png', |
|---|
| 86 | 'htdocs/icons/fugue/icons/*.png', |
|---|
| 87 | 'htdocs/icons/fugue/icons-shadowless/*.png', |
|---|
| 88 | ] |
|---|
| 89 | }, |
|---|
| 90 | zip_safe = False, |
|---|
| 91 | test_suite = 'tracwikiextras.tests.suite', |
|---|
| 92 | classifiers=['Framework :: Trac'], |
|---|
| 93 | entry_points={'trac.plugins': 'tracwikiextras = tracwikiextras'}, |
|---|
| 94 | ) |
|---|