Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
python-zope-security


Commits:
0a5caeb8 by Carl Smedstad at 2024-08-23T13:30:06+02:00
upgpkg: 7.1-1: Upstream release

https://github.com/zopefoundation/zope.security/releases/tag/7.1

PKGBUILD changes:

- Use archive as source instead of Git repository - no need for it.
- Add missing dependencies glibc and python.
- Add optdepends python-zope-configuration for ZCML (Zope Configuration Markup
  Language) support.
- Invoke zope-testrunner executable instead of Python module.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-zope-security
        pkgdesc = Zope Security Framework
-       pkgver = 6.2
-       pkgrel = 3
+       pkgver = 7.1
+       pkgrel = 1
        url = https://github.com/zopefoundation/zope.security
        arch = x86_64
        license = ZPL-2.1
@@ -9,18 +9,20 @@ pkgbase = python-zope-security
        checkdepends = python-zope-configuration
        checkdepends = python-zope-testing
        checkdepends = python-zope-testrunner
-       makedepends = git
        makedepends = python-build
        makedepends = python-installer
+       makedepends = python-setuptools
        makedepends = python-wheel
-       depends = python-setuptools
+       depends = glibc
+       depends = python
        depends = python-zope-component
        depends = python-zope-i18nmessageid
        depends = python-zope-interface
        depends = python-zope-location
        depends = python-zope-proxy
        depends = python-zope-schema
-       source = git+https://github.com/zopefoundation/zope.security.git#tag=6.2
-       sha512sums = 
fa2aaeb9738018ca694d9bbfb0276a0eae90a7095908b13322d0a84706ef52fc98eec7208a66b322bb29f12013b40673138857f8f8df0ccd3e3370a8abde969b
+       optdepends = python-zope-configuration: for ZCML support
+       source = 
python-zope-security-7.1.tar.gz::https://github.com/zopefoundation/zope.security/archive/7.1.tar.gz
+       sha512sums = 
606f4f092947e7ac5d941d351f356760c7d0c8d60765569728994fe005ad55ec13fba8da41566058ff1969bff1fc813cfa75c8579fc2ca8194d50eb4acc5e6b7
 
 pkgname = python-zope-security


=====================================
PKGBUILD
=====================================
@@ -1,33 +1,54 @@
 # Maintainer: Felix Yan <[email protected]>
+# Maintainer: Carl Smedstad <[email protected]>
 
 pkgname=python-zope-security
-pkgver=6.2
-pkgrel=3
+_pkgname=zope.security
+pkgver=7.1
+pkgrel=1
 pkgdesc="Zope Security Framework"
 arch=('x86_64')
 url="https://github.com/zopefoundation/zope.security";
 license=('ZPL-2.1')
-depends=('python-setuptools' 'python-zope-component' 
'python-zope-i18nmessageid'
-         'python-zope-interface' 'python-zope-location' 'python-zope-proxy' 
'python-zope-schema')
-makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
-checkdepends=('python-btrees' 'python-zope-configuration' 'python-zope-testing'
-              'python-zope-testrunner')
-source=("git+https://github.com/zopefoundation/zope.security.git#tag=$pkgver";)
-sha512sums=('fa2aaeb9738018ca694d9bbfb0276a0eae90a7095908b13322d0a84706ef52fc98eec7208a66b322bb29f12013b40673138857f8f8df0ccd3e3370a8abde969b')
+depends=(
+  'glibc'
+  'python'
+  'python-zope-component'
+  'python-zope-i18nmessageid'
+  'python-zope-interface'
+  'python-zope-location'
+  'python-zope-proxy'
+  'python-zope-schema'
+)
+makedepends=(
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+checkdepends=(
+  'python-btrees'
+  'python-zope-configuration'
+  'python-zope-testing'
+  'python-zope-testrunner'
+)
+optdepends=('python-zope-configuration: for ZCML support')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('606f4f092947e7ac5d941d351f356760c7d0c8d60765569728994fe005ad55ec13fba8da41566058ff1969bff1fc813cfa75c8579fc2ca8194d50eb4acc5e6b7')
 
 build() {
-  cd zope.security
+  cd $_pkgname-$pkgver
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd zope.security
+  cd $_pkgname-$pkgver
   local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" python -m 
zope.testrunner --test-path=src
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" \
+    zope-testrunner --test-path=src
 }
 
 package() {
-  cd zope.security
+  cd $_pkgname-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-security/-/commit/0a5caeb80a32ad08d70f9ce9d0953dcf03cf4337

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-zope-security/-/commit/0a5caeb80a32ad08d70f9ce9d0953dcf03cf4337
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to