niol / lazygal

Static web gallery generator
https://sml.zincube.net/~niol/repositories.git/lazygal/about/
GNU General Public License v2.0
6 stars 3 forks source link

Lazygal

About

lazygal is another static web gallery generator written in Python.

It can be summed up by the following features :

Example demos

Requirements

lazygal requires :

Building a lazygal installation requires :

Usage

Usage is straightforward :

$ cd /var/www/album
$ lazygal ~/pics
$

More information can be found on the manual pages lazygal(1) and lazygal.conf(5).

If you want to force lazygal into checking a directory's contents, simply touch the source directory to modify its modification time :

$ touch album_source/gallery_to_check

Download & Changelog

A user friendly changelog for lazygal exists.

The latest lazygal version is available as an archive.

(full log of changes may be browsed in Lazygal's repository browser)

Lazygal is part of Debian (and thus Ubuntu universe), which should make it one apt install away if you use one of those.

Contributing

Code

Code may be downloaded using Git :

$ git clone http://sml.zincube.net/~niol/repositories.git/lazygal

It is browsable online in Lazygal's repository browser, and this page also provides an up to date snapshot of the development source tree.

lazygal may be used directly in the source repository, by calling the lazygal.py script. Building simply prepares the translations and the man pages. Updating a source checkout of the lazygal repository is done using git pull in the source directory.

Patches are very welcome.

Test suite

There is a test suite validating many options and ensuring that things do not break too often. The full test suite can be run:

$ ./setup.py test

Inidividual tests can be run using unittest facilities, for instance for the test_cleanup test in the TestGenerators test case:

$ python3 -m lazygaltest.test_generators TestGenerators.test_cleanup

or the whole TestGenerators test case

$ python3 -m lazygaltest.test_generators TestGenerators.test_cleanup

DEBUG logging can be set in the test suite by setting the DEBUG environment variable to any value.

$ DEBUG=1 python3 -m lazygaltest.test_generators TestGenerators.test_cleanup

Translations

To start a new translation, for example cs_CZ, you can proceed as follows. The first script requires intltool-update and xgettext from the GNU gettext package.

$ devscripts/update-po
$ cp locale/lazygal.pot locale/cz_CZ.po
$ $EDITOR locale/cz_CZ.po

(do not bother committing or sending in changes to lazygal.pot, they contain a lot of noise because of changes in line numbers)

Another side-note : in templates, translatable strings are declared in a character noisy way (I hope to fix this one day). As an example :

<p><a href="https://github.com/niol/lazygal/blob/master/.">Parent</a></p>

becomes

<p><a href="https://github.com/niol/lazygal/blob/master/.">${_('Parent')}</a></p>

Bugs & feature requests

This project has too few users/contributors to justify the use of a dedicated bug tracking application.

For now, bug reports and feature requests may go in :