Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-sqlalchemy-i18n
Commits:
ab270ae8 by Jelle van der Waa at 2025-01-01T19:31:55+01:00
Drop python-six dependency
It is referenced in setup.py but not actually used in code.
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + remove-python-six-leftovers.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-sqlalchemy-i18n
pkgdesc = Internationalization extension for SQLAlchemy models
pkgver = 1.1.0
- pkgrel = 7
+ pkgrel = 8
url = https://github.com/kvesteri/sqlalchemy-i18n
arch = any
license = BSD
@@ -14,9 +14,11 @@ pkgbase = python-sqlalchemy-i18n
depends = python
depends = python-sqlalchemy
depends = python-sqlalchemy-utils
- depends = python-six
source =
https://github.com/kvesteri/sqlalchemy-i18n/archive/1.1.0/python-sqlalchemy-i18n-1.1.0.tar.gz
+ source = remove-python-six-leftovers.patch
sha512sums =
3fd11815366c3e971e0531d684715c4c8998f7f20d69a8b596bd4ca147da6f85ddf4448c99631031ccf60b5f09de6d1daa1e08e94d5c580268e31bf322af97d5
+ sha512sums =
c4a706babae154fece98e9c477e7ffa0a70d04a7a9507a663d74d163c383f236af165d63a41d51b0bc1137e8f3818778c6584d595b6aa51626cd563b1d9a688a
b2sums =
6554d731768d22389a926f6b33ef49844fc7fddb5cb1b844a9150f9c274ea7f3ac905e02ca5bbf9be99d4ace47ef3848336fbe5062d1bddcb2ee8f75507806fd
+ b2sums =
8e6991ad2571ab93b7fb425c4e77acfccf593a0a30a0b06603ec00b4df2fa05f6dae6f9eca304262daff494e9b13d6f646e820ca22b12998be9e9e083922cdbf
pkgname = python-sqlalchemy-i18n
=====================================
PKGBUILD
=====================================
@@ -5,17 +5,27 @@
_name=sqlalchemy-i18n
pkgname=python-sqlalchemy-i18n
pkgver=1.1.0
-pkgrel=7
+pkgrel=8
pkgdesc='Internationalization extension for SQLAlchemy models'
url='https://github.com/kvesteri/sqlalchemy-i18n'
arch=('any')
license=('BSD')
-depends=('python' 'python-sqlalchemy' 'python-sqlalchemy-utils' 'python-six')
+depends=('python' 'python-sqlalchemy' 'python-sqlalchemy-utils')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-psycopg2' 'python-flexmock'
'python-jinja' 'python-docutils')
-source=(https://github.com/kvesteri/sqlalchemy-i18n/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('3fd11815366c3e971e0531d684715c4c8998f7f20d69a8b596bd4ca147da6f85ddf4448c99631031ccf60b5f09de6d1daa1e08e94d5c580268e31bf322af97d5')
-b2sums=('6554d731768d22389a926f6b33ef49844fc7fddb5cb1b844a9150f9c274ea7f3ac905e02ca5bbf9be99d4ace47ef3848336fbe5062d1bddcb2ee8f75507806fd')
+source=(https://github.com/kvesteri/sqlalchemy-i18n/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+ remove-python-six-leftovers.patch)
+sha512sums=('3fd11815366c3e971e0531d684715c4c8998f7f20d69a8b596bd4ca147da6f85ddf4448c99631031ccf60b5f09de6d1daa1e08e94d5c580268e31bf322af97d5'
+
'c4a706babae154fece98e9c477e7ffa0a70d04a7a9507a663d74d163c383f236af165d63a41d51b0bc1137e8f3818778c6584d595b6aa51626cd563b1d9a688a')
+b2sums=('6554d731768d22389a926f6b33ef49844fc7fddb5cb1b844a9150f9c274ea7f3ac905e02ca5bbf9be99d4ace47ef3848336fbe5062d1bddcb2ee8f75507806fd'
+
'8e6991ad2571ab93b7fb425c4e77acfccf593a0a30a0b06603ec00b4df2fa05f6dae6f9eca304262daff494e9b13d6f646e820ca22b12998be9e9e083922cdbf')
+
+prepare() {
+ cd ${_name}-${pkgver}
+ # Upstream is dead, so we patch
+ # https://github.com/kvesteri/sqlalchemy-i18n/pull/35
+ patch -Np1 -i ${srcdir}/remove-python-six-leftovers.patch
+}
build() {
cd ${_name}-${pkgver}
=====================================
remove-python-six-leftovers.patch
=====================================
@@ -0,0 +1,34 @@
+From 95660717256a9403a4bde3aa8a0490d8437583fc Mon Sep 17 00:00:00 2001
+From: Alexandre Detiste <[email protected]>
+Date: Tue, 7 Nov 2023 12:39:29 +0100
+Subject: [PATCH] remove SIX crumbs
+
+---
+ setup.py | 1 -
+ tox.ini | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 9971cc0..0096661 100644
+--- a/setup.py
++++ b/setup.py
+@@ -52,7 +52,6 @@ def get_version():
+ install_requires=[
+ 'SQLAlchemy>=1.3',
+ 'SQLAlchemy-Utils>=0.37.3',
+- 'six>=1.4.1'
+ ],
+ python_requires='>=3.6',
+ extras_require=extras_require,
+diff --git a/tox.ini b/tox.ini
+index d05f47a..9a87836 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -5,7 +5,6 @@ envlist = py36, py37, py38, pypy3
+ deps =
+ pytest
+ psycopg2
+- six
+ SQLAlchemy>=0.9
+ SQLAlchemy-Utils>=0.25.3
+ commands = py.test --pdb
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-sqlalchemy-i18n/-/commit/ab270ae8f7238f8c24060b44a277f03d6d0deeaf
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-sqlalchemy-i18n/-/commit/ab270ae8f7238f8c24060b44a277f03d6d0deeaf
You're receiving this email because of your account on gitlab.archlinux.org.