Skip to content

Commit

Permalink
Drop support for Python 2 and 3.4; add support for 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 20, 2020
1 parent 96bf981 commit 236c3c5
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 235 deletions.
3 changes: 0 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ source =
ComputedAttribute
ExtensionClass
MethodObject
omit =
tests/*.py
bootstrap.py

[report]
precision = 2
11 changes: 3 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- 3.7
- 3.8
- pypy3
matrix:
include:
- python: "2.7"
env: PURE_PYTHON=1
- python: "3.7"
dist: xenial
sudo: true
env: PURE_PYTHON=1
install:
- pip install -U pip setuptools
- pip install -U coverage coveralls
Expand Down
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Changelog
=========

4.5 (unreleased)
5.0 (unreleased)
----------------

- Nothing changed yet.
- Drop support for Python 2.7 and 3.4.

- Add support for Python 3.8.


4.4 (2018-10-05)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ExtensionClass

This package provides a metaclass that allows classes implemented in
extension modules to be subclassed in Python. Unless you need
ExtensionClasses for legacy applications (e.g. Zope 2), you probably
ExtensionClasses for legacy applications (e.g. Zope), you probably
want to use Python's new-style classes (available since Python 2.2).

ComputedAttribute
Expand Down
6 changes: 2 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ environment:
secure: y/k8TP312tLRATkXU5dq+g==

matrix:
- python: 27
- python: 27-x64
- python: 34
- python: 34-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
189 changes: 0 additions & 189 deletions bootstrap.py

This file was deleted.

7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@
ignore = C901,N801,N802,N803,N805,N806,N812,E301
exclude = bootstrap.py

[nosetests]
nocapture=1
cover-package=ComputedAttribute,ExtensionClass,MethodObject
cover-erase=1
with-doctest=1
where=src

[coverage:report]
show_missing = True
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
include_dirs=['src']),
]

version = '4.5.dev0'
version = '5.0.dev0'

setup(
name='ExtensionClass',
Expand All @@ -65,19 +65,19 @@
"License :: OSI Approved :: Zope Public License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: PyPy",
],
ext_modules=ext_modules,
include_package_data=True,
zip_safe=False,
python_requires='>=3.5, <4',
extras_require={
'test': [
'zope.testrunner',
Expand Down
26 changes: 9 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
[tox]
envlist =
py27,py27-pure,py34,py34-pure,py35,py35-pure,py36,py36-pure,py37,py37-pure, pypy,pypy3,coverage
py35,py35-pure,py36,py36-pure,py37,py37-pure,py38,py38-pure,pypy3,coverage

[testenv]
install_command = pip install {opts} {packages}
commands =
zope-testrunner --test-path=src
deps =
.[test]

[testenv:py27-pure]
basepython =
python2.7
setenv =
PURE_PYTHON = 1

[testenv:py34-pure]
basepython =
python3.4
setenv =
PURE_PYTHON = 1
extras = test

[testenv:py35-pure]
basepython =
Expand All @@ -39,15 +26,20 @@ basepython =
setenv =
PURE_PYTHON = 1

[testenv:py38-pure]
basepython =
python3.8
setenv =
PURE_PYTHON = 1

[testenv:coverage]
usedevelop = true
basepython =
python3.6
python3.7
commands =
coverage run -m zope.testrunner --test-path=src
coverage report --fail-under=100
deps =
{[testenv]deps}
coverage
setenv =
PURE_PYTHON = 1

0 comments on commit 236c3c5

Please sign in to comment.