Skip to content

Commit

Permalink
- prepare release 2.7.0 with Python 3.11 support and test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Dec 16, 2022
1 parent 7a90586 commit 9bb3f62
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu
- ["ubuntu", "ubuntu-20.04"]
config:
# [Python version, tox env]
- ["3.9", "lint"]
Expand All @@ -28,19 +28,21 @@ jobs:
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.9", "docs"]
- ["3.9", "coverage"]

runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os[1] }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ lib64
log/
parts/
pyvenv.cfg
testing.log
var/
3 changes: 2 additions & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
[meta]
template = "zope-product"
commit-id = "efb3f62f0f2d8deea657bae8db49a191698e62ef"
commit-id = "d6240444ec6c9e203f2fd9f62c3e6038f9189e96"

[python]
with-pypy = false
Expand All @@ -11,6 +11,7 @@ with-docs = true
with-sphinx-doctests = false
with-windows = false
with-future-python = false
with-macos = false

[coverage]
fail-under = 76
Expand Down
14 changes: 3 additions & 11 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
Products.DCWorkflow Changelog
=============================

2.6.1 (unreleased)
2.7.0 (2022-12-16)
------------------

Breaking changes:
- Fix insidious buildout configuration bug for tests against Zope 4.

- *add item here*

New features:

- *add item here*

Bug fixes:

- *add item here*
- Add support for Python 3.11.


2.6.0 (2022-07-12)
Expand Down
2 changes: 2 additions & 0 deletions buildout4.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ extends =
buildout.cfg
http://zopefoundation.github.io/Zope/releases/4.x/versions.cfg

[versions]
Products.DCWorkflow =
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _package_doc(name):
DESC = 'DCWorkflow product for the Zope Content Management Framework'

setup(name='Products.%s' % NAME,
version='2.6.1.dev0',
version='2.7.0',
description=DESC,
long_description=README,
classifiers=[
Expand All @@ -34,6 +34,7 @@ def _package_doc(name):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ envlist =
py38
py39
py310
py311
docs
coverage

[testenv]
skip_install = true
deps =
zc.buildout >= 3.0.0rc3
zc.buildout >= 3.0.1
wheel > 0.37
commands_pre =
py27,py35: {envbindir}/buildout -nc {toxinidir}/buildout4.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
!py27-!py35: {envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
commands =
{envbindir}/test {posargs:-cv}
{envdir}/bin/test {posargs:-cv}

[testenv:lint]
basepython = python3
Expand Down Expand Up @@ -75,7 +76,7 @@ deps =
coverage-python-version
commands =
mkdir -p {toxinidir}/parts/htmlcov
coverage run {envbindir}/test {posargs:-cv}
coverage run {envdir}/bin/test {posargs:-cv}
coverage html
coverage report -m --fail-under=76

Expand Down

0 comments on commit 9bb3f62

Please sign in to comment.