Skip to content

Commit

Permalink
Add Python 3.8, drop 3.4
Browse files Browse the repository at this point in the history
Restore MINIMAL=1 test builds on Travis, disabled by accident due to
YAML having the same key (matrix) defined twice at top level.
  • Loading branch information
mgedmin committed Nov 12, 2019
1 parent fba4ae4 commit 99da809
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 23 deletions.
36 changes: 16 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,37 @@
language: python
sudo: false
matrix:
include:
- python: 2.7
env: MINIMAL=1

python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
- pypy
- pypy3

matrix:
jobs:
include:
- python: "3.7"
dist: xenial
sudo: true
- name: "Python: 2.7, minimal set of dependencies"
python: 2.7
env: MINIMAL=1

install:
- pip install -U pip setuptools
- pip install -U coveralls coverage
- if [[ -n "$MINIMAL" ]]; then pip install -U -e ".[mintests]"; fi
- if [[ -z "$MINIMAL" ]]; then pip install -U -e ".[test,docs]"; fi

script:
- coverage run -m zope.testrunner --test-path=src
- if [[ -z "$MINIMAL" ]]; then sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html; fi
- if [[ -z "$MINIMAL" ]]; then coverage run -a `which sphinx-build` -b doctest -d docs/_build/doctrees docs docs/_build/doctest; fi
- if [[ -z "$MINIMAL" ]]; then sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html; fi
- if [[ -z "$MINIMAL" ]]; then coverage run -a -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctest; fi

after_success:
- coveralls

notifications:
email: false

install:
- pip install -U pip setuptools
- pip install -U coveralls coverage
- if [[ -n "$MINIMAL" ]]; then pip install -U -e ".[mintests]"; fi
- if [[ -z "$MINIMAL" ]]; then pip install -U -e ".[test,docs]"; fi


cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
35 changes: 34 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Changes
4.6 (unreleased)
----------------

- Nothing changed yet.
- Add support for Python 3.8.

- Drop support for Python 3.4.


4.5 (2018-10-10)
Expand All @@ -19,6 +21,7 @@ Changes
- Make accessing names that have been moved to ``zope.interface``
produce a ``DeprecationWarning``.


4.4.1 (2017-09-26)
------------------

Expand All @@ -42,6 +45,7 @@ Changes
- Internal test code in ``zope.component.testfiles`` has been adjusted
and in some cases removed.


4.3.0 (2016-08-26)
------------------

Expand All @@ -52,16 +56,19 @@ Changes

- Add support for Python 3.5.


4.2.2 (2015-06-04)
------------------

- Fix test cases for PyPy and PyPy3.


4.2.1 (2014-03-19)
------------------

- Add support for Python 3.4.


4.2.0 (2014-02-05)
------------------

Expand All @@ -73,6 +80,7 @@ Changes
- Implement ability to specify adapter and utility names in Python. Use
the ``@zope.component.named(name)`` decorator to specify the name.


4.1.0 (2013-02-28)
------------------

Expand All @@ -84,16 +92,19 @@ Changes

- Fix new failing tests.


4.0.2 (2012-12-31)
------------------

- Flesh out PyPI Trove classifiers.


4.0.1 (2012-11-21)
------------------

- Add support for Python 3.3.


4.0.0 (2012-07-02)
------------------

Expand Down Expand Up @@ -121,17 +132,20 @@ Changes
- Add ``setup.py dev`` alias (runs ``setup.py develop`` plus installs
``nose`` and ``coverage``).


3.12.1 (2012-04-02)
-------------------

- Wrap ``with site(foo)`` in try/finally (LP768151).


3.12.0 (2011-11-16)
-------------------

- Add convenience function zope.component.hooks.site (a contextmanager),
so one can write ``with site(foo): ...``.


3.11.0 (2011-09-22)
-------------------

Expand All @@ -156,6 +170,7 @@ Changes

- Depend on ``zope.interface`` >= 3.8.0.


