pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-test-django



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Sep  6 20:17:50 UTC 2023

Modified Files:
        pkgsrc/www/py-test-django: Makefile PLIST distinfo

Log Message:
py-test-django: updated to 4.5.2

v4.5.2 (2021-12-07)
-------------------

Bugfixes

* Fix regression in v4.5.0 - ``pytest.mark.django_db(reset_sequence=True)`` now
  implies ``transaction=True`` again.

v4.5.1 (2021-12-02)
-------------------

Bugfixes

* Fix regression in v4.5.0 - database tests inside (non-unittest) classes were
  not ordered correctly to run before non-database tests, same for transactional
  tests before non-transactional tests.

v4.5.0 (2021-12-01)
-------------------

Improvements

* Add support for :ref:`rollback emulation/serialized rollback
  <test-case-serialized-rollback>`. The :func:`pytest.mark.django_db` marker
  has a new ``serialized_rollback`` option, and a
  :fixture:`django_db_serialized_rollback` fixture is added.

* Official Python 3.10 support.

* Official Django 4.0 support (tested against 4.0rc1 at the time of release).

* Drop official Django 3.0 support. Django 2.2 is still supported, and 3.0
  will likely keep working until 2.2 is dropped, but it's not tested.

* Added pyproject.toml file.

* Skip Django's `setUpTestData` mechanism in pytest-django tests. It is not
  used for those, and interferes with some planned features. Note that this
  does not affect ``setUpTestData`` in unittest tests (test classes which
  inherit from Django's `TestCase`).

Bugfixes

* Fix :fixture:`live_server` when using an in-memory SQLite database.

* Fix typing of ``assertTemplateUsed`` and ``assertTemplateNotUsed``.

v4.4.0 (2021-06-06)
-------------------

Improvements

* Add a fixture :fixture:`django_capture_on_commit_callbacks` to capture
  :func:`transaction.on_commit() <django.db.transaction.on_commit>` callbacks
  in tests.

v4.3.0 (2021-05-15)
-------------------

Improvements

* Add experimental :ref:`multiple databases <multi-db>` (multi db) support.

* Add type annotations. If you previously excluded ``pytest_django`` from
  your type-checker, you can remove the exclusion.

* Documentation improvements.

v4.2.0 (2021-04-10)
-------------------

Improvements

* Official Django 3.2 support.

* Documentation improvements.

Bugfixes

* Disable atomic durability check on non-transactional tests

v4.1.0 (2020-10-22)
-------------------

Improvements

* Add the :fixture:`async_client` and :fixture:`async_rf` fixtures

* Add :ref:`django_debug_mode <usage>` to configure how ``DEBUG`` is set in tests

* Documentation improvements.

Bugfixes

* Make :fixture:`admin_user` work for custom user models without an ``email`` field.

v4.0.0 (2020-10-16)
-------------------

Compatibility

This release contains no breaking changes, except dropping compatibility
with some older/unsupported versions.

* Drop support for Python versions before 3.5

  Previously 2.7 and 3.4 were supported. Running ``pip install pytest-django``
  on Python 2.7 or 3.4 would continue to install the compatible 3.x series.

* Drop support for Django versions before 2.2

  Previously Django>=1.8 was supported.

* Drop support for pytest versions before 5.4

  Previously pytest>=3.6 was supported.

Improvements

* Officially support Python 3.9.

* Add ``pytest_django.__version__``

* Minor documentation improvements

Bugfixes

* Make the ``admin_user`` and ``admin_client`` fixtures compatible with custom
  user models which don't have a ``username`` field

* Change the ``admin_user`` fixture to use ``get_by_natural_key()`` to get the
  user instead of directly using ``USERNAME_FIELD``, in case it is overridden,
  and to match Django

Misc

* Fix pytest-django's own tests failing due to some deprecation warnings


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/www/py-test-django/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-test-django/PLIST
cvs rdiff -u -r1.22 -r1.23 pkgsrc/www/py-test-django/distinfo

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

Modified files:

Index: pkgsrc/www/py-test-django/Makefile
diff -u pkgsrc/www/py-test-django/Makefile:1.23 pkgsrc/www/py-test-django/Makefile:1.24
--- pkgsrc/www/py-test-django/Makefile:1.23     Wed Mar 29 09:34:15 2023
+++ pkgsrc/www/py-test-django/Makefile  Wed Sep  6 20:17:50 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2023/03/29 09:34:15 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2023/09/06 20:17:50 adam Exp $
 
-DISTNAME=      pytest-django-3.10.0
+DISTNAME=      pytest-django-4.5.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//}
-PKGREVISION=   1
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-django/}
 
