Source

tome / setup.py

Diff from to

File setup.py

 You should have received a copy of the GNU Affero General Public License
 along with Tome.  If not, see <http://www.gnu.org/licenses/>.
 """
-import ez_setup
-ez_setup.use_setuptools()
-
-from setuptools import setup, find_packages
-import sys
-import os
-import cStringIO
-
-
-### This is a lot of screwing around to populate the README for the package from
-# a template we have in the templ directory.
-sys.path.insert(0, "src/tome")
-import version
-
-
-setup(
-    name='tome',
-    version=version.setuptools_string(),
-    description='Tome Markup Language for authors.',
-    author='Brian Mearns',
-    author_email='bmearns@ieee.org',
-    url='https://bitbucket.org/bmearns/tome/',
-    license='LICENSE.txt',
-
-    install_requires=["templ>=1.0"],
-
-    package_dir={'': 'src'},
-    packages=find_packages('src'),  #Looks for __init__.py
-    include_package_data = True,    #Uses MANIFEST.in
-    data_files = [
-        ('misc', ['LICENSE.txt', 'README.txt', 'TODO.txt', 'BUGS.txt', 'CHANGES.txt']),
-        ('res', ['res/tome.xsd',])
-    ],
-
-
-    entry_points = {
-        "console_scripts" : [
-            'tome = tome.main:main',
-            'tome-epub-template = tome.main:writeEpubTemplate',
-            'tome-latex-template = tome.main:writeLatexTemplate',
-            'tome-xml-schema = tome.main:writeXmlSchema',
-        ],
-    }
-)
-
+import ez_setup
+ez_setup.use_setuptools()
+
+from setuptools import setup, find_packages
+import sys
+import os
+import cStringIO
+
+
+### This is a lot of screwing around to populate the README for the package from
+# a template we have in the templ directory.
+sys.path.insert(0, "src/tome")
+import version
+
+lid = open("LICENSE.txt", "r")
+license = lid.read()
+lid.close()
+
+rid = open("README.txt", "r")
+readme = rid.read()
+rid.close()
+
+setup(
+    name='tome',
+    version=version.setuptools_string(),
+    author='Brian Mearns',
+    author_email='bmearns@ieee.org',
+    url='https://bitbucket.org/bmearns/tome/',
+    license=license,
+    description='Tome Markup Language for authors.',
+    long_description=readme,
+
+    install_requires=["templ>=1.0"],
+
+    package_dir={'': 'src'},
+    packages=find_packages('src'),  #Looks for __init__.py
+    include_package_data = True,    #Uses MANIFEST.in
+    data_files = [
+        ('misc', ['LICENSE.txt', 'README.txt', 'TODO.txt', 'BUGS.txt', 'CHANGES.txt']),
+    ],
+
+
+    entry_points = {
+        "console_scripts" : [
+            'tome = tome.main:main',
+            'tome-epub-template = tome.main:writeEpubTemplate',
+            'tome-latex-template = tome.main:writeLatexTemplate',
+            'tome-xml-schema = tome.main:writeXmlSchema',
+        ],
+    }
+)
+