3.10.0 (2010-09-25)
-------------------

Expand All @@ -168,16 +183,19 @@ Changes

- Add a basic test for the ``configure.zcml`` file provided.


3.9.5 (2010-07-09)
------------------

- Fix test requirements specification.


3.9.4 (2010-04-30)
------------------

- Prefer the standard library ``doctest`` to the one from ``zope.testing``.


3.9.3 (2010-03-08)
------------------

Expand All @@ -187,26 +205,30 @@ Changes
method before the load of a ZCML file to register the components in a
custom registry.


3.9.2 (2010-01-22)
------------------

- Fix a bug introduced by recent refactoring, where passing
``CheckerPublic`` to ``securityAdapterFactory`` wrongly wrapped the factory
into a ``LocatingUntrustedAdapterFactory``.


3.9.1 (2010-01-21)
------------------

- Modify the tests to avoid allowing the tested testrunner to be influenced
by options of the outer testrunner, such a the ``-v`` option.


3.9.0 (2010-01-21)
------------------

- Add testlayer support. It is now possible to load a ZCML file within
tests more easily. See ``src/zope/component/testlayer.py`` and
``src/zope/component/testlayer.txt``.


3.8.0 (2009-11-16)
------------------

Expand All @@ -222,6 +244,7 @@ Changes
- Move the ``zope.site.hooks`` functionality to ``zope.component.hooks`` as it
isn't actually dealing with ``zope.site``'s concept of a site.


3.7.1 (2009-07-24)
------------------

Expand All @@ -243,6 +266,7 @@ Changes
negative consequence of this is that the utility is held in memory
or in the database even though it isn't used.


3.7.0 (2009-05-21)
------------------

Expand All @@ -251,6 +275,7 @@ Changes
- Add ``zope:view`` and ``zope:resource`` implementations into
``zope.component.zcml`` (dependency loaded with ``zope.component [zcml]``).


3.6.0 (2009-03-12)
------------------

Expand Down Expand Up @@ -287,13 +312,15 @@ Changes
- Change package's mailing list address to zope-dev at zope.org, because
zope3-dev at zope.org is now retired.


3.5.1 (2008-07-25)
------------------

- Fix bug introduced in 3.5.0: ``<utility factory="...">`` no longer supported
interfaces declared in Python and always wanted an explicit
``provides="..."`` attribute. https://bugs.launchpad.net/zope3/+bug/251865


3.5.0 (2008-07-25)
------------------

Expand All @@ -305,11 +332,13 @@ Changes
efficient retrieval of already registered utilities. This avoids looping over
all utilities when registering a new one.


3.4.0 (2007-09-29)
------------------

No further changes since 3.4.0a1.


3.4.0a1 (2007-04-22)
--------------------

Expand All @@ -319,16 +348,19 @@ Corresponds to ``zope.component`` from Zope 3.4.0a1.
more. See http://wiki.zope.org/zope3/LocalComponentManagementSimplification
for the proposal describing the changes.


3.2.0.2 (2006-04-15)
--------------------

- Fix packaging bug: ``package_dir`` must be a *relative* path.


3.2.0.1 (2006-04-14)
--------------------

- Packaging change: suppress inclusion of ``setup.cfg`` in ``sdist`` builds.


3.2.0 (2006-01-05)
------------------

Expand All @@ -348,6 +380,7 @@ of the Zope 3.2.0 release.
via a thread global, set during URL traversal. The ``context`` argument
is now always optional, and should no longer be passed.


3.0.0 (2004-11-07)
------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def read(*rnames):
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"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",
"Framework :: Zope :: 3",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
# Jython support pending 2.7 support, due 2012-07-15 or so. See:
# http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html
py27,py27-minimal,pypy,py34,py35,py36,py37,pypy3,docs,coverage
py27,py35,py36,py37,py38,py27-minimal,pypy,pypy3,docs,coverage

[mindeps]
deps =
Expand Down

0 comments on commit 99da809

Please sign in to comment.