Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / 
python-django-modeltranslation


Commits:
65469e55 by Maxime Gauduin at 2023-12-27T11:16:47+01:00
drop setup.py

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,12 +1,15 @@
 pkgbase = python-django-modeltranslation
        pkgdesc = Translates Django models using a registration approach
        pkgver = 0.18.12
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/deschler/django-modeltranslation
        arch = any
        license = BSD
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python-django
        source = 
git+https://github.com/deschler/django-modeltranslation.git#tag=32956264dad1a0817e055ad1cd36cd7b54578f74
        sha256sums = SKIP


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-django-modeltranslation
 pkgver=0.18.12
-pkgrel=1
+pkgrel=2
 pkgdesc='Translates Django models using a registration approach'
 arch=(any)
 url=https://github.com/deschler/django-modeltranslation
@@ -10,7 +10,10 @@ license=(BSD)
 depends=(python-django)
 makedepends=(
   git
+  python-build
+  python-installer
   python-setuptools
+  python-wheel
 )
 _tag=32956264dad1a0817e055ad1cd36cd7b54578f74
 
source=(git+https://github.com/deschler/django-modeltranslation.git#tag=${_tag})
@@ -18,21 +21,17 @@ sha256sums=(SKIP)
 
 pkgver() {
   cd django-modeltranslation
-
   git describe --tags | sed 's/^v//'
 }
 
 build() {
   cd django-modeltranslation
-
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  cd django-modeltranslation
-
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 LICENSE.txt -t 
"${pkgdir}"/usr/share/licenses/python-django-modeltranslation/
+  python -m installer --destdir="${pkgdir}" django-modeltranslation/dist/*.whl
+  install -Dm 644 django-modeltranslation/LICENSE.txt -t 
"${pkgdir}"/usr/share/licenses/python-django-modeltranslation/
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-django-modeltranslation/-/commit/65469e55a94ec7753da207fb5b03d5285876f0dc

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-django-modeltranslation/-/commit/65469e55a94ec7753da207fb5b03d5285876f0dc
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to