setup.py

Wed, 24 Apr 2013 10:37:45 +0200

author
Andy Buckley <andy@insectnation.org>
date
Wed, 24 Apr 2013 10:37:45 +0200
changeset 24
02f21810d43d
parent 21
71e18d3b1685
child 28
1088bb11189f
permissions
-rwxr-xr-x

Adding -1/--one-pageand --exclude options, and various tweaks

     1 #! /usr/bin/env python
     3 """\
     4 emin makes static Web pages for presenting lots of imagey things: photos, PDFs,
     5 graphs with thumbnails as well as links to the image/doc file proper.
     7 It's primarily intended for making Web photo galleries for the sorts of people
     8 who don't want to install some PHP monstrosity just to put their photos
     9 online. On the assumption that most people will want to tweak their gallery's
    10 appearance, the output is fully customisable using the Cheetah templating
    11 engine.
    13 Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS, with the latter
    14 two being converted to PNG for Web display.  Image resizing, renaming and
    15 thumbnailing is supported, as is building a zip file to download the whole
    16 set. Large image sets can be split over several pages.
    17 """
    19 ## Get setuptools stuff
    20 from distutils.core import setup
    23 ## Try to import Cheetah templating
    24 try:
    25     from Cheetah.Template import Template
    26 except Exception, e:
    27     logging.error("Couldn't import required Cheetah package: please install Cheetah first")
    28     exit(1)
    30 ## Try to import Python Imaging Library
    31 try:
    32     import PIL.Image
    33 except Exception, e:
    34     logging.error("Couldn't import required Python Imaging Library package: please install PIL first")
    35     exit(1)
    38 ## Setup definition
    39 setup(name = 'emin',
    40       version = "0.3.4",
    41       scripts = ['emin'],
    42       requires = ["Cheetah", "PIL"],
    43       author = 'Andy Buckley',
    44       author_email = 'andy@insectnation.org',
    45       #url = 'http://www.insectnation.org/projects/emin/',
    46       description = 'A simple builder of static Web galleries.',
    47       long_description = __doc__,
    48       keywords = 'photo gallery web www html template',
    49       license = 'GPL',
    50       classifiers = ['Development Status :: 4 - Beta',
    51                    'Environment :: Console',
    52                    'License :: OSI Approved :: GNU General Public License (GPL)',
    53                    'Operating System :: OS Independent',
    54                    'Programming Language :: Python']
    55       )

mercurial