• R/O
  • SSH
  • HTTPS

shibuya-trac: Commit


Commit MetaInfo

Revision850 (tree)
Time2014-08-30 20:17:40
Authorjun66j5

Log Message

GanttCalendarPlugin: tweaked setup.py and make it executable

Change Summary

Incremental Difference

--- plugins/ganttcalendarplugin/trunk/setup.py (revision 849)
+++ plugins/ganttcalendarplugin/trunk/setup.py (revision 850)
@@ -1,41 +1,49 @@
1-from setuptools import find_packages, setup
2-
3-extra = {}
4-try:
5- from trac.util.dist import get_l10n_cmdclass
6- cmdclass = get_l10n_cmdclass()
7- if cmdclass:
8- extra['cmdclass'] = cmdclass
9- extractors = [
10- ('**.py', 'python', None),
11- ('**/templates/**.html', 'genshi', None),
12- ('**/templates/**.txt', 'genshi', {
13- 'template_class': 'genshi.template:NewTextTemplate',
14- }),
15- ]
16- extra['message_extractors'] = {
17- 'ganttcalendar': extractors,
18- }
19-except ImportError:
20- pass
21-
22-setup(
23- name='TracGanttCalendarPlugin', version='0.6.2',
24- packages=find_packages(exclude=['*.tests*']),
25-
26- author = "Takashi Okamoto",
27- author_email='okamototk@user.sourceforge.jp',
28- url="http://sourceforge.jp/projects/shibuya-trac/",
29- description='Provide calendar and ganttchart.',
30- license = "New BSD",
31-
32- entry_points = """
33- [trac.plugins]
34- ganttcalendar.ticketcalendar = ganttcalendar.ticketcalendar
35- ganttcalendar.ticketgantt = ganttcalendar.ticketgantt
36- ganttcalendar.complete_by_close = ganttcalendar.complete_by_close
37- ganttcalendar.admin = ganttcalendar.admin
38- ganttcalendar.ticketvalidator = ganttcalendar.ticketvalidator
39- """,
40- package_data={'ganttcalendar': ['templates/*.html','htdocs/img/*','htdocs/js/*', 'locale/*.*','locale/*/LC_MESSAGES/*.*']},
41- **extra)
1+#! /usr/bin/env python
2+# -*- coding: utf-8 -*-
3+
4+from setuptools import find_packages, setup
5+
6+extra = {}
7+try:
8+ from trac.util.dist import get_l10n_cmdclass
9+ cmdclass = get_l10n_cmdclass()
10+ if cmdclass:
11+ extra['cmdclass'] = cmdclass
12+ extractors = [
13+ ('**.py', 'python', None),
14+ ('**/templates/**.html', 'genshi', None),
15+ ('**/templates/**.txt', 'genshi', {
16+ 'template_class': 'genshi.template:NewTextTemplate',
17+ }),
18+ ]
19+ extra['message_extractors'] = {
20+ 'ganttcalendar': extractors,
21+ }
22+except ImportError:
23+ pass
24+
25+setup(
26+ name='TracGanttCalendarPlugin', version='0.6.2',
27+ packages=find_packages(exclude=['*.tests*']),
28+
29+ author="Takashi Okamoto",
30+ author_email='okamototk@user.sourceforge.jp',
31+ url="http://sourceforge.jp/projects/shibuya-trac/",
32+ description='Provide calendar and ganttchart.',
33+ license = "New BSD",
34+
35+ entry_points = """
36+ [trac.plugins]
37+ ganttcalendar.ticketcalendar = ganttcalendar.ticketcalendar
38+ ganttcalendar.ticketgantt = ganttcalendar.ticketgantt
39+ ganttcalendar.complete_by_close = ganttcalendar.complete_by_close
40+ ganttcalendar.admin = ganttcalendar.admin
41+ ganttcalendar.ticketvalidator = ganttcalendar.ticketvalidator
42+ """,
43+ package_data={
44+ 'ganttcalendar': [
45+ 'templates/*.html', 'htdocs/img/*.png', 'htdocs/js/*.js',
46+ 'locale/*/LC_MESSAGES/*.mo',
47+ ],
48+ },
49+ **extra)
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Show on old repository browser