Skip to content

Commit

Permalink
Add support for Python 3.9. (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 7, 2020
1 parent be7cd47 commit 43ade92
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: python
matrix:
include:
- name: "lint"
python: "3.6"
python: "3.8"
env: TOXENV=lint
- python: "2.7"
env: TOXENV=py27
Expand All @@ -17,9 +17,6 @@ matrix:
env: TOXENV=py38
- python: "3.9-dev"
env: TOXENV=py39
allow_failures:
- python: "3.9-dev"
env: TOXENV=py39

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 @@ -6,6 +6,8 @@ For changes before version 3.0, see ``HISTORY.rst``.
5.0 (unreleased)
----------------

- Add support for Python 3.9.

- Remove deprecated classes and functions in
(see `#32 <https://github.com/zopefoundation/AccessControl/issues/32>`_):

Expand All @@ -21,6 +23,9 @@ For changes before version 3.0, see ``HISTORY.rst``.
+ ``AccessControl/Role.py``
+ ``AccessControl/User.py``

- Although this version might run on Zope 4, it is no longer supported because
of the dropped deprecation warnings.


4.2 (2020-04-20)
----------------
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ environment:
matrix:
- python: 27
- python: 27-x64
- python: 35
- python: 35-x64
- python: 36
- python: 36-x64
- python: 37
- python: 37-x64
- python: 38
- python: 38-x64

install:
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
'Development Status :: 6 - Mature',
'Environment :: Web Environment',
'Framework :: Zope',
'Framework :: Zope :: 4',
'Framework :: Zope :: 5',
'License :: OSI Approved :: Zope Public License',
'Operating System :: OS Independent',
'Programming Language :: Python',
Expand All @@ -66,6 +66,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
],
ext_modules=ext_modules,
Expand All @@ -74,9 +75,9 @@
'AuthEncoding',
'BTrees',
'DateTime', # optional dependency of RestrictedPython
'ExtensionClass>=4.2.1',
'Persistence>=3.0a3',
'RestrictedPython >= 4.0a1',
'ExtensionClass >= 4.2.1',
'Persistence >= 3.0a3',
'RestrictedPython >= 5.1',
'six',
'transaction',
'zExceptions',
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ envlist =
py36,
py37,
py38,
py39,
lint,
coverage,

Expand All @@ -23,7 +24,7 @@ setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
basepython = python3.7
basepython = python3
commands =
coverage erase
coverage combine
Expand All @@ -36,7 +37,7 @@ setenv =
COVERAGE_FILE=.coverage

[testenv:lint]
basepython = python3.6
basepython = python3
commands_pre =
mkdir -p {toxinidir}/parts/lint
commands =
Expand Down

0 comments on commit 43ade92

Please sign in to comment.