From 11e8a1401e87c427d3ffb4f8681ed8ed5f7d0dd0 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Sun, 28 Jun 2015 20:00:34 +0900 Subject: [PATCH] Follow filename changes --- setup.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index e73d01b..adb23d8 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2009-2011 Kouhei Sutou +# Copyright (C) 2009-2015 Kouhei Sutou # # This library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -46,7 +46,7 @@ sf_host = "%s@web.sourceforge.net" % sf_user sf_htdocs = "/home/groups/p/pi/pikzie/htdocs" -long_description = re.split("\n.+\n=+", open("README").read())[5].strip() +long_description = re.split("\n.+\n=+", open("README.rst").read())[5].strip() description = re.sub("\n", " ", long_description.split("\n\n")[0]) def get_fullname(self): @@ -134,10 +134,10 @@ def finalize_options(self): def run(self): self._generate_assertions_html(None) self._generate_assertions_html("ja") - _run("rst2html", "README", "html/readme.html") - _run("rst2html", "README.ja", "html/readme.html.ja") - _run("rst2html", "NEWS", "html/news.html") - _run("rst2html", "NEWS.ja", "html/news.html.ja") + _run("rst2html", "README.rst", "html/readme.html") + _run("rst2html", "README.ja.rst", "html/readme.html.ja") + _run("rst2html", "NEWS.rst", "html/news.html") + _run("rst2html", "NEWS.ja.rst", "html/news.html.ja") def _generate_assertions_html(self, lang): object = pikzie.assertions.Assertions @@ -228,7 +228,7 @@ def run(self): os.rename("dist/%s" % archive_name, archive_name) _run("misc/release.rb", sf_user, sf_project_id, sf_project_name, sf_package_name, - version, "README", "NEWS", + version, "README.rst", "NEWS.rst", archive_name) class tag(Command):