Marcel Telka
2024-01-04 40eba590770397387b9da30b81748d3e53f474a6
python/ddt: update to 1.7.1

2 files deleted
7 files modified
79 ■■■■ changed files
components/python/ddt/Makefile 6 ●●●● patch | view | raw | blame | history
components/python/ddt/ddt-PYVER.p5m 1 ●●●● patch | view | raw | blame | history
components/python/ddt/manifests/sample-manifest.p5m 3 ●●●● patch | view | raw | blame | history
components/python/ddt/patches/01-tox.ini.patch 31 ●●●●● patch | view | raw | blame | history
components/python/ddt/patches/02-no-aiounittest.patch 8 ●●●● patch | view | raw | blame | history
components/python/ddt/patches/03-no-flake8-plugins.patch 4 ●●●● patch | view | raw | blame | history
components/python/ddt/patches/04-flake8-silence.patch 13 ●●●●● patch | view | raw | blame | history
components/python/ddt/python-integrate-project.conf 7 ●●●● patch | view | raw | blame | history
components/python/ddt/test/results-all.master 6 ●●●● patch | view | raw | blame | history
components/python/ddt/Makefile
@@ -19,13 +19,13 @@
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME =        ddt
HUMAN_VERSION =            1.7.0
HUMAN_VERSION =            1.7.1
COMPONENT_SUMMARY =        ddt - Data-Driven/Decorated Tests
COMPONENT_PROJECT_URL =        https://github.com/datadriventests/ddt
COMPONENT_ARCHIVE_URL =        \
    https://files.pythonhosted.org/packages/29/2d/35e6b14795a950e788143add11c4fcc98a7e118e5bb384c1ea288f9eec8b/ddt-1.7.0.tar.gz
    https://github.com/datadriventests/ddt/archive/refs/tags/$(HUMAN_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH =    \
    sha256:d178d115abf25a1b8327e94f85a03ef09b1d7b0ca256f6203284b024f2fc70df
    sha256:1ef6cadab02f5760d5cb4ea2c1d54a87780a9971639d2186c59798fc68a17728
COMPONENT_LICENSE =        MIT
COMPONENT_LICENSE_FILE =    LICENSE.md
components/python/ddt/ddt-PYVER.p5m
@@ -26,7 +26,6 @@
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/PKG-INFO
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/SOURCES.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/dependency_links.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/requires.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt.py
components/python/ddt/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
@@ -26,7 +26,6 @@
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/PKG-INFO
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/SOURCES.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/dependency_links.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/requires.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt-$(HUMAN_VERSION)-py$(PYVER).egg-info/top_level.txt
file path=usr/lib/python$(PYVER)/vendor-packages/ddt.py
components/python/ddt/patches/01-tox.ini.patch
File was deleted
components/python/ddt/patches/02-no-aiounittest.patch
@@ -1,8 +1,8 @@
This reverts the following commit:
https://github.com/datadriventests/ddt/pull/112/commits/2d0f8a76dd27924830ebf3b708324924fb384c06
--- ddt-1.7.0/test/test_async.py.orig
+++ ddt-1.7.0/test/test_async.py
--- ddt-1.7.1/test/test_async.py.orig
+++ ddt-1.7.1/test/test_async.py
@@ -1,11 +1,11 @@
-import aiounittest
+import unittest
@@ -17,8 +17,8 @@
     @data(3, 4, 12, 23)
     async def test_larger_than_two(self, value):
         self.assertTrue(larger_than_two(value))
--- ddt-1.7.0/tox.ini.orig
+++ ddt-1.7.0/tox.ini
--- ddt-1.7.1/tox.ini.orig
+++ ddt-1.7.1/tox.ini
@@ -6,7 +6,6 @@
     pytest
     pytest-cov
components/python/ddt/patches/03-no-flake8-plugins.patch
@@ -1,7 +1,7 @@
ddt does not expect flake8-2020, flake8-bugbear and flake8-docstrings plugins.
--- ddt-1.7.0/tox.ini.orig
+++ ddt-1.7.0/tox.ini
--- ddt-1.7.1/tox.ini.orig
+++ ddt-1.7.1/tox.ini
@@ -11,7 +11,7 @@
     PyYAML
 commands = 
components/python/ddt/patches/04-flake8-silence.patch
File was deleted
components/python/ddt/python-integrate-project.conf
@@ -13,7 +13,10 @@
# Copyright 2023 Marcel Telka
#
%patch% 01-tox.ini.patch
%patch% 02-no-aiounittest.patch
%patch% 03-no-flake8-plugins.patch
%patch% 04-flake8-silence.patch
%hook-begin%
# https://github.com/datadriventests/ddt/issues/113
DOWNLOAD_URL='https://github.com/datadriventests/ddt/archive/refs/tags/$(HUMAN_VERSION).tar.gz'
LICENSE_FILE='LICENSE.md'
components/python/ddt/test/results-all.master
@@ -119,13 +119,13 @@
test/test_named_data.py::TestNamedData::test_single_named_value_1_Single PASSED
=============================== warnings summary ===============================
ddt.py:71
  $(@D)/ddt.py:71: PytestCollectionWarning: cannot collect test class 'TestNameFormat' because it has a __new__ constructor (from: test/test_functional.py)
ddt.py:67
  $(@D)/ddt.py:67: PytestCollectionWarning: cannot collect test class 'TestNameFormat' because it has a __new__ constructor (from: test/test_functional.py)
    @unique
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======== 111 passed, 1 warning ========
py$(PYV): commands[1]> flake8 --extend-ignore=B,D,YTT,E501,E231,W293,W391 ddt.py test
py$(PYV): commands[1]> flake8 --extend-ignore=B,D,YTT ddt.py test
  py$(PYV): OK
  congratulations :)