[Checkins] SVN: hurry.jquery/trunk/s small changes in preparation of zest.releaser (and a bit of pep8/pyflakes)

Reinout van Rees reinout at vanrees.org
Fri Nov 27 09:07:32 EST 2009


Log message for revision 106064:
  small changes in preparation of zest.releaser (and a bit of pep8/pyflakes)

Changed:
  U   hurry.jquery/trunk/setup.py
  U   hurry.jquery/trunk/src/hurry/jquery/prepare.py

-=-
Modified: hurry.jquery/trunk/setup.py
===================================================================
--- hurry.jquery/trunk/setup.py	2009-11-27 13:56:26 UTC (rev 106063)
+++ hurry.jquery/trunk/setup.py	2009-11-27 14:07:32 UTC (rev 106064)
@@ -1,8 +1,10 @@
 from setuptools import setup, find_packages
+import os
 
 JQUERY_VERSION = '1.3.2'
+version = '1.3.2.1dev'
+# Name version after JQUERY_VERSION + .suffix
 
-import sys, os
 
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
@@ -13,14 +15,13 @@
     read('CHANGES.txt')
     + '\n' +
     'Download\n'
-    '********\n'
-    )
+    '********\n')
 
 setup(
     name='hurry.jquery',
-    version=JQUERY_VERSION + '.1' + 'dev',
+    version=version,
     description="hurry.resource style resources for jQuery.",
-    long_description = long_description,
+    long_description=long_description,
     classifiers=[],
     keywords='',
     author='Jan-Wijbrand Kolman',
@@ -35,11 +36,11 @@
         'setuptools',
         'hurry.resource > 0.2',
         ],
-    entry_points= {
+    entry_points={
         'console_scripts': [
             'jqueryprepare = hurry.jquery.prepare:main',
-            ]
-    },
+            ],
+        },
     extras_require={
         'zopesupport': ['hurry.zoperesource'],
         },

Modified: hurry.jquery/trunk/src/hurry/jquery/prepare.py
===================================================================
--- hurry.jquery/trunk/src/hurry/jquery/prepare.py	2009-11-27 13:56:26 UTC (rev 106063)
+++ hurry.jquery/trunk/src/hurry/jquery/prepare.py	2009-11-27 14:07:32 UTC (rev 106064)
@@ -1,14 +1,16 @@
 import os
 import shutil
-import sys
 import urllib2
 import urlparse
+
 from hurry.resource import generate_code, ResourceInclusion, Library
 
 BASEURL = "http://jqueryjs.googlecode.com/files/"
-MINIFIED = "jquery-1.3.2.min.js"
-FULL = "jquery-1.3.2.js"
+VERSION = '1.3.2'
+MINIFIED = "jquery-%s.min.js" % VERSION
+FULL = "jquery-%s.js" % VERSION
 
+
 def main():
     package_dir = os.path.dirname(__file__)
     jquery_dest_path = os.path.join(package_dir, 'jquery-build')



More information about the checkins mailing list