in my tox file based on plone/meta i have a section for release check
[testenv:release-check]
description = ensure that the distribution is ready to release
skip_install = true
deps =
twine
build
towncrier
-c https://dist.plone.org/release/6.1-dev/constraints.txt
commands =
# fake version to not have to install the package
# we build the change log as news entries might break
# the README that is displayed on PyPI
towncrier build --version=100.0.0 --yes
python -m build --sdist
twine check dist/*
if i run
tox -e release-check
it ends with an error:
from zope.i18nmessageid import MessageFactory
ModuleNotFoundError: No module named 'zope'
ERROR: InvocationError for command /opt/Development/collective/collective_tinymce_accordion_filter/.tox/release-check/bin/towncrier build --version=100.0.0 --yes (exited with code 1)
I see that the https://dist.plone.org/release/6.1-dev/constraints.txt includes -c https://zopefoundation.github.io/Zope/releases/5.9/constraints.txt
. This file contains the missing package zope.i18nmessageid
.
Does anybody know, why the constraints.txt from zopefoundation.github.io is not evaluated?
Update
My current workaround is add the package zope.i18nmessageid
to the deps
in the release-check section.
deps =
twine
build
towncrier
zope.i18nmessageid
-c https://dist.plone.org/release/6.1-dev/constraints.txt