From 382c81eaf8e368d5c911e5bf4d7f2e257bc3e0d2 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Tue, 25 Jan 2011 08:52:11 +0000 Subject: setup.py and documentation tweaks. --- NEWS.txt | 11 +++++++++-- doc/conf.py | 6 +++--- doc/index.rst | 2 ++ logutils/__init__.py | 2 +- setup.py | 7 +++++-- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/NEWS.txt b/NEWS.txt index 026a0a3..8b235b6 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -1,14 +1,21 @@ +:orphan: + +.. _whats-new: + What's New in logutils ====================== +Version 0.3.1 +------------- + +- Improvements in setup.py and documentation. + Version 0.3 ----------- - Added caches for BraceMessage/DollarMessage. - - Added ColorizingStreamHandler. - Version 0.2 ----------- diff --git a/doc/conf.py b/doc/conf.py index a1af384..c526df8 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -42,16 +42,16 @@ master_doc = 'index' # General information about the project. project = u'Logutils' -copyright = u'2010, Vinay Sajip' +copyright = u'2010-2011, Vinay Sajip' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '0.2' +version = '0.3' # The full version, including alpha/beta/rc tags. -release = '0.2' +release = '0.3' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/doc/index.rst b/doc/index.rst index 56aab6a..095d0e8 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -7,6 +7,8 @@ Logutils documentation .. automodule:: logutils + For recent changes, see :ref:`whats-new`. + There are a number of subcomponents to this package, relating to particular tasks you may want to perform: diff --git a/logutils/__init__.py b/logutils/__init__.py index f917643..377da43 100644 --- a/logutils/__init__.py +++ b/logutils/__init__.py @@ -10,7 +10,7 @@ of Python, and so are packaged here. import logging from string import Template -__version__ = '0.3' +__version__ = '0.3.1' class NullHandler(logging.Handler): """ diff --git a/setup.py b/setup.py index a8a7da6..b0e95a9 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,9 @@ import re def description(): - readme = open(join(dirname(__file__), 'README.txt')).read() + f = open(join(dirname(__file__), 'README.txt')) + readme = f.read() + f.close() regexp = r'^logutils\s*[\d.]*\s*\n=======+\s*\n(.*)Requirements ' reqts, = re.findall(regexp, readme, re.DOTALL) regexp = r'Availability & Documentation\s*\n-----+\s*\n(.*)' @@ -60,12 +62,13 @@ distutils.core.setup( long_description = description(), license='New BSD', classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', + "Programming Language :: Python :: 3", 'Topic :: Software Development', ], packages=['logutils'], -- cgit v1.2.1