import logging
import email.utils
-from LogRotateCommon import split_parts, email_valid, period2days, human2bytes
-from LogRotateCommon import get_address_list
-from LogRotateScript import LogRotateScript
+try:
+ import LogRotate.Common
+except ImportError:
+ sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
+ import LogRotate.Common
+
+from LogRotate.Common import split_parts, email_valid, period2days, human2bytes
+from LogRotate.Common import get_address_list
+from LogRotate.Script import LogRotateScript
revision = '$Revision$'
revision = re.sub( r'\$', '', revision )
import bz2
import zipfile
-from LogRotateConfig import LogrotateConfigurationError
-from LogRotateConfig import LogrotateConfigurationReader
+try:
+ import LogRotate.Common
+except ImportError:
+ sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
+ import LogRotate.Common
-from LogRotateStatusFile import LogrotateStatusFileError
-from LogRotateStatusFile import LogrotateStatusFile
-from LogRotateStatusFile import utc
+from LogRotate.Config import LogrotateConfigurationError
+from LogRotate.Config import LogrotateConfigurationReader
-from LogRotateMailer import LogRotateMailerError
-from LogRotateMailer import LogRotateMailer
+from LogRotate.StatusFile import LogrotateStatusFileError
+from LogRotate.StatusFile import LogrotateStatusFile
+from LogRotate.StatusFile import utc
+
+from LogRotate.Mailer import LogRotateMailerError
+from LogRotate.Mailer import LogRotateMailer
revision = '$Revision$'
revision = re.sub( r'\$', '', revision )
from quopri import encodestring as _encodestring
-from LogRotateCommon import email_valid
+try:
+ import LogRotate.Common
+except ImportError:
+ sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
+ import LogRotate.Common
+
+from LogRotate.Common import email_valid
revision = '$Revision$'
revision = re.sub( r'\$', '', revision )
from datetime import tzinfo, timedelta, datetime, date, time
-from LogRotateCommon import split_parts
+try:
+ import LogRotate.Common
+except ImportError:
+ sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))
+ import LogRotate.Common
+
+from LogRotate.Common import split_parts
revision = '$Revision$'
revision = re.sub( r'\$', '', revision )
--- /dev/null
+
+[python: **.py]
+
+output_file = "locale/messages.pot"
@contact: frank@brehm-online.com
@license: GPL3
@copyright: (c) 2010-2011 by Frank Brehm, Berlin
-@version: 0.5.3
+@version: 0.6.0
@summary: rotates and compress system logs
'''
__author__ = 'Frank Brehm'
__copyright__ = '(C) 2011 by Frank Brehm, Berlin'
__contact__ = 'frank@brehm-online.com'
-__version__ = '0.5.3 ' + revision
+__version__ = '0.6.0 ' + revision
__license__ = 'GPL3'
--- /dev/null
+
+[extract_messages]
+
+keywords = _, gettext, ngettext
+mapping_file = babel.cfg
+width = 76
+charset = utf-8
+copyright-holder = "2011 Frank Brehm, Berlin"
+sort-output = True
+;sort-by-file = True
+output-file = locale/pylogrotate.pot
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# $Id$
+# $URL$
+
+'''
+@author: Frank Brehm
+@contact: frank@brehm-online.com
+@license: GPL3
+@copyright: (c) 2010-2011 by Frank Brehm, Berlin
+@version: 0.6.0
+@summary: setup for pylogrotate
+'''
+
+from setuptools import setup
+
+setup(
+ name='pylogrotate',
+ version='0.6.0',
+ description='rotates and compress system logs',
+ author='Frank Brehm',
+ author_email='frank@brehm-online.com',
+ url='http://svn.brehm-online.com/svn/my-stuff/python/PyLogrotate/',
+ packages=['LogRotate'],
+ scripts = ['logrotate.py'],
+)
+
+
+
+#========================================================================
+
+# vim: fileencoding=utf-8 filetype=python ts=4 expandtab