summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2018-10-08 09:25:01 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-10-08 09:25:01 (GMT)
commit3b447a1660a14b0a2c1595c8f9a066501fa24e2b (patch) (side-by-side diff)
tree32e52b98b460c25c341c39f80f4a28a633686d59
parent2414a1def4af92257638d8c2b28bdc4ee4cbe627 (diff)
downloadreleaselogparser-3b447a1660a14b0a2c1595c8f9a066501fa24e2b.tar.gz
releaselogparser-3b447a1660a14b0a2c1595c8f9a066501fa24e2b.tar.bz2
Rename package to releaselogparser
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--README.rst10
-rwxr-xr-xbin/releaselog2
-rw-r--r--releaselogparser/__init__.py (renamed from releaselog/__init__.py)0
-rw-r--r--releaselogparser/format/__init__.py (renamed from releaselog/format/__init__.py)0
-rw-r--r--releaselogparser/format/cpan.py (renamed from releaselog/format/cpan.py)6
-rw-r--r--releaselogparser/format/gnu.py (renamed from releaselog/format/gnu.py)6
-rw-r--r--releaselogparser/format/python.py (renamed from releaselog/format/python.py)2
-rw-r--r--releaselogparser/input.py (renamed from releaselog/input.py)2
-rw-r--r--setup.py4
-rw-r--r--tests/rlogtester.py2
10 files changed, 17 insertions, 17 deletions
diff --git a/README.rst b/README.rst
index 964918a..87e6e43 100644
--- a/README.rst
+++ b/README.rst
@@ -1,4 +1,4 @@
-Release Log Reader
+Release Log Parser
==================
Software packages usually include textual files describing noteworthy
changes in each subsequent release. There exist several variants (or
@@ -87,7 +87,7 @@ Typical usage::
The two mandatory arguments are the format name and the list of lines
obtained from the release log file.
-Valid format names for this version of ``releaselog`` are:
+Valid format names for this version of ``releaselogparser`` are:
``GNU``, ``NEWS``
GNU-style news file.
@@ -159,7 +159,7 @@ Example
The following simple program reads release log entries from the file
``NEWS`` and prints them on the standard output::
- from releaselog.input import ReleaseLogFile
+ from releaselogparser.input import ReleaseLogFile
for log in ReleaseLogFile('GNU', 'NEWS'):
print(log)
@@ -193,14 +193,14 @@ the following attributes::
``None``, if not needed.
The file with the definition of the inherited class must be placed in
-the directory ``releaselog/format`` reachable from the Python search path
+the directory ``releaselogparser/format`` reachable from the Python search path
for module files.
The following example implements a simplified version of CHANGES.txt log
format::
import re
- from releaselog import ReleaseHistory
+ from releaselogparser import ReleaseHistory
class ChangesLogFormat(ReleaseHistory):
format = ['changes']
diff --git a/bin/releaselog b/bin/releaselog
index 33e36c9..5f157d0 100755
--- a/bin/releaselog
+++ b/bin/releaselog
@@ -5,7 +5,7 @@ from __future__ import unicode_literals
import sys
from optparse import OptionParser
-from releaselog.input import ReleaseLogFile, ReleaseLogURL
+from releaselogparser.input import ReleaseLogFile, ReleaseLogURL
# Set utf-8 as the default encoding for Python 2.7.
try:
diff --git a/releaselog/__init__.py b/releaselogparser/__init__.py
index 015f796..015f796 100644
--- a/releaselog/__init__.py
+++ b/releaselogparser/__init__.py
diff --git a/releaselog/format/__init__.py b/releaselogparser/format/__init__.py
index a5e8ea0..a5e8ea0 100644
--- a/releaselog/format/__init__.py
+++ b/releaselogparser/format/__init__.py
diff --git a/releaselog/format/cpan.py b/releaselogparser/format/cpan.py
index d6ffb78..c3eb677 100644
--- a/releaselog/format/cpan.py
+++ b/releaselogparser/format/cpan.py
@@ -4,14 +4,14 @@ Implementation of the CPAN 'Changes' history format.
Usage:
- from releaselog import ReleaseLog, cpan
+ from releaselogparser import ReleaseLog, cpan
ReleaseLog.regformat('Changes', cpan.ReleaseLogFormat)
NOTE: DON'T DO IT. This is normally done as a part of initialization of
-the releaselog module.
+the releaselogparser module.
"""
import re
-from releaselog import ReleaseHistory
+from releaselogparser import ReleaseHistory
class ReleaseLogFormat(ReleaseHistory):
diff --git a/releaselog/format/gnu.py b/releaselogparser/format/gnu.py
index 503a7de..22bff4b 100644
--- a/releaselog/format/gnu.py
+++ b/releaselogparser/format/gnu.py
@@ -4,15 +4,15 @@ Implementation of the GNU-style 'NEWS' history format.
Usage:
- from releaselog import ReleaseLog, gnu
+ from releaselogparser import ReleaseLog, gnu
ReleaseLog.regformat('GNU', gnu.ReleaseLogFormat)
NOTE: DON'T DO IT. This is normally done as a part of initialization of
-the releaselog module.
+the releaselogparser module.
"""
import re
-from releaselog import ReleaseHistory
+from releaselogparser import ReleaseHistory
class ReleaseLogFormat(ReleaseHistory):
format = ['GNU', 'NEWS']
diff --git a/releaselog/format/python.py b/releaselogparser/format/python.py
index cd742cc..0f06127 100644
--- a/releaselog/format/python.py
+++ b/releaselogparser/format/python.py
@@ -24,7 +24,7 @@ input line that matches any of the above patterns.
"""
import re
-from releaselog import ReleaseHistory
+from releaselogparser import ReleaseHistory
class PythonLogFormat(ReleaseHistory):
format = ['Python', 'python']
diff --git a/releaselog/input.py b/releaselogparser/input.py
index 138ba16..14c6a30 100644
--- a/releaselog/input.py
+++ b/releaselogparser/input.py
@@ -8,7 +8,7 @@ ReleaseLogURL
Read history from a URL
"""
-from releaselog import ReleaseLog
+from releaselogparser import ReleaseLog
from sys import version_info
class ReleaseLogFile(ReleaseLog):
diff --git a/setup.py b/setup.py
index 37a2b41..2058646 100644
--- a/setup.py
+++ b/setup.py
@@ -21,11 +21,11 @@ from codecs import open
with open("README.rst", "r") as fh:
long_description = fh.read()
-setup(name='releaselog',
+setup(name='releaselogparser',
version='0.3',
author='Sergey Poznyakoff',
author_email='gray@gnu.org',
- url='http://git.gnu.org.ua/cgit/gsc/releaselog.git/',
+ url='http://git.gnu.org.ua/cgit/gsc/releaselogparser.git/',
packages = find_packages(exclude=['contrib', 'docs',
'tests', 'testdata']),
scripts=['bin/releaselog'],
diff --git a/tests/rlogtester.py b/tests/rlogtester.py
index 7e4b374..f257ed9 100644
--- a/tests/rlogtester.py
+++ b/tests/rlogtester.py
@@ -1,5 +1,5 @@
import unittest
-from releaselog import ReleaseLog
+from releaselogparser import ReleaseLog
class ReleaseLogTestCase(unittest.TestCase):
def setUp(self):

Return to:

Send suggestions and report system problems to the System administrator.