From a6a49e7733cd0708a2844692bd288a1f3609c18b Mon Sep 17 00:00:00 2001 From: rick Date: Sun, 1 Jun 2025 15:00:06 +0200 Subject: [PATCH] django-formtools: update 2.5.1, drop 2.1, add doc restrict test upgrade dependency fix pkgcheck scan add a patch to fix setuptools --- dev-python/django-formtools/Manifest | 2 +- ...1.ebuild => django-formtools-2.5.1.ebuild} | 15 +++++--- ...django-formtools-2.5.1-fix-pyproject.patch | 37 +++++++++++++++++++ 3 files changed, 48 insertions(+), 6 deletions(-) rename dev-python/django-formtools/{django-formtools-2.1.ebuild => django-formtools-2.5.1.ebuild} (55%) create mode 100644 dev-python/django-formtools/files/django-formtools-2.5.1-fix-pyproject.patch diff --git a/dev-python/django-formtools/Manifest b/dev-python/django-formtools/Manifest index 181605898..9ccb32c3a 100644 --- a/dev-python/django-formtools/Manifest +++ b/dev-python/django-formtools/Manifest @@ -1 +1 @@ -DIST django-formtools-2.1.tar.gz 70182 BLAKE2B 955278ba70b469b84e4d94983729ac7669c90cc23fcc2806abac92b2e0ef59870f8466879e2e378fe6699a17374769abc1835e331e675b5ad5dc2e90f9f1f5c2 SHA512 b3a89b0e7dfbfd1ae1ec92bb100fb8d332a4bdfb00e2b25a306dea3863b95e18372919823a9bb4945b367011fd31e89be52b08a916b797ecc508809815622b9e +DIST django-formtools-2.5.1.gh.tar.gz 80928 BLAKE2B 4f03016a506ea8a9cb8b1e845fae0b384e3857e275007646477dda97c9cb784ef7bae28339f54b744a61926414721c58ccd60afb70eb06802df55f329860350e SHA512 2b6e4061f2e01b074d8ce92fab3579bf844666e85be36ce6a6522c526a96d695f2939267278af10a167e46e61d6f6301acab832b1d50cdd5ec75ff7c3081966b diff --git a/dev-python/django-formtools/django-formtools-2.1.ebuild b/dev-python/django-formtools/django-formtools-2.5.1.ebuild similarity index 55% rename from dev-python/django-formtools/django-formtools-2.1.ebuild rename to dev-python/django-formtools/django-formtools-2.5.1.ebuild index e18c2ba27..a494744a0 100644 --- a/dev-python/django-formtools/django-formtools-2.1.ebuild +++ b/dev-python/django-formtools/django-formtools-2.5.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -10,12 +10,17 @@ inherit distutils-r1 DESCRIPTION="A set of high-level abstractions for Django forms" HOMEPAGE="https://django-formtools.readthedocs.io/en/latest/ https://django-filter.readthedocs.org" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/jazzband/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +RESTRICT="test" # it's using tox -CDEPEND=">=dev-python/django-1.11[${PYTHON_USEDEP}]" -RDEPEND="${CDEPEND}" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND=">=dev-python/django-3.2[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/${P}-fix-pyproject.patch" +) + +distutils_enable_sphinx docs diff --git a/dev-python/django-formtools/files/django-formtools-2.5.1-fix-pyproject.patch b/dev-python/django-formtools/files/django-formtools-2.5.1-fix-pyproject.patch new file mode 100644 index 000000000..67bb0ec67 --- /dev/null +++ b/dev-python/django-formtools/files/django-formtools-2.5.1-fix-pyproject.patch @@ -0,0 +1,37 @@ +Patch pyproject for tarball and not dynamic version +Fix by rick + +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -2,7 +2,6 @@ + build-backend = "setuptools.build_meta" + requires = [ + "setuptools>=61.2", +- "setuptools_scm", + ] + + [project] +@@ -32,9 +31,7 @@ classifiers = [ + "Programming Language :: Python :: 3.12", + "Topic :: Internet :: WWW/HTTP", + ] +-dynamic = [ +- "version", +-] ++version = "2.5.1" + dependencies = [ + "Django>=3.2", + ] +@@ -53,11 +50,9 @@ license-files = ["LICENSE"] + zip-safe = false + + [tool.setuptools.packages.find] +-exclude = ["tests"] # tests.* ++exclude = ["tests*"] # tests.* + namespaces = false + +-[tool.setuptools_scm] +- + [tool.codespell] + skip = "*.po" +