Date: Monday, October 24, 2022 @ 08:55:00
  Author: alucryd
Revision: 1334523

python-poetry -> python-poetry-core

Added:
  python-django-q/trunk/python-django-q-pep517.patch
Modified:
  python-django-q/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   25 ++++++++++++++++++-------
 python-django-q-pep517.patch |   14 ++++++++++++++
 2 files changed, 32 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-24 08:40:29 UTC (rev 1334522)
+++ PKGBUILD    2022-10-24 08:55:00 UTC (rev 1334523)
@@ -2,7 +2,7 @@
 
 pkgname=python-django-q
 pkgver=1.3.9
-pkgrel=4
+pkgrel=5
 pkgdesc='A multiprocessing distributed task queue for Django'
 arch=(any)
 url=https://github.com/Koed00/django-q
@@ -17,6 +17,7 @@
   python-future
   python-pytz
   python-redis
+  python-setuptools
   python-six
   python-sqlparse
   python-wcwidth
@@ -23,8 +24,9 @@
 )
 makedepends=(
   git
-  python-pip
-  python-poetry
+  python-build
+  python-installer
+  python-poetry-core
 )
 optdepends=(
   'python-boto3: Amazon Simple Queue Service message queue support'
@@ -32,9 +34,18 @@
   'python-pymongo: MongoDB as a message broker support'
 )
 _tag=4a8ef8f388b842b916f2ac713383192eec87b8d8
-source=(git+https://github.com/Koed00/django-q.git#tag=${_tag})
-sha256sums=(SKIP)
+source=(
+  git+https://github.com/Koed00/django-q.git#tag=${_tag}
+  python-django-q-pep517.patch
+)
+b2sums=('SKIP'
+        
'2b95ad47f38f1217d21ad11b5f23a602660880b1d6bcb09716bf8b201987153a360cfabf94d7d3028caa46c9a494bc0716d8d69cf576fe78a5890c9508f88ef5')
 
+prepare() {
+  cd django-q
+  patch -Np1 -i ../python-django-q-pep517.patch
+}
+
 pkgver() {
   cd django-q
   git describe --tags | sed 's/^v//'
@@ -42,11 +53,11 @@
 
 build() {
   cd django-q
-  poetry build --format wheel
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" 
--ignore-installed --no-deps django-q/dist/*.whl
+  python -m installer --destdir="${pkgdir}" django-q/dist/*.whl
   install -Dm 644 django-q/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-django-q/
 }
 

Added: python-django-q-pep517.patch
===================================================================
--- python-django-q-pep517.patch                                (rev 0)
+++ python-django-q-pep517.patch        2022-10-24 08:55:00 UTC (rev 1334523)
@@ -0,0 +1,14 @@
+diff '--color=auto' -rupN django-q.orig/pyproject.toml django-q/pyproject.toml
+--- django-q.orig/pyproject.toml       2022-10-24 10:50:42.274924167 +0200
++++ django-q/pyproject.toml    2022-10-24 10:51:01.686713418 +0200
+@@ -76,4 +76,8 @@ sentry = ["django-q-sentry"]
+ 
+ [tool.isort]
+ profile = "black"
+-multi_line_output = 3
+\ No newline at end of file
++multi_line_output = 3
++
++[build-system]
++requires = ["poetry-core"]
++build-backend = "poetry.core.masonry.api"

Reply via email to