~trbs/phatch/multiprocessing

« back to all changes in this revision

Viewing changes to phatch/data/info.py

  • Committer: stani
  • Date: 2007-06-17 19:09:54 UTC
  • Revision ID: spe.stani.be@gmail.com-20070617190954-9a58j9vm02cljf70
First major reorganisation for packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys, time, Image
 
2
 
 
3
#constants
 
4
NAME                = 'Phatch'
 
5
VERSION             = '0.0.1'
 
6
AUTHOR              = 'Stani'
 
7
AUTHOR_EMAIL        = 'spe.stani.be@gmail.com'
 
8
STANI               = {'name':AUTHOR, 'email':AUTHOR_EMAIL}
 
9
SUPPORTED_LANGUAGES = ['Dutch','English']
 
10
 
 
11
#credits
 
12
CREDITS         = {
 
13
    'code'          : [STANI],
 
14
    'documentation' : [STANI],
 
15
    'translation'   : [STANI],
 
16
    'graphics'      : [STANI,
 
17
                        {'name':'Andrew Enyart', 'email':'arenyart@gmail.com',
 
18
                        'url':'http://andrewenyart.com',},
 
19
                        {'name':'Paolino', 'email':'warlord@email.it',
 
20
                        'url':'www.paolinoland.it'}
 
21
                    ],
 
22
    'libraries'     : [{'name':'Python %s'%sys.version.split(' ')[0], 
 
23
                        'url':'http://www.python.org',
 
24
                        'author':'Guido Van Rossum'},
 
25
                        {'name':'Python Image Library %s'%Image.VERSION,
 
26
                        'url':'http://www.pythonware.com/products/pil/',
 
27
                        'author':'Fredrik Lundh'}],
 
28
}
 
29
 
 
30
#year: automatically fetch copyright years
 
31
YEAR                = time.localtime()[0]
 
32
if YEAR > 2007:
 
33
    CO_YEAR         = '2007-%s'%YEAR
 
34
else:
 
35
    CO_YEAR         = '2007'
 
36
    
 
37
#setup.py information
 
38
SETUP_INFO          = {
 
39
    'name'              : NAME,
 
40
    'version'           : VERSION,
 
41
    'author'            : AUTHOR,
 
42
    'author_email'      : AUTHOR_EMAIL,
 
43
    'maintainer'        : AUTHOR,
 
44
    'maintainer_email'  : AUTHOR_EMAIL,
 
45
    'url'               : 'https://launchpad.net/phatch/',
 
46
    'description'       : 'Photo Batch Processor',
 
47
    'long_description'  : 'Phatch enables you to resize, rotate, mirror, '
 
48
                          'apply watermarks, shadows, rounded courners, '
 
49
                          '... to any photo collection easily with a '
 
50
                          'single mouse click. You can arrange your own '
 
51
                          'action lists and write plugins with PIL.',
 
52
    'classifiers'       : [          
 
53
            'Development Status :: 4 - Beta',
 
54
            'Environment :: Console',
 
55
            'Environment :: MacOS X',
 
56
            'Environment :: Win32 (MS Windows)',
 
57
            'Environment :: X11 Applications',
 
58
            'Environment :: X11 Applications :: Gnome',
 
59
            'Environment :: X11 Applications :: GTK',
 
60
            'Intended Audience :: Developers',
 
61
            'Intended Audience :: End Users/Desktop',
 
62
            'License :: OSI Approved :: GNU General Public License (GPL)',
 
63
            'Operating System :: MacOS :: MacOS X',
 
64
            'Operating System :: Microsoft :: Windows',
 
65
            'Operating System :: OS Independent',
 
66
            'Operating System :: POSIX',
 
67
            'Operating System :: POSIX :: Linux',
 
68
            'Programming Language :: Python',
 
69
            'Topic :: Artistic Software',
 
70
            'Topic :: Multimedia :: Graphics',
 
71
            'Topic :: Multimedia :: Graphics :: Graphics Conversion',
 
72
    ] + ['Natural Language :: '+language for language in SUPPORTED_LANGUAGES],
 
73
}
 
74
                        
 
75
INFO                = {
 
76
    'download_url'      : 'https://launchpad.net/phatch/',
 
77
    'copyright'         : '(c)%s www.stani.be'%CO_YEAR,
 
78
    'description'       : 'Photo Batch Processor',
 
79
    'license'           : 'GPL'
 
80
}
 
81
 
 
82
INFO.update(SETUP_INFO)
 
83
 
 
84
README    = \
 
85
"""Welcome to %(name)s %(version)s!
 
86
 
 
87
%(name)s = PHoto bATCH Processor
 
88
    
 
89
Batch your photo's with one mouse click. Typical examples are resizing,
 
90
rotating, creating buttons, applying shadows, watermarks, rounded corners, ...
 
91
 
 
92
If you are a python developper you can write easily, your own plugins with PIL
 
93
 (Python Image Library). Please send your plugins to %(author_email)s
 
94
 
 
95
%(name)s was developped with the SPE editor (http://pythonide.stani.be) on 
 
96
Ubuntu (GNU/Linux), but should run fine as well on Windows and Mac Os X.
 
97
 
 
98
%(name)s uses python, wxPython, PIL, Andrew Enyart's and Crystal Diamond Icons.
 
99
%(name)s is licensed under the GPL v3. %(name)s has no limitations, no
 
100
time-outs, no nags, no adware, no banner ads and no spyware. It is 100%% free. 
 
101
 
 
102
%(url)s
 
103
 
 
104
%(copyright)s
 
105
 
 
106
License: %(license)s
 
107
"""%INFO
 
108
 
 
109
WXPYTHON_CREDITS    = {'name':'wxPython', 
 
110
                        'url':'http://www.wxpython.org',
 
111
                        'author':'Robin Dunn'}
 
112
 
 
113
def all_credits():
 
114
    import wx
 
115
    wxPython_credits            = WXPYTHON_CREDITS
 
116
    wxPython_credits['name']    += ' %s'%wx.VERSION_STRING
 
117
    if not (wxPython_credits in CREDITS['libraries']):
 
118
        CREDITS['libraries'].append(wxPython_credits)
 
119
    return CREDITS
 
120
 
 
121
def write_readme():
 
122
    readme = open('../../README','w')
 
123
    readme.write(README)
 
124
    readme.close()
 
125
    
 
126
def write_credits():
 
127
    all_credits()
 
128
    authors = open('../../AUTHORS','w')
 
129
    authors.write("Phatch is the result of work by (in no particular order):")
 
130
    tasks   = CREDITS.keys()
 
131
    tasks.sort()
 
132
    for task in tasks:
 
133
        authors.write('\n\n\n%s:\n\n'%task.title())
 
134
        authors.write('\n'.join([' - '.join(person.values()) 
 
135
            for person in CREDITS[task]]))
 
136
    authors.close()
 
137
    
 
138
def main():
 
139
    write_readme()
 
140
    write_credits()
 
141
    
 
142
if __name__ == '__main__':
 
143
    main()
 
144
    
 
145
#icons
 
146
#http://arenyart.googlepages.com/icons
 
147
#icons: http://www.paolinoland.it/index.php?option=com_content&task=view&id=14&Itemid=29