[arch-commits] Commit in ansible-lint/repos (3 files)
Frederik Schwan
freswa at gemini.archlinux.org
Tue Mar 15 11:23:54 UTC 2022
Date: Tuesday, March 15, 2022 @ 11:23:54
Author: freswa
Revision: 1154260
archrelease: copy trunk to community-testing-any
Added:
ansible-lint/repos/community-testing-any/
ansible-lint/repos/community-testing-any/PKGBUILD
(from rev 1154259, ansible-lint/trunk/PKGBUILD)
ansible-lint/repos/community-testing-any/disable_use_scm_version.patch
(from rev 1154259, ansible-lint/trunk/disable_use_scm_version.patch)
-------------------------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
disable_use_scm_version.patch | 25 +++++++++++++++++++++++++
2 files changed, 62 insertions(+)
Copied: ansible-lint/repos/community-testing-any/PKGBUILD (from rev 1154259, ansible-lint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-03-15 11:23:54 UTC (rev 1154260)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Sander Boom <sanderboom at gmail.com>
+
+pkgname=ansible-lint
+pkgver=6.0.0
+pkgrel=1
+pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved."
+arch=('any')
+url="https://github.com/ansible/ansible-lint"
+license=('GPL3')
+depends=('python' 'ansible-core' 'python-ruamel-yaml' 'python-pyaml' 'python-rich' 'python-packaging'
+ 'python-wcmatch' 'python-enrich' 'python-tenacity')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+optdepends=('yamllint: check for yaml syntax mistakes'
+ 'ansible: check official ansible collections')
+source=(https://github.com/ansible/ansible-lint/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+ disable_use_scm_version.patch)
+b2sums=('2568f5c9c2c0b9382d55d231e8323cb740e0bc6f041a2e3635652ca848a51cf4bfb2d3fab3eab3c641d26d1619c9d856f9bec1ffd495c0f72be47a73f0bcfcd8'
+ 'cf911567b040c8938ca589fde3c93b39cfba29ca1a373b8af354450a4f880d475463b0c81440fb9bfacc7b1f93736a5ae5ab58c7fdb30d8f03d1996754a738f3')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ # stop setuptools from using the scm version which doesn't exist in this context
+ patch -Np1 < "${srcdir}"/disable_use_scm_version.patch
+ sed -i "/^\[metadata\]/a version = ${pkgver}" setup.cfg
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+}
Copied: ansible-lint/repos/community-testing-any/disable_use_scm_version.patch (from rev 1154259, ansible-lint/trunk/disable_use_scm_version.patch)
===================================================================
--- community-testing-any/disable_use_scm_version.patch (rev 0)
+++ community-testing-any/disable_use_scm_version.patch 2022-03-15 11:23:54 UTC (rev 1154260)
@@ -0,0 +1,25 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 89592b8..abffa79 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,8 +1,6 @@
+ [build-system]
+ requires = [
+ "setuptools >= 42.0.0", # required by pyproject+setuptools_scm integration
+- "setuptools_scm[toml] >= 3.5.0", # required for "no-local-version" scheme
+- "setuptools_scm_git_archive >= 1.0",
+ "wheel",
+ ]
+ build-backend = "setuptools.build_meta"
+diff --git a/setup.cfg b/setup.cfg
+index 5301b4f..5aa5d1e 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -54,7 +54,6 @@ keywords =
+ lint
+
+ [options]
+-use_scm_version = True
+ python_requires = >=3.8
+ package_dir =
+ = src
More information about the arch-commits
mailing list