@@ -11,17 +10,12 @@ HOMEPAGE=   https://pytest-django.readthed
 COMMENT=       Django plugin for pytest
 LICENSE=       modified-bsd
 
-.include "../../lang/python/pyversion.mk"
-
-.if ${PYTHON_VERSION} == 207
-DEPENDS+=      ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2
-.endif
-
-PYTHON_VERSIONED_DEPENDENCIES= test
-PYTHON_VERSIONED_DEPENDENCIES= setuptools_scm:build
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=5.0.0:../../devel/py-setuptools_scm
+DEPENDS+=      ${PYPKGPREFIX}-test>=5.4.0:../../devel/py-test
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-test-django/PLIST
diff -u pkgsrc/www/py-test-django/PLIST:1.4 pkgsrc/www/py-test-django/PLIST:1.5
--- pkgsrc/www/py-test-django/PLIST:1.4 Tue Jan 14 16:05:04 2020
+++ pkgsrc/www/py-test-django/PLIST     Wed Sep  6 20:17:50 2023
@@ -1,19 +1,20 @@
-@comment $NetBSD: PLIST,v 1.4 2020/01/14 16:05:04 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2023/09/06 20:17:50 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/pytest_django/__init__.py
 ${PYSITELIB}/pytest_django/__init__.pyc
 ${PYSITELIB}/pytest_django/__init__.pyo
+${PYSITELIB}/pytest_django/_version.py
+${PYSITELIB}/pytest_django/_version.pyc
+${PYSITELIB}/pytest_django/_version.pyo
 ${PYSITELIB}/pytest_django/asserts.py
 ${PYSITELIB}/pytest_django/asserts.pyc
 ${PYSITELIB}/pytest_django/asserts.pyo
-${PYSITELIB}/pytest_django/compat.py
-${PYSITELIB}/pytest_django/compat.pyc
-${PYSITELIB}/pytest_django/compat.pyo
 ${PYSITELIB}/pytest_django/django_compat.py
 ${PYSITELIB}/pytest_django/django_compat.pyc
 ${PYSITELIB}/pytest_django/django_compat.pyo
@@ -26,9 +27,7 @@ ${PYSITELIB}/pytest_django/lazy_django.p
 ${PYSITELIB}/pytest_django/live_server_helper.py
 ${PYSITELIB}/pytest_django/live_server_helper.pyc
 ${PYSITELIB}/pytest_django/live_server_helper.pyo
-${PYSITELIB}/pytest_django/migrations.py
-${PYSITELIB}/pytest_django/migrations.pyc
-${PYSITELIB}/pytest_django/migrations.pyo
 ${PYSITELIB}/pytest_django/plugin.py
 ${PYSITELIB}/pytest_django/plugin.pyc
 ${PYSITELIB}/pytest_django/plugin.pyo
+${PYSITELIB}/pytest_django/py.typed

Index: pkgsrc/www/py-test-django/distinfo
diff -u pkgsrc/www/py-test-django/distinfo:1.22 pkgsrc/www/py-test-django/distinfo:1.23
--- pkgsrc/www/py-test-django/distinfo:1.22     Tue Oct 26 11:30:49 2021
+++ pkgsrc/www/py-test-django/distinfo  Wed Sep  6 20:17:50 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2021/10/26 11:30:49 nia Exp $
+$NetBSD: distinfo,v 1.23 2023/09/06 20:17:50 adam Exp $
 
-BLAKE2s (pytest-django-3.10.0.tar.gz) = e345ea1260059c05a2e4f06c3c62d467aa70ee7e4f7a4b3abc22630b49fe25d2
-SHA512 (pytest-django-3.10.0.tar.gz) = 62386a1577ea879968c16255ca7bf2e4fe742569a794d5bf7f0be92141dd6d1ee2fcff27930d5357f1f7d62e5d835784653c04a74315028c1ed69a599cebdf7c
-Size (pytest-django-3.10.0.tar.gz) = 73732 bytes
+BLAKE2s (pytest-django-4.5.2.tar.gz) = 1ecbed8448311e1553b6293c9dc5eef33197079a61f0b4e148906ba3cd445b39
+SHA512 (pytest-django-4.5.2.tar.gz) = bde0ee6f1c728ff2b6f965150fbbcb25c8ef5a24732256d2d688ee95c243ca2dd0f9606fac559b2c204dd2835ff5362a934cd176fabc7479b21a1e55fe284f4d
+Size (pytest-django-4.5.2.tar.gz) = 79949 bytes



Home | Main Index | Thread Index | Old Index