Victor Stinner avatar Victor Stinner committed 82519e1 reads README instead of using

Comments (0)

Files changed (3)


 hachoir-parser 1.3.2
+ * Include the README file in the tarball
+ * reads the README file instead of using to break the
+   build dependency on hachoir-core
 hachoir-parser 1.3.1 (2010-01-28)


 #!/usr/bin/env python
+from __future__ import with_statement
 def writeReadme(out):
     from hachoir_parser.parser_list import HachoirParserList
     HachoirParserList().print_(out=out, format=format)
 def main():
-    readme = open('README', 'w')
-    writeReadme(readme)
-    readme.close()
+    with open('README', 'w') as readme:
+        writeReadme(readme)
     print "README updated."
 if __name__ == "__main__":


 #!/usr/bin/env python
+from __future__ import with_statement
 from imp import load_source
 from os import path
 from sys import argv
 #  - run: hg commit
 #  - run: hg tag hachoir-parser-XXX
 #  - run: hg push
+#  - run: ./
 #  - run: python2.5 ./ --setuptools register sdist bdist_egg upload
 #  - run: python2.4 ./ --setuptools bdist_egg upload
 #  - run: python2.6 ./ --setuptools bdist_egg upload
+#  - run: rm README
 #  - check
 #  - update the website
 #    *
     "archive", "audio", "container", "common", "file_system", "game",
     "image", "misc", "network", "program", "video")
-def getLongDescription():
-    from README import writeReadme
-    from StringIO import StringIO
-    out = StringIO()
-    writeReadme(out)
-    return
 def main():
     if "--setuptools" in argv:
     for name in MODULES:
         PACKAGES["hachoir_parser." + name] = "hachoir_parser/" + name
+    with open('README') as readme:
+        long_description =
     install_options = {
         "name": hachoir_parser.PACKAGE,
         "version": hachoir_parser.__version__,
         "download_url": hachoir_parser.WEBSITE,
         "author": "Hachoir team (see AUTHORS file)",
         "description": "Package of Hachoir parsers used to open binary files",
-        "long_description": getLongDescription(),
+        "long_description": long_description,
         "classifiers": CLASSIFIERS,
         "license": hachoir_parser.LICENSE,
         "packages": PACKAGES.keys(),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.