[arch-commits] Commit in ansible-lint/repos/community-staging-any (4 files)

Frederik Schwan freswa at gemini.archlinux.org
Tue Dec 7 21:42:59 UTC 2021


    Date: Tuesday, December 7, 2021 @ 21:42:59
  Author: freswa
Revision: 1065572

archrelease: copy trunk to community-staging-any

Added:
  ansible-lint/repos/community-staging-any/PKGBUILD
    (from rev 1065571, ansible-lint/trunk/PKGBUILD)
  ansible-lint/repos/community-staging-any/disable_use_scm_version.patch
    (from rev 1065571, ansible-lint/trunk/disable_use_scm_version.patch)
Deleted:
  ansible-lint/repos/community-staging-any/PKGBUILD
  ansible-lint/repos/community-staging-any/disable_use_scm_version.patch

-------------------------------+
 PKGBUILD                      |   77 ++++++++++++++++++++--------------------
 disable_use_scm_version.patch |   56 ++++++++++++-----------------
 2 files changed, 64 insertions(+), 69 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-07 21:42:45 UTC (rev 1065571)
+++ PKGBUILD	2021-12-07 21:42:59 UTC (rev 1065572)
@@ -1,38 +0,0 @@
-# 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=5.2.1
-pkgrel=3
-pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved."
-arch=('any')
-url="https://github.com/ansible/ansible-lint"
-license=('MIT')
-depends=('python' 'ansible-core' 'python-ruamel-yaml' 'python-pyaml' 'python-rich' 'python-packaging'
-          'python-wcmatch' 'python-enrich' 'python-tenacity')
-checkdepends=('python-pytest')
-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=('52788dc9f4b2fe62cf02d8341bc6786644d369a31ddd4c4143dc275db10610d676c8b3fca5c790a4a7471bcfc2e45850ce03f6433ab3810e4a9aa5daeb5f162a'
-        'a090862e657bfc29c89b23b2ecc8c585e15f098310b997e39600b6bdf0cd433e1045e2da348ce27dc2d3c0f9ef01950cf0ec5e7b071bc43d85161faabd8a1f60')
-
-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 setup.py build
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: ansible-lint/repos/community-staging-any/PKGBUILD (from rev 1065571, ansible-lint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-07 21:42:59 UTC (rev 1065572)
@@ -0,0 +1,39 @@
+# 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=5.3.1
+pkgrel=1
+pkgdesc="Checks playbooks for practices and behaviour that could potentially be improved."
+arch=('any')
+url="https://github.com/ansible/ansible-lint"
+license=('MIT')
+depends=('python' 'ansible-core' 'python-ruamel-yaml' 'python-pyaml' 'python-rich' 'python-packaging'
+          'python-wcmatch' 'python-enrich' 'python-tenacity')
+makedepends=('python-build' 'python-install' '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=('c297f1bdc4bfcf57cd16a77ee6576fb60b471ee72a280fad45573a7237b650df107321359230a0791e951c9027abcde17951166a7b81306fde34f650dd5f5dcb'
+        '41a9f052e1a8cca7f720da3dd4ba7ccbbd7d0046bdb7008c58172ba388f798a4bca5faea15df3e9dc0f022b8c91354ff64595850dfeea47a40cfe2182beec072')
+
+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 install --optimize=1 --destdir="${pkgdir}" dist/*.whl
+  chmod +x "${pkgdir}"/usr/bin/*
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}

Deleted: disable_use_scm_version.patch
===================================================================
--- disable_use_scm_version.patch	2021-12-07 21:42:45 UTC (rev 1065571)
+++ disable_use_scm_version.patch	2021-12-07 21:42:59 UTC (rev 1065572)
@@ -1,31 +0,0 @@
-diff -aur origsrc/ansible-lint-5.0.0/setup.cfg src/ansible-lint-5.0.0/setup.cfg
---- aaa/setup.cfg	2021-02-09 19:19:11.689518714 +0100
-+++ bbb/setup.cfg	2021-02-09 19:19:30.538804812 +0100
-@@ -54,18 +54,12 @@
-   lint
- 
- [options]
--use_scm_version = True
- python_requires = >=3.6
- package_dir =
-   = src
- packages = find:
- zip_safe = False
- 
--# These are required during `setup.py` run:
--setup_requires =
--  setuptools_scm>=1.15.0
--  setuptools_scm_git_archive>=1.0
--
- # These are required in actual runtime:
- install_requires =
-   # ansible-lint does not list ansible as direct dependency in order to
-diff -aur origsrc/ansible-lint-5.0.0/setup.py src/ansible-lint-5.0.0/setup.py
---- aaa/setup.py	2021-02-09 19:19:11.689518714 +0100
-+++ bbb/setup.py	2021-02-09 19:19:42.271693765 +0100
-@@ -9,5 +9,4 @@
- # https://github.com/jazzband/pip-tools/issues/1278
- setuptools.setup(
-     use_scm_version={"local_scheme": "no-local-version"},
--    setup_requires=["setuptools_scm[toml]>=3.5.0"],
- )

Copied: ansible-lint/repos/community-staging-any/disable_use_scm_version.patch (from rev 1065571, ansible-lint/trunk/disable_use_scm_version.patch)
===================================================================
--- disable_use_scm_version.patch	                        (rev 0)
+++ disable_use_scm_version.patch	2021-12-07 21:42:59 UTC (rev 1065572)
@@ -0,0 +1,25 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 0292abc..08c78d6 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 135404d..9ccd41b 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -56,7 +56,6 @@ keywords =
+   lint
+ 
+ [options]
+-use_scm_version = True
+ python_requires = >=3.6
+ package_dir =
+   = src



More information about the arch-commits mailing list