Skip to content

Commit

Permalink
Add preliminary support for Python 3.8. (#477)
Browse files Browse the repository at this point in the history
* Add preliminary support for Python 3.8. as of 3.8.0a1 is released.
* Fix deprecation warning.
  • Loading branch information
Michael Howitz committed Feb 9, 2019
1 parent e664a8c commit 7c65ca2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ matrix:
env: TOXENV=lint-py27
- python: "3.6"
env: TOXENV=lint-py36
- python: "3.8-dev"
env: TOXENV=py38

install:
- travis_retry pip install -U pip setuptools
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ https://github.com/zopefoundation/Zope/blob/4.0a6/CHANGES.rst
4.0b9 (unreleased)
------------------

Features
++++++++

- Add preliminary support for Python 3.8. as of 3.8.0a1 is released.

Fixes
+++++

Expand Down
1 change: 1 addition & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ parts =
requirements
sources-dir = develop
auto-checkout =
RestrictedPython

[testenv]
PYTHONHASHSEED = random
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def _read_file(filename):
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
Expand Down
6 changes: 3 additions & 3 deletions src/OFS/tests/testObjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ def test_manage_get_sortedObjects_quote_id(self):
om._setObject(hash_id, SimpleItem(hash_id))

result = om.manage_get_sortedObjects('id', 'asc')
self.assertEquals(len(result), 1)
self.assertEquals(result[0]['id'], hash_id)
self.assertEquals(result[0]['quoted_id'], quote(hash_id))
self.assertEqual(len(result), 1)
self.assertEqual(result[0]['id'], hash_id)
self.assertEqual(result[0]['quoted_id'], quote(hash_id))

_marker = object()

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
py35,
py36,
py37,
py38,
lint-py27,
lint-py36
coverage-report
Expand Down
2 changes: 1 addition & 1 deletion versions-prod.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pbr = 5.1.1
Persistence = 3.0b4
persistent = 4.4.3
Products.BTreeFolder2 = 4.1
Products.ZCatalog = 4.2
Products.ZCatalog = 4.3
Products.ZCTextIndex = 4.0.2
pytz = 2018.7
Record = 3.5
Expand Down

0 comments on commit 7c65ca2

Please sign in to comment.