| 1 |
#!/usr/bin/python3 |
| 2 |
|
| 3 |
# simple_changelog - A simple example of how to use the changelog.py module. |
| 4 |
# Copyright (C) 2006 James Westby <[email protected]> |
| 5 |
# |
| 6 |
# This program is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation; either version 2 of the License, or |
| 9 |
# (at your option) any later version. |
| 10 |
# |
| 11 |
# This program is distributed in the hope that it will be useful, |
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
# GNU General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU General Public License |
| 17 |
# along with this program; if not, write to the Free Software |
| 18 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 |
|
| 20 |
from debian.changelog import Changelog, Version |
| 21 |
|
| 22 |
changelog = Changelog() |
| 23 |
|
| 24 |
changelog.new_block(package='python-debian', |
| 25 |
version=Version('0.1'), |
| 26 |
distributions='unstable', |
| 27 |
urgency='low', |
| 28 |
author='James Westby <[email protected]>', |
| 29 |
date='Thu, 3 Aug 2006 19:16:22 +0100', |
| 30 |
) |
| 31 |
|
| 32 |
changelog.add_change(''); |
| 33 |
changelog.add_change(' * Welcome to changelog.py'); |
| 34 |
changelog.add_change(''); |
| 35 |
|
| 36 |
print(changelog) |
| 37 |
|