pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test-relaxed



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Jul 18 15:51:28 UTC 2023

Modified Files:
        pkgsrc/devel/py-test-relaxed: Makefile distinfo

Log Message:
py-test-relaxed: updated to 2.0.1

2.0.1
- :bug:`9` Don't try loading Pytest fixture functions as if they were test
  functions. Classifying this as a bug even though it's a moderately sized
  change in behavior; it's vanishingly unlikely anybody was relying on this
  somehow! Thanks to ``@cajopa`` for the report.

2.0.0
- :bug:`- major` Prior to version 2, we failed to correctly support true Pytest
  setup/teardown methods (i.e. ``setup_method`` and ``teardown_method``) and
  these would not get copied to inner class scopes. This has been fixed. We
  still support old nose-style ``setup``/``teardown`` for now, despite them
  going away in Pytest 8.
- :support:`-` Modernize codebase/project a bunch:

  - Dropped support for Python <3.6 (including 2.7)
  - Pytest support upgraded to support, **and require**, Pytest >=7.

    - This plugin never worked on Pytests 5 and 6 anyways, and supporting 5-7
      appears to require a lot more effort than just 7.

  - Behavioral changes in Pytest internals have fixed a handful of sorta-bugs
    present in pytest-relaxed under Pytest versions 3 and 4:

    - The order of nested test display may change slightly, typically for the
      better; eg under older versions, tests defined on a class might have been
      displayed after subclasses/nested tests - now they're more likely to be
      listed first, which was the original intent.
    - These bugs sometimes enabled "state bleed", such as outer scopes
      appearing to grant inner ones attributes set at runtime (eg by the outer
      scope's ``setup``, even when the inner scope redefined ``setup``).

      - If you encounter odd bugs after upgrading, please take a close look at
        your code and make sure you weren't accidentally using such a
        "feature". One good way to test for this is to run the "newly failing"
        tests by themselves on the old dependencies -- they will likely also
        fail there.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-test-relaxed/Makefile \
    pkgsrc/devel/py-test-relaxed/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test-relaxed/Makefile
diff -u pkgsrc/devel/py-test-relaxed/Makefile:1.7 pkgsrc/devel/py-test-relaxed/Makefile:1.8
--- pkgsrc/devel/py-test-relaxed/Makefile:1.7   Tue Jan  4 20:53:42 2022
+++ pkgsrc/devel/py-test-relaxed/Makefile       Tue Jul 18 15:51:27 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2022/01/04 20:53:42 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2023/07/18 15:51:27 adam Exp $
 
-DISTNAME=      pytest-relaxed-1.1.5
+DISTNAME=      pytest-relaxed-2.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-relaxed/}
 
@@ -11,15 +10,15 @@ HOMEPAGE=   https://github.com/bitprophet/
 COMMENT=       Relaxed test discovery/organization for pytest
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-decorator>=4.0.0:../../devel/py-decorator
-DEPENDS+=      ${PYPKGPREFIX}-six>=1.0.0:../../lang/py-six
-
-PYTHON_VERSIONED_DEPENDENCIES= test
+DEPENDS+=      ${PYPKGPREFIX}-decorator-[0-9]*:../../devel/py-decorator
+DEPENDS+=      ${PYPKGPREFIX}-test>=7.0:../../devel/py-test
 
 USE_LANGUAGES= # none
 
-PYSETUPTESTTARGET=     pytest
+# Needs: invocations>=3.3
+#PYSETUPTESTTARGET=    pytest
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-relaxed/distinfo
diff -u pkgsrc/devel/py-test-relaxed/distinfo:1.7 pkgsrc/devel/py-test-relaxed/distinfo:1.8
--- pkgsrc/devel/py-test-relaxed/distinfo:1.7   Tue Oct 26 10:19:09 2021
+++ pkgsrc/devel/py-test-relaxed/distinfo       Tue Jul 18 15:51:27 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:19:09 nia Exp $
+$NetBSD: distinfo,v 1.8 2023/07/18 15:51:27 adam Exp $
 
-BLAKE2s (pytest-relaxed-1.1.5.tar.gz) = 7a2c86ae4d79b109db0e9dd4b4f8e6bee7ff60a93a24dabe4bd9285926233594
-SHA512 (pytest-relaxed-1.1.5.tar.gz) = c4eb981e8969ec9e85c5f390227b5ee2e1c88da6bb331ac4ce7b97b0e0fc435a388f592439281e60d41be9e2858601bee11b527f5c29e496445f7d072e14eaad
-Size (pytest-relaxed-1.1.5.tar.gz) = 26786 bytes
+BLAKE2s (pytest-relaxed-2.0.1.tar.gz) = a1296ebd3d3533037230b03dcaa337c376791dc0ecc216ef1df7249b4c18104a
+SHA512 (pytest-relaxed-2.0.1.tar.gz) = 922040a3b824079b1d6010d9ee46a1288186927268478ef22aaffb3e824965cd08772516296db2b26b69bf7d968c997c49149117616e51b41e66a5d53dcb6b23
+Size (pytest-relaxed-2.0.1.tar.gz) = 26063 bytes



Home | Main Index | Thread Index | Old Index