head	1.8;
access;
symbols
	pkgsrc-2026Q2:1.8.0.4
	pkgsrc-2026Q2-base:1.8
	pkgsrc-2026Q1:1.8.0.2
	pkgsrc-2026Q1-base:1.8
	pkgsrc-2025Q4:1.6.0.2
	pkgsrc-2025Q4-base:1.6
	pkgsrc-2025Q3:1.4.0.2
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.2.0.2
	pkgsrc-2025Q2-base:1.2;
locks; strict;
comment	@# @;


1.8
date	2026.02.17.14.45.00;	author adam;	state Exp;
branches;
next	1.7;
commitid	7IUZhSL35Ab3VJuG;

1.7
date	2025.12.26.09.44.24;	author adam;	state Exp;
branches;
next	1.6;
commitid	OwXVL2ZRalozXTnG;

1.6
date	2025.11.17.08.13.20;	author adam;	state Exp;
branches;
next	1.5;
commitid	B93PtdBU0prVHSiG;

1.5
date	2025.10.09.08.01.59;	author wiz;	state Exp;
branches;
next	1.4;
commitid	v4gBetJhBehVTRdG;

1.4
date	2025.08.07.04.59.11;	author adam;	state Exp;
branches;
next	1.3;
commitid	PTjqrPXHaO2KUK5G;

1.3
date	2025.07.10.15.58.06;	author adam;	state Exp;
branches;
next	1.2;
commitid	qB7SzByaENVzsd2G;

1.2
date	2025.04.29.08.53.01;	author adam;	state Exp;
branches;
next	1.1;
commitid	0bNDFOkvK5iaqVSF;

1.1
date	2025.04.22.15.13.37;	author adam;	state Exp;
branches;
next	;
commitid	6h5xjrQ2OfzKK3SF;


desc
@@


1.8
log
@py-django-stubs-ext: updated to 5.2.9

5.2.9

fix: allow EmailMultiAlternatives in outbox
Fix infinite semantic analysis loop when using from_queryset
Fix dispatch_uid type: str -> _AnyHashable
Update get_auto_imports() to also allow returning None
Make LoginView generic over its form class
fix: template type in template response
fix: Annotate SessionStore with a type var for the Session type
fix: prefetch_related_objects requires Sequence not Iterable
Fix kwargs for forms.widgets.Script
fix: django.contrib.gis.utils.LayerMapping attribute types
Make all system checks return a list, not a Sequence
Improve database-related check signatures
@
text
@# $NetBSD: Makefile,v 1.7 2025/12/26 09:44:24 adam Exp $

DISTNAME=	django_stubs_ext-5.2.9
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-stubs-ext/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/typeddjango/django-stubs
COMMENT=	Monkey-patching and extensions for django-stubs
LICENSE=	mit

