Package Details: python-validictory 1.1.2-2

Git Clone URL: https://aur.archlinux.org/python-validictory.git (read-only, click to copy)
Package Base: python-validictory
Description: general purpose python data validator
Upstream URL: http://github.com/jamesturk/validictory
Licenses: BSD
Submitter: delusional
Maintainer: wertercatt
Last Packager: wertercatt
Votes: 1
Popularity: 0.000000
First Submitted: 2018-01-30 17:09 (UTC)
Last Updated: 2023-03-18 18:54 (UTC)

Latest Comments

dreieck commented on 2024-04-28 10:51 (UTC)

Please move away from calling setup.py directly and instead use python -m build and python -m installer (together with the appropriate makedepends), as documented in the Arch Linux wiki for python packages:

==> Starting package()...
running install
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running install_lib

Regards and thanks for maintaining!

dreieck commented on 2023-11-21 10:44 (UTC)

AUR Metadata still wrong.

Please update .SRCINFO and re-upload.

dreieck commented on 2023-03-24 19:17 (UTC)

Something is wrong with the metadata of this package:

  • Here in the AUR, $pkgrel is 2,
  • in the PKGBUILD, $pkgrel is 3.

Maybe you forgot to update .SRCINFO?

Please fix!,
thanks for maintaining,
regards.

SolarAquarion commented on 2022-10-16 17:22 (UTC)

@dreick I'll Fix this when I'm home

dreieck commented on 2022-10-16 17:08 (UTC) (edited on 2023-03-24 19:20 (UTC) by dreieck)

Fails to build for me -- fix below:

==> Starting build()...
Traceback (most recent call last):
  File "/home/[...]/.cache/yay/python-validictory/src/validictory-1.1.2/setup.py", line 5, in <module>
    from validictory import __version__
  File "/home/[...]/.cache/yay/python-validictory/src/validictory-1.1.2/validictory/__init__.py", line 3, in <module>
    from validictory.validator import (SchemaValidator, FieldValidationError, MultipleValidationError,
  File "/home/[...]/.cache/yay/python-validictory/src/validictory-1.1.2/validictory/validator.py", line 7, in <module>
    from collections import Mapping, Container
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
==> ERROR: A failure occurred in build().

Fix:
To build, → this patch needs to be applied.

→ Here is a patch to the current PKGBUILD that fixes the issue:

--- PKGBUILD.org    2022-10-16 18:57:39.239960579 +0200
+++ PKGBUILD    2022-10-16 19:05:12.109946413 +0200
@@ -4,3 +4,3 @@
 pkgver='1.1.2'
-pkgrel=2
+pkgrel=3
 pkgdesc="general purpose python data validator"
@@ -11,4 +11,15 @@
 arch=('any')
-source=("https://files.pythonhosted.org/packages/source/v/validictory/validictory-${pkgver}.tar.gz")
-sha256sums=('3a87b84658592f75f37d6bab77ac223774c9989dc7349c8aad19a424770835ba')
+source=(
+  "https://files.pythonhosted.org/packages/source/v/validictory/validictory-${pkgver}.tar.gz"
+  'support-new-python-collections-module.patch::https://gist.github.com/dreirund/f36737536cb434e5ac450a5f0dc8f034/raw/df4c7ae700363eaaf4abce3d7a41e66eb092565f/support-new-python-collections-module.patch'
+)
+sha256sums=(
+  '3a87b84658592f75f37d6bab77ac223774c9989dc7349c8aad19a424770835ba'
+  '921ebf8c35431dd8ff3e9ee2893ac1a4ee86b8f682ed63e6c6571a7c9abdad3f'
+)
+
+prepare() {
+  cd "${srcdir}/${_module}-${pkgver}"
+  patch -N -p1 --follow-symlinks -i "${srcdir}/support-new-python-collections-module.patch"
+}

and → here the complete PKGBUILD with the fix:

# Maintainer: Solomon Choina <shlomochoina@gmail.com>
pkgname='python-validictory'
_module='validictory'
pkgver='1.1.2'
pkgrel=3
pkgdesc="general purpose python data validator"
url="http://github.com/jamesturk/validictory"
depends=('python')
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
source=(
  "https://files.pythonhosted.org/packages/source/v/validictory/validictory-${pkgver}.tar.gz"
  'support-new-python-collections-module.patch::https://gist.github.com/dreirund/f36737536cb434e5ac450a5f0dc8f034/raw/df4c7ae700363eaaf4abce3d7a41e66eb092565f/support-new-python-collections-module.patch'
)
sha256sums=(
  '3a87b84658592f75f37d6bab77ac223774c9989dc7349c8aad19a424770835ba'
  '921ebf8c35431dd8ff3e9ee2893ac1a4ee86b8f682ed63e6c6571a7c9abdad3f'
)

prepare() {
  cd "${srcdir}/${_module}-${pkgver}"
  patch -N -p1 --follow-symlinks -i "${srcdir}/support-new-python-collections-module.patch"
}

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}

Please maintain.

Thanks for maintaining!

drew33 commented on 2022-05-15 17:12 (UTC)

Hi, with the update to python 3.10, the following patch is required to install the package successfully:

diff --git a/PKGBUILD b/PKGBUILD
index 115681a..1599a62 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ sha256sums=('3a87b84658592f75f37d6bab77ac223774c9989dc7349c8aad19a424770835ba')

 build() {
     cd "${srcdir}/${_module}-${pkgver}"
+    find ./ -type f -iname '*.py' -exec sed -i "s/from collections import Mapping/from collections.abc import Mapping/g" {} \;
     python setup.py build
 }

ZeroDot1 commented on 2019-11-26 03:42 (UTC)

Please remove the brackets in your PKGBUILD

pkgbase=('python-validictory') pkgname=('python-validictory')

should be

pkgbase='python-validictory' pkgname='python-validictory'

i2mo commented on 2019-11-25 23:51 (UTC)

Please remove the brackets in your PKGBUILD

pkgbase=('python-validictory') pkgname=('python-validictory')

should be

pkgbase='python-validictory' pkgname='python-validictory'

SolarAquarion commented on 2019-11-10 23:48 (UTC)

==> ERROR: pkgbase should not be an array