Date: Saturday, December 24, 2022 @ 16:18:18
  Author: freswa
Revision: 1365396

use python-setuptools-scm instead of custom patch to include static files with 
PEP 517 build frontend automagically

Modified:
  ansible-lint/trunk/PKGBUILD
Deleted:
  ansible-lint/trunk/static_files.patch

--------------------+
 PKGBUILD           |    6 ++----
 static_files.patch |   13 -------------
 2 files changed, 2 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-24 15:49:52 UTC (rev 1365395)
+++ PKGBUILD    2022-12-24 16:18:18 UTC (rev 1365396)
@@ -4,7 +4,7 @@
 
 pkgname=ansible-lint
 pkgver=6.10.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Checks playbooks for practices and behaviour that could potentially 
be improved."
 arch=('any')
 url="https://github.com/ansible/ansible-lint";
@@ -11,7 +11,7 @@
 license=('GPL3')
 depends=(python ansible-core yamllint 
   
python-{ansible-compat,black,enrich,filelock,jsonschema,pyaml,packaging,rich,ruamel-yaml,wcmatch})
-makedepends=(git python-{build,installer,setuptools,wheel})
+makedepends=(git python-{build,installer,setuptools,setuptools-scm,wheel})
 optdepends=('ansible: check official ansible collections')
 source=(git+https://github.com/ansible/ansible-lint.git#tag=v${pkgver}
         disable_version_check.patch
@@ -24,8 +24,6 @@
   cd ${pkgname}
   # stop ansible-lint from calling home every 24h to check for a new version
   patch -Np1 < "${srcdir}"/disable_version_check.patch
-  # fix migration to PEP-621
-  patch -Np1 < "${srcdir}"/static_files.patch
   # use pkg version
   sed -i "s/dynamic = \[\"version\"\]/version = \"${pkgver}\"/" pyproject.toml
 }

Deleted: static_files.patch
===================================================================
--- static_files.patch  2022-12-24 15:49:52 UTC (rev 1365395)
+++ static_files.patch  2022-12-24 16:18:18 UTC (rev 1365396)
@@ -1,13 +0,0 @@
-diff -aur aaa/pyproject.toml bbb/pyproject.toml
---- aaa/pyproject.toml 2022-12-14 21:51:47.000000000 +0100
-+++ bbb/pyproject.toml 2022-12-24 14:19:41.960029538 +0100
-@@ -248,3 +248,9 @@
- [tool.setuptools_scm]
- local_scheme = "no-local-version"
- write_to = "src/ansiblelint/_version.py"
-+
-+[tool.setuptools.packages.find]
-+where = ["src"]
-+
-+[tool.setuptools.package-data]
-+"*" = ["py.typed", "**/*.json", "**/*.yml", "**/*.yaml", "**/*.md"]

Reply via email to