TOOL_DEPENDS+=	${PYPKGPREFIX}-uv-build>=0.8.22:../../devel/py-uv-build
DEPENDS+=	${PYPKGPREFIX}-django>=5.0:../../www/py-django
DEPENDS+=	${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions

USE_LANGUAGES=	# none

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.7
log
@py-django-stubs-ext: updated to 5.2.8

5.2.8

Run tests against the lowest supported django version
fix: allow django.shortcuts.resolve_url to receive a str-promise
fix: add type declarations for some missing settings
fix: import all forms widgets
Update assertContains and assertNotContains signatures
Update middleware types
Remove str from enum label types when we know for sure the labels are lazy
Switch Dependabot to Renovate
CI: Only run branch tests on Renovate branches where it's needed
fix: in db.models make required_db_vendor str
Run pyrefly over test cases
Mypy 1.19
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2025/11/17 08:13:20 adam Exp $
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.2.8
@


1.6
log
@py-django-stubs-ext: updated to 5.2.7

5.2.7

Fix PK field lookup for Django < 5.2
Version 5.2.7 release


5.2.6

Improvements

Update add_ordering signature too
Support related_query_name in Model._meta.get_fields
django.urls.resolve can also take _StrPromise
Add strict_model_abstract_attrs setting to allow models.Model.objects access
Refactor _replace_type_var that can potentially cause cache problems
Fix union / intersection / difference to support QuerySet using values_list and values
fix: allow to query decimal fields with int
Fix the log_action deprecation notice
BaseForm.add_error: Use covariant types
Allow to annotate existing model field de-selected via prior .values/.values_list calls
Support GenericPrefetch
Also typecheck aget calls
Validation of the fields argument to bulk_update

Housekeeping & CI

Add mypy_primer workflow
Remove magically added django.contrib.contenttypes installed app in tests
Use consistent indentation in pyproject.toml
Version 5.2.6 release

Ruff

Bump ruff to 0.13.0
Add some RET plugin ruff rules
Enable more ruff rules
Fix merge conflict + re-run pre-commit on all files

uv package manager

Update release documentation, workflow and build-and-check job to uv
Switch to uv_build build system & cleanup
Use same uv workspace for django-stubs-ext also
Test updated release workflow - Version 5.2.6a1 release
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2025/10/09 08:01:59 wiz Exp $
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.2.7
@


1.5
log
@*: remove more references to (removed) Python 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2025/08/07 04:59:11 adam Exp $
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.2.2
d13 2
a14 2
TOOL_DEPENDS+=	${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
DEPENDS+=	${PYPKGPREFIX}-django-[0-9]*:../../www/py-django
@


1.4
log
@py-django-stubs-ext: updated to 5.2.2

5.2.2

Fix reveal_type to return its argument
fix stubs of HttpRequest read / readine
restore iterability of ResolverMatch
Add missing instance variable declarations for RawQuerySet
Add join to JSONObject
add stubs for QuerySet._raw_delete
Fix aliasing of choices in a class in choices plugin
Change resolve_callables argument type to Mapping
Update django to 5.2.4
Fix test HttpResponse.context_data
Don't try to patch automatically symbols in django.contrib.auth.forms
Improve .values() types when expressions are used
Update mypy to 1.17.0
Minor Plugin improvements
BasePasswordHasher.safe_summary commonly uses StrOrPromise
Fix FormMixin plugin
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2025/07/10 15:58:06 adam Exp $
a18 2
PYTHON_VERSIONS_INCOMPATIBLE=	39

@


1.3
log
@py-django-stubs-ext: updated to 5.2.1

5.2.1

Fix some <type> is not present at runtime errors
Fix missing at runtime errors (second batch)
Move method defined on BaseManager to Manager to follow runtime behavior
Fix missing at runtime errors (batch 3)
Add stubs for django.template.autoreload
Allow permission methods to take any model instance as obj
correct bound for _UserType
fix referencing .value of a Choices variable
Fixes to choices support in plugin
Use github permalink to blob view, not blame view
add null keyword argument to ManyToManyField init
Run stubtest on 2 latest python versions
Stronger type for settings.AUTH_PASSWORD_VALIDATORS
Fix missing at runtime 3
Enable a few more ruff rules
Update django gis backend
Fix django.http errors
Add mysqlclient deps to reveal mysql module stubtest errors
Update django.core.handlers
Fix a few errors related to the metaclass MediaDefiningClass
Update django to 5.2.1
Add a test for missing generics in stubs
Contribute to class
Restore support for mypy v1.13
Fix a crash on mypy master branch
Update _AsSqlType to allow tuple[str, tuple]
fix typing for get_auto_imports, get_namespace, and run_formatters
fix: django.contrib.staticfiles for 5.2
Fix postgres OrderableAggMixin & BTreeIndex
Switch to pyproject.toml + PEP621
Fix some django52
Use uv to manage dev dependencies
Add tests for ClassVar-annotated Migration fields
Add support for mypy v1.16
Weaken response argument types in django.utils.cache
Add stub for django.db.models.expressions.Expression.identity
change assertFormError form arg type to BaseForm
Updated the "LogEntryManager" class' "log_action" and "log_actions" methods
Fix signature of LogEntryManager.log_actions
Add "django.contrib.auth.management.commands.createsuperuser" annotations
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2025/04/29 08:53:01 adam Exp $
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.2.1
@


1.2
log
@py-django-stubs-ext: updated to 5.2.0

Important changes

We now support Django@@5.2 LTS release!
Partial Django support is moved to 5.0 from 4.2
We now also run all checks in this repo under mypy --strict mode
Minimal mypy version is updated to 1.13

What's Changed

fix format_lazy typing
Update models's fields' _Choices type
fix: Add context_data attribute to _MonkeyPatchedW/ASGIResponse.
Fix id and pk of AnonymousUser
Add docs about "type[Model] does not have objects attribute"
Update db.migrations.operations
Add select_format() methods
Tidy django.conf.urls
Fix Func.function
Add ClassVar annotations on mutable ModelAdmin types for ruff
Add ClassVar annotations on Migration class attributes
Remove insecure password hashers
Update for Model.[a]save() signature change
Update TestCase classes for Django 5.1
Improve admin decorators
Update for template system checks change
Remove ForeignObjectRel.is_hidden()
Correct Field.slice_expression() 'length' argument name.
Update django.urls for Django 5.1
Update django.db.models.options.Options for Django 5.1
Add admin is_collapsible() methods
Update django.template for Django 5.1
Add new system checks from Django 5.1
Add full signatures to CheckConstraint.init overloads
Make Model.[a]save() keyword-only
Add query_params argument to test tools from Django 5.1
fix 2552 by add ModelIterable to _need_generic
Add window frame exclusion from Django 5.1
Improve process_view() methods
Update core.files.storages for Django 5.1
Update contrib.auth for Django 5.1
Complete JSONObject
Fix FieldCacheMixin.cache_name
Use AbstractContextManager instead of @@contextmanager
Add ModelForm.declared_fields
Update test.selenium for Django 5.1
Update database expressions for Django 5.1
fixed typing in contrib.auth.decorators
Update _Choices type for forms
Update some database backend attributes for Django 5.1
Update PostgreSQL backend is_postgresql_* properties for Django 5.1
Remove unused code from the plugin
Add db_table_comment to model meta
Fix BaseModelAdmin.get_inlines() return type
Fix a few typos
Document custom field typing
Improve stubs for flatten and flatten_fieldsets
Improve typing of choices
Run tests in parallel
Make GeneratedField parameter db_persist required
Re-add explicit test cache disabling
Ignore __slotnames__
Update a bunch of stuff for Django 5.1
Add get_refs() to BaseExpression and WhereNode
Update Django 4.2 LTS version to 4.2.20
Allow tuples for some TypedModelMeta fields
Update django.contrib.gis.geoip2 stubs
Update django to 5.2
Fix django.urls.base.reverse after 5.2
Update django.core.validators for Django 5.2
Update django.test.client and django.utils for Django 5.2
Update django.contrib.auth.backends for Django 5.2
Update django.contrib.auth.models for Django 5.2
Allow MutableMapping for Form.Initial
Update django.contrib.admin for Django 5.2
Update django.db.models.sql for Django 5.2
Update django.forms.widgets for Django 5.2
create and re-use TypeAliases and TypeVars for "user" and "any user"
Update django.contrib for Django 5.2
Add stub for get_select2_language from django.contrib.admin.widgets
Update django.core.management.commands for Django 5.2
Restrict setuptools to <79.0.0 for SETUPTOOLS_ENABLE_FEATURES=legacy-editable to work
Add EmailMultiAlternatives.body_contains()
Add HttpResponse.text
Allow tuples for some Options fields
Add __all__
Fix some django 5.2 new missing parameters
[5.2] Improve django.http.request.MediaType
[5.2] Fix new errors in django.http module
[5.2] Fix django.template.library
Update django.core.serializers for Django 5.2
Update contrib.gis for Django 5.1
Update some field attributes for Django 5.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/04/22 15:13:37 adam Exp $
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.2.0
d13 1
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
d19 2
@


1.1
log
@py-django-stubs-ext: added version 5.1.3

This package contains extensions and monkey-patching functions for the
django-stubs package. Certain features of django-stubs (i.e. generic django
classes that don't define the __class_getitem__ method) require runtime
monkey-patching, which can't be done with type stubs. These extensions were
split into a separate package so library consumers don't need mypy as a runtime
dependency.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	django_stubs_ext-5.1.3
@

