Package Details: python-tinydb 4.8.0-2

Git Clone URL: https://aur.archlinux.org/python-tinydb.git (read-only, click to copy)
Package Base: python-tinydb
Description: TinyDB is a tiny, document oriented database optimized for your happiness :)
Upstream URL: https://github.com/msiemens/tinydb
Licenses: MIT
Submitter: atweiden
Maintainer: Dylan14
Last Packager: Dylan14
Votes: 14
Popularity: 0.000000
First Submitted: 2016-01-25 04:57 (UTC)
Last Updated: 2024-08-25 15:54 (UTC)

Latest Comments

k2s commented on 2023-08-27 16:24 (UTC)

please add python-poetry package to build dependencies

alan1world commented on 2023-02-06 11:18 (UTC)

Python packages which include the tests in a base test folder will conflict if the test folder is installed (in this instance - python-flask-qrcode).

I've modified the PKGBUILD and created a patch file to exclude the test folder from installation.

PKBUILD changes:

source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz"
        "tinydb-4.7.1.patch")
sha256sums=('8955c239a79b8a6c8f637900152e2de38690848199d71d870c33c16405433ca5'
            '9e071e2cb88c728624158043b8514bccb0af13327ab118e9e639692828ba8e97')

prepare() {
  cd "${srcdir}/${_module}-${pkgver}"
  patch --forward --strip=1 --input="${srcdir}/tinydb-4.7.1.patch"
}

Patch:

diff --unified --recursive --text tinydb-4.7.1.orig/pyproject.toml tinydb-4.7.1.new/pyproject.toml
--- tinydb-4.7.1.orig/pyproject.toml    2023-01-14 16:22:55.217798000 +0000
+++ tinydb-4.7.1.new/pyproject.toml 2023-02-06 11:11:53.731364223 +0000
@@ -33,8 +33,11 @@
 ]

 packages = [
-    { include = "tinydb" },
-    { include = "tests", format = "sdist" }
+    { include = "tinydb" }
+]
+
+exclude = [
+    "tests"
 ]

 [tool.poetry.urls]
diff --unified --recursive --text tinydb-4.7.1.orig/setup.py tinydb-4.7.1.new/setup.py
--- tinydb-4.7.1.orig/setup.py  1970-01-01 01:00:00.000000000 +0100
+++ tinydb-4.7.1.new/setup.py   2023-02-06 11:10:33.958578715 +0000
@@ -2,7 +2,7 @@
 from setuptools import setup

 packages = \
-['tests', 'tinydb']
+['tinydb']

 package_data = \
 {'': ['*']}