Skip to content

Commit

Permalink
Merge branch 'master' into fix-385
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 23, 2018
2 parents 6fb4e74 + 8ee7163 commit 38a2557
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ https://github.com/zopefoundation/Zope/blob/4.0a6/CHANGES.rst
Bugfixes
++++++++

- Fix `bin/mkwsgiinstance` on Python 3 when Zope was installed via ``pip``.

- Fix a bug with scopes in scripts with zconsole, which made it impossible to
reach global imports in the script within a function.

Expand All @@ -22,6 +24,10 @@ Bugfixes

- Fix zodbupdate conversion of ``OFS.Image.Pdata`` objects.

- Install the `ipaddress` package only on Python 2.7 as it is part of the
stdlib in Python 3.
(`#368 <https://github.com/zopefoundation/Zope/issues/368>`_)

Other changes
+++++++++++++

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def _read_file(filename):
'RestrictedPython',
'ZConfig >= 2.9.2',
'ZODB',
'ipaddress',
'setuptools',
'ipaddress ; python_version=="2.7"',
'setuptools >= 36.2',
'six',
'transaction',
'waitress',
Expand Down
1 change: 1 addition & 0 deletions src/Zope2/utilities/mkwsgiinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def get_zope2path(python):
try:
output = subprocess.check_output(
[python, '-c', 'import Zope2; print(Zope2.__file__)'],
universal_newlines=True, # makes Python 3 return text, not bytes
stderr=subprocess.PIPE)
zope2file = output.strip()
except subprocess.CalledProcessError:
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ skip_install = true
deps =
-cconstraints.txt
coverage
zc.buildout
setuptools>=36.2
zc.buildout>=2.12
setenv =
COVERAGE_FILE=.coverage.{envname}

Expand Down

0 comments on commit 38a2557

Please sign in to comment.