debian/0000755000000000000000000000000012215141026007160 5ustar debian/blogofile-converters.install0000644000000000000000000000005212214475655014720 0ustar converters/wordpress2blogofile.py usr/bin debian/blogofile-converters.manpages0000644000000000000000000000003512214475655015046 0ustar debian/wordpress2blogofile.1 debian/blogofile.10000644000000000000000000000246712214475655011236 0ustar .\" Hey, EMACS: -*- nroff -*- .TH BLOGOFILE "1" "October 2011" "Blogofile" "User Commands" .SH NAME Blogofile \- Static website compiler and blog engine .SH DESCRIPTION usage: blogofile [\-h] [\-s DIR] [\-\-version] [\-v] [\-vv] .IP {info,init,serve,help,build} ... .SS "positional arguments:" .IP {info,init,serve,help,build} .TP help Show help for a command. .TP build Build the site from source. .TP init Create a new Blogofile site from an existing template. .TP serve Host the _site dir with the builtin webserver. Useful for quickly testing your site. Not for production use, please use Apache instead ;) .TP info Show information about the Blogofile installation and the current site. .SS "optional arguments:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-s\fR DIR, \fB\-\-src\-dir\fR DIR Your site's source directory (default is current directory) .HP \fB\-\-version\fR .TP \fB\-v\fR, \fB\-\-verbose\fR Be verbose .TP \fB\-vv\fR, \fB\-\-veryverbose\fR Be extra verbose .SH AUTHOR blogofile was written by Ryan McGuire . .PP This manual page was written by Andreas Rütten for the Debian project (and may be used by others). .SH SEE ALSO The Blogofile Documentation at http://www.blogofile.com/documentation/index.html debian/blogofile.install0000644000000000000000000000004612214475655012533 0ustar debian/tmp/usr/bin debian/tmp/usr/lib debian/blogofile.lintian-overrides0000644000000000000000000000040012214475655014515 0ustar # The upstream LICENSE.txt contains beside the actual Expat (MIT) # license some thoughts from the Author about his view on the license # and Free Software in general. To sustain this information we will # keep this file in the package. extra-license-file debian/blogofile.manpages0000644000000000000000000000002312214475655012653 0ustar debian/blogofile.1 debian/compat0000644000000000000000000000000212214475655010377 0ustar 8 debian/copyright0000644000000000000000000000415712214475655011143 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: blogofile Upstream-Contact: blogofile-discuss@googlegroups.com Source: http://www.blogofile.com/ Files: * Copyright: 2009 Ryan McGuire License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2011 Andreas Rütten License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/docs0000644000000000000000000000002712214475655010053 0ustar LICENSE.txt README.rst debian/patches/0000755000000000000000000000000012214475655010630 5ustar debian/patches/0001-Remove-version-pinning-as-much-as-possible.patch0000644000000000000000000000501212214475655022357 0ustar From: Doug Latornell Date: Mon, 5 Nov 2012 18:26:54 -0500 Origin: https://github.com/EnigmaCurry/blogofile/commit/35c6d58acf01645895bbc46547c9fd41d1a1c4b7 Forwarded: not-needed Subject: Remove version pinning as much as possible. textile is still pinned to textile==2.1.4-p3k for Python 3. --- requirements/develop.txt | 2 ++ requirements/production.txt | 5 +++++ setup.py | 24 ++++++++++++++++-------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/requirements/develop.txt b/requirements/develop.txt index 2616d8f..7dc2a80 100644 --- a/requirements/develop.txt +++ b/requirements/develop.txt @@ -1,4 +1,6 @@ # Packages required to hack on blogofile +# +# Versions shown are those tested at the time of the last release. -r production.txt Sphinx==1.1.3 diff --git a/requirements/production.txt b/requirements/production.txt index c0e2547..51bee43 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -1,4 +1,9 @@ # Python packages required to run blogofile +# +# Versions shown are those tested at the time of the last release. +# setup.py does not use pinned versions (other than `textile==2.1.4-py3k` +# for Python 3.2) so later versions may be installed, but you should drop +# back to the versions listed here if you have problems. Jinja2==2.6 Mako==0.7.2 diff --git a/setup.py b/setup.py index 8b9296c..8bbf00d 100644 --- a/setup.py +++ b/setup.py @@ -20,19 +20,27 @@ with open('README.rst', 'rt') as readme: long_description = readme.read() with open('CHANGES.txt', 'rt') as changes: long_description += '\n\n' + changes.read() -with open('requirements/production.txt', 'rt') as reqs: - requirements = reqs.read() -install_requires = [line for line in requirements.split('\n') - if line and not line.startswith('#')] -# TODO: There has to be a better way... + +install_requires = [ + 'docutils', + 'Jinja2', + 'Mako', + 'Markdown', + 'MarkupSafe', + 'Pygments', + 'pytz', + 'PyYAML', + 'six', + 'Unidecode', +] dependency_links = [] if PY3: - textile_index = [i for i, item in enumerate(install_requires) - if item.startswith('textile')][0] - install_requires[textile_index] += '-py3k' + install_requires.append('textile==2.1.4-py3k') dependency_links = [ 'http://github.com/EnigmaCurry/textile-py3k/tarball/2.1.4' '#egg=textile-2.1.4-py3k'] +else: + install_requires.append('textile') if PY26: install_requires.append('argparse') debian/patches/0002-Add-allow_reuse_address-to-server-stop-occasional-Ad.patch0000644000000000000000000000231712214475655024311 0ustar From: Nick Craig-Wood Date: Fri, 21 Dec 2012 17:23:28 +0000 Origin: https://github.com/EnigmaCurry/blogofile/commit/f2d678d73c33fa1d098d2518cd2f8484a16d1e16 Forwarded: not-needed Subject: Add allow_reuse_address to server stop occasional "Address already in use" errors --- blogofile/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blogofile/server.py b/blogofile/server.py index 2208ec6..2126b91 100644 --- a/blogofile/server.py +++ b/blogofile/server.py @@ -18,6 +18,9 @@ bf.server = sys.modules['blogofile.server'] logger = logging.getLogger("blogofile.server") +class TCPServer(socketserver.TCPServer): + """TCP Server that allows address reuse""" + allow_reuse_address = True class Server(threading.Thread): def __init__(self, port, address="127.0.0.1"): @@ -31,7 +34,7 @@ class Server(threading.Thread): server_address = (address, self.port) HandlerClass = BlogofileRequestHandler HandlerClass.protocol_version = "HTTP/1.0" - ServerClass = socketserver.TCPServer + ServerClass = TCPServer self.httpd = ServerClass(server_address, HandlerClass) self.sa = self.httpd.socket.getsockname() debian/patches/series0000644000000000000000000000016612214475655012050 0ustar 0001-Remove-version-pinning-as-much-as-possible.patch 0002-Add-allow_reuse_address-to-server-stop-occasional-Ad.patch debian/rules0000755000000000000000000000056512214475655010267 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ --with python2 override_dh_auto_clean: dh_auto_clean rm -rf ./Blogofile.egg-info/ override_dh_install: dh_install --list-missing mv $(CURDIR)/debian/blogofile-converters/usr/bin/wordpress2blogofile.py \ $(CURDIR)/debian/blogofile-converters/usr/bin/wordpress2blogofile debian/source/0000755000000000000000000000000012214475655010501 5ustar debian/source/format0000644000000000000000000000001412214475655011707 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000005012214475655012112 0ustar extend-diff-ignore = "(^|/)(.*\.zip)$" debian/watch0000644000000000000000000000016112214475655010230 0ustar # watch control file for uscan version=3 http://githubredir.debian.net/github/EnigmaCurry/blogofile/ (.*).tar.gz debian/wordpress2blogofile.10000644000000000000000000000151312214475655013260 0ustar .\" Hey, EMACS: -*- nroff -*- .TH WORDPRESS2BLOGOFILE "1" "October 2011" "Blogofile" "User Commands" .SH NAME wordpress2blogofile \- Migrating existing Wordpress Blog to Blogofile .SH SYNOPSIS \fBwordpress2blogofile\fR .SH DESCRIPTION wordpress2blogofile is used to migrate an existing Wordpress Blog to Blogofile /_posts directory format. .PP For a complete User Guide please see the Blogofile online Documentation at http://www.blogofile.com/documentation/migrating_blogs.html .SH AUTHOR wordpress2blogofile was written by Ryan McGuire . .PP This manual page was written by Andreas Rütten for the Debian project (and may be used by others). .SH SEE ALSO \fBblogofile\fR(1) .PP The Blogofile Documentation athttp://www.blogofile.com/documentation/index.html debian/changelog0000644000000000000000000000204012215140766011040 0ustar blogofile (0.8b1-1) unstable; urgency=low * New upstream version * debian/rules: Fix override_dh_auto_clean * debian/docs: README is now ReStructured Text instead of Markdown * Bump Standards-Version (no changes needed) * Change B-D from python to python-all according to python-policy * Remove unneeded lintian override: no-upstream-changelog * Cherry-pick patches from upstream: - 0001-Remove-version-pinning-as-much-as-possible.patch (35c6d58acf01645895bbc46547c9fd41d1a1c4b7) - 0002-Add-allow_reuse_address-to-server-stop-occasional-Ad.patch (f2d678d73c33fa1d098d2518cd2f8484a16d1e16) * Add missing dependency: python-pkg-resources * Set myself as maintainer * Canonicalize VCS urls to make lintian happy -- Jakob Haufe Fri, 13 Sep 2013 10:47:00 +0200 blogofile (0.7.1-1) unstable; urgency=low * Initial release (Closes: #644433) * Add debian/blogofile.1 manpage * Add debian/wordpress2blogofile manpage -- Andreas Rütten Fri, 21 Oct 2011 17:40:53 +0200 debian/control0000644000000000000000000000272712215140766010605 0ustar Source: blogofile Section: web Priority: optional Maintainer: Jakob Haufe Build-Depends: debhelper (>= 8), python-setuptools (>= 0.6b3), python-all X-Python-Version: >= 2.6 Standards-Version: 3.9.4 Homepage: http://www.blogofile.com/ Vcs-Git: git://anonscm.debian.org/collab-maint/blogofile.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/blogofile.git Package: blogofile Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources Suggests: git | subversion | bzr | mercurial | darcs Description: static website compiler and blog engine Blogofile is a static website compiler, primarily (though not exclusively) designed to be a simple blogging engine. It requires no database and no special hosting environment. You customize a set of templates with Mako, create posts in a markup language of your choice (Markdown, Textile, reStructuredText or plain old HTML) and Blogofile renders your entire website as static HTML and Atom/RSS feeds which you can then upload to any old web server you like. Package: blogofile-converters Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-mysqldb, python-sqlalchemy Recommends: blogofile (>= ${source:Version}) Description: blog converter collection for Blogofile This is a collection of scripts which helps to migrate existing Blogs into the Blogofile /_posts directory format. . The included converters are: . * wordpress2blogofile: converts a Wordpress Blog