- Update to 3.3.0:
* Add mypy type-checking variant of the recently added import test,
in packaging.release.test_install. This helps prove packages
exposing py.typed in their source tree are including it in their
distributions correctly.
- 3.2.0:
* Minor enhancements to the checks module:
- blacken now has a format alias (and will likely reverse the
real name and the alias in 4.0)
- Added lint task which currently just runs flake8, will likely
learn how to be configurable later.
- Added all_ default task for the collection, which runs both
blacken (in regular, not diff-only mode - idea is to be useful
for devs, not CI, which already does both independently) and
lint in series.
- 3.1.0:
* Updated packaging.release.test_install to attempt imports of
freshly test-installed packages, to catch import-time errors on
top of install-time ones. This can be opted out of by giving the
skip_import kwarg (aka the --skip-import flag on the CLI).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=36
20 lines
470 B
Diff
20 lines
470 B
Diff
Index: invocations-3.3.0/tests/conftest.py
|
|
===================================================================
|
|
--- invocations-3.3.0.orig/tests/conftest.py
|
|
+++ invocations-3.3.0/tests/conftest.py
|
|
@@ -5,9 +5,11 @@ from pytest import fixture
|
|
from invoke import MockContext
|
|
|
|
# Set up icecream globally for convenience.
|
|
-from icecream import install
|
|
-
|
|
-install()
|
|
+try:
|
|
+ from icecream import install
|
|
+ install()
|
|
+except ModuleNotFoundError:
|
|
+ pass
|
|
|
|
|
|
@fixture
|