Commits

Massimiliano Ravelli  committed 7f9b0e2

added exception management to README.rst open

  • Participants
  • Parent commits f444209

Comments (0)

Files changed (1)

 from os.path import join, dirname
 from distutils.core import setup
 
+try:
+    f = open(join(dirname(__file__), 'README.rst'))
+    long_description = f.read().strip()
+    f.close()
+except IOError:
+    long_description = None
+
 setup(
     name='django-jquery',
     version='1.4',
     url="http://bitbucket.org/massimilianoravelli/django-jquery",
     description='jQuery packaged in an handy django app to speed up new applications and deployment.',
-    long_description=open(join(dirname(__file__), 'README.rst')).read(),
+    long_description=long_description,
     author='Massimiliano Ravelli',
     author_email='massimiliano.ravelli@gmail.com',
     license='MIT',
         'Topic :: Utilities',
     ],
     packages=['jquery'],
-    package_data={'jquery': ['README.rst', 'static/js/*.js']},
+    package_data={'jquery': ['static/js/*.js']},
 )