Skip to content

Commit 1d384ca

Browse files
committed
Merge with cherrypy-3.2.x (3.2.5)
2 parents 63a3a94 + 3db790a commit 1d384ca

9 files changed

Lines changed: 19 additions & 19 deletions

File tree

.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ ee66c594632b75b458065ef0256af5ffc7eb307c cherrypy-3.2.2rc1
3636
81c92cbcf2302f83efa739970a35ec48733b177c cherrypy-3.2.2
3737
c9d13db2b4331474b768b3ed156ddae5030e7f2c 3.2.3
3838
cd8acbc5f2b3914d396f2925b2d5e2561cfd39a4 3.2.4
39+
052f32b1d56309115c8f4fe48f4bf25a15b87706 3.2.5

cherrypy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
These API's are described in the `CherryPy specification <https://bitbucket.org/cherrypy/cherrypy/wiki/CherryPySpec>`_.
5757
"""
5858

59-
__version__ = "3.2.4"
59+
__version__ = "3.2.5"
6060

6161
from cherrypy._cpcompat import urljoin as _urljoin, urlencode as _urlencode
6262
from cherrypy._cpcompat import basestring, unicodestr, set

cherrypy/lib/reprconf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ def build_Name(self, o):
419419

420420
raise TypeError("unrepr could not resolve the name %s" % repr(name))
421421

422+
def build_NameConstant(self, o):
423+
return o.value
424+
422425
def build_UnaryOp(self, o):
423426
op, operand = map(self.build, [o.op, o.operand])
424427
return op(operand)

cherrypy/process/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def start(self):
610610
def sysfiles(self):
611611
"""Return a Set of sys.modules filenames to monitor."""
612612
files = set()
613-
for k, m in sys.modules.items():
613+
for k, m in list(sys.modules.items()):
614614
if re.match(self.match, k):
615615
if (
616616
hasattr(m, '__loader__') and

cherrypy/wsgiserver/wsgiserver2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ class HTTPServer(object):
17551755
timeout = 10
17561756
"""The timeout in seconds for accepted connections (default 10)."""
17571757

1758-
version = "CherryPy/3.2.4"
1758+
version = "CherryPy/3.2.5"
17591759
"""A version string for the HTTPServer."""
17601760

17611761
software = None

cherrypy/wsgiserver/wsgiserver3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ class HTTPServer(object):
14661466
timeout = 10
14671467
"""The timeout in seconds for accepted connections (default 10)."""
14681468

1469-
version = "CherryPy/3.2.4"
1469+
version = "CherryPy/3.2.5"
14701470
"""A version string for the HTTPServer."""
14711471

14721472
software = None

release.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import shutil
1616
import importlib
1717

18-
VERSION = '3.2.4'
18+
VERSION = '3.2.5'
1919

2020
if sys.version_info < (3,):
2121
input = raw_input
@@ -75,7 +75,9 @@ def bump_versions():
7575

7676
def bump_version(filename):
7777
with open(filename, 'rb') as f:
78-
lines = [line.replace(VERSION, NEXT_VERSION) for line in f]
78+
b_version = VERSION.encode('ascii')
79+
b_next_version = NEXT_VERSION.encode('ascii')
80+
lines = [line.replace(b_version, b_next_version) for line in f]
7981
with open(filename, 'wb') as f:
8082
f.writelines(lines)
8183

@@ -86,35 +88,29 @@ def tag_release():
8688
"""
8789
subprocess.check_call(['hg', 'tag', NEXT_VERSION])
8890

89-
dist_commands = [
90-
[sys.executable, 'setup.py', 'sdist', '--format=zip'],
91-
[sys.executable, 'setup.py', 'sdist', '--format=gztar'],
92-
[sys.executable, 'setup.py', 'bdist_wininst'],
93-
[sys.executable, 'setup.py', 'bdist_wheel'],
94-
]
91+
dist_commands = ['sdist', 'bdist_wininst', 'bdist_wheel']
9592

9693

9794
def build():
9895
if os.path.isfile('MANIFEST'):
9996
os.remove('MANIFEST')
10097
if os.path.isdir('dist'):
10198
shutil.rmtree('dist')
102-
list(map(subprocess.check_call, dist_commands))
99+
subprocess.check_call([sys.executable, 'setup.py'] + dist_commands)
103100

104101

105102
def push():
106103
"The build went well, so let's push the SCM changesets"
107-
subprocess.check_call(['hg', 'push'])
104+
subprocess.check_call(['hg', 'push', '-r', '.'])
108105

109106

110107
def publish():
111108
"""
112109
Publish the dists on PyPI
113110
"""
114111
try:
115-
upload_dist_commands = [cmd + ['register', 'upload']
116-
for cmd in dist_commands]
117-
list(map(subprocess.check_call, upload_dist_commands))
112+
upload_dist_command = [sys.executable, 'setup.py'] + dist_commands + ['register', 'upload']
113+
subprocess.check_call(upload_dist_command)
118114
except:
119115
print("Unable to upload the dist files. Ask in IRC for help access 57"
120116
"or assistance.")

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[sdist]
2-
formats=gztar
2+
formats=gztar,zip
33

44
[nosetests]
55
where=cherrypy

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def build_module(self, module, module_file, package):
3636
# arguments for the setup command
3737
###############################################################################
3838
name = "CherryPy"
39-
version = "3.2.4"
39+
version = "3.2.5"
4040
desc = "Object-Oriented HTTP framework"
4141
long_desc = "CherryPy is a pythonic, object-oriented HTTP framework"
4242
classifiers = [

0 commit comments

Comments
 (0)