Commits

Jason R. Coombs committed b432611 Merge

Merge with cherrypy-3.2.x (3.2.5)

  • Participants
  • Parent commits 63bb3eb, d87b750

Comments (0)

Files changed (10)

 81c92cbcf2302f83efa739970a35ec48733b177c cherrypy-3.2.2
 c9d13db2b4331474b768b3ed156ddae5030e7f2c 3.2.3
 cd8acbc5f2b3914d396f2925b2d5e2561cfd39a4 3.2.4
+052f32b1d56309115c8f4fe48f4bf25a15b87706 3.2.5

File cherrypy/__init__.py

 These API's are described in the `CherryPy specification <https://bitbucket.org/cherrypy/cherrypy/wiki/CherryPySpec>`_.
 """
 
-__version__ = "3.2.4"
+__version__ = "3.2.5"
 
 from cherrypy._cpcompat import urljoin as _urljoin, urlencode as _urlencode
 from cherrypy._cpcompat import basestring, unicodestr, set

File cherrypy/_cpcompat.py

File contents unchanged.

File cherrypy/lib/reprconf.py

 
         raise TypeError("unrepr could not resolve the name %s" % repr(name))
 
+    def build_NameConstant(self, o):
+        return o.value
+
     def build_UnaryOp(self, o):
         op, operand = map(self.build, [o.op, o.operand])
         return op(operand)

File cherrypy/process/plugins.py

     def sysfiles(self):
         """Return a Set of sys.modules filenames to monitor."""
         files = set()
-        for k, m in sys.modules.items():
+        for k, m in list(sys.modules.items()):
             if re.match(self.match, k):
                 if (
                     hasattr(m, '__loader__') and

File cherrypy/wsgiserver/wsgiserver2.py

     timeout = 10
     """The timeout in seconds for accepted connections (default 10)."""
 
-    version = "CherryPy/3.2.4"
+    version = "CherryPy/3.2.5"
     """A version string for the HTTPServer."""
 
     software = None

File cherrypy/wsgiserver/wsgiserver3.py

     timeout = 10
     """The timeout in seconds for accepted connections (default 10)."""
 
-    version = "CherryPy/3.2.4"
+    version = "CherryPy/3.2.5"
     """A version string for the HTTPServer."""
 
     software = None
 import shutil
 import importlib
 
-VERSION = '3.2.4'
+VERSION = '3.2.5'
 
 if sys.version_info < (3,):
     input = raw_input
 
 def bump_version(filename):
     with open(filename, 'rb') as f:
-        lines = [line.replace(VERSION, NEXT_VERSION) for line in f]
+        b_version = VERSION.encode('ascii')
+        b_next_version = NEXT_VERSION.encode('ascii')
+        lines = [line.replace(b_version, b_next_version) for line in f]
     with open(filename, 'wb') as f:
         f.writelines(lines)
 
     """
     subprocess.check_call(['hg', 'tag', NEXT_VERSION])
 
-dist_commands = [
-    [sys.executable, 'setup.py', 'sdist', '--format=zip'],
-    [sys.executable, 'setup.py', 'sdist', '--format=gztar'],
-    [sys.executable, 'setup.py', 'bdist_wininst'],
-    [sys.executable, 'setup.py', 'bdist_wheel'],
-]
+dist_commands = ['sdist', 'bdist_wininst', 'bdist_wheel']
 
 
 def build():
         os.remove('MANIFEST')
     if os.path.isdir('dist'):
         shutil.rmtree('dist')
-    list(map(subprocess.check_call, dist_commands))
+    subprocess.check_call([sys.executable, 'setup.py'] + dist_commands)
 
 
 def push():
     "The build went well, so let's push the SCM changesets"
-    subprocess.check_call(['hg', 'push'])
+    subprocess.check_call(['hg', 'push', '-r', '.'])
 
 
 def publish():
     Publish the dists on PyPI
     """
     try:
-        upload_dist_commands = [cmd + ['register', 'upload']
-                                for cmd in dist_commands]
-        list(map(subprocess.check_call, upload_dist_commands))
+        upload_dist_command = [sys.executable, 'setup.py'] + dist_commands + ['register', 'upload']
+        subprocess.check_call(upload_dist_command)
     except:
         print("Unable to upload the dist files. Ask in IRC for help access 57"
               "or assistance.")
 [sdist]
-formats=gztar
+formats=gztar,zip
 
 [nosetests]
 where=cherrypy
 # arguments for the setup command
 ###############################################################################
 name = "CherryPy"
-version = "3.2.4"
+version = "3.2.5"
 desc = "Object-Oriented HTTP framework"
 long_desc = "CherryPy is a pythonic, object-oriented HTTP framework"
 classifiers = [