Package Details: python-rtf_tokenize 1.0.0-8

Git Clone URL: https://aur.archlinux.org/python-rtf_tokenize.git (read-only, click to copy)
Package Base: python-rtf_tokenize
Description: Simple RTF tokenizer package for Python
Upstream URL: https://github.com/openstenoproject/rtf_tokenize
Keywords: plover steno stenography
Licenses: GPL2
Submitter: bpierre
Maintainer: AlphaJack
Last Packager: AlphaJack
Votes: 1
Popularity: 0.006839
First Submitted: 2021-10-27 10:20 (UTC)
Last Updated: 2023-02-06 11:04 (UTC)

Latest Comments

eclairevoyant commented on 2023-05-14 23:49 (UTC)

sources should also be renamed fyi, see https://wiki.archlinux.org/title/PKGBUILD#source:

The downloaded source filename must be unique because the SRCDEST directory can be the same for all packages. For instance, using the version number of the project as a filename potentially conflicts with other projects with the same version number. In this case, the alternative unique filename to be used is provided with the syntax source=('unique_package_name::file_uri'); e.g. source=("$pkgname-$pkgver.tar.gz::https://github.com/coder/program/archive/v$pkgver.tar.gz").

eclairevoyant commented on 2023-02-06 06:14 (UTC)

Need to add python-setuptools to the makedepends:

ModuleNotFoundError: No module named 'setuptools'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.

bpierre commented on 2022-12-27 07:14 (UTC)

@SammyPoot: yeah, might as well switch to a simpler workaround:

 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git i/PKGBUILD w/PKGBUILD
index 14f441f..8496f8b 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -25,7 +25,7 @@ build() {

 check() {
   cd "rtf_tokenize-$pkgver"
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" pytest test
+  PYTHONPATH="$(echo -n build/lib.linux*/)" pytest test
 }

 package() {

SammyPoot commented on 2022-12-27 00:45 (UTC)

Hi, @bpierre, having some trouble getting this to install on my machine. Tests fail because it cannot find the module. The PYTHONPATH variable seems to be set wrong - maybe the format of the directory name changed?

I managed to fix it with this makefile change:

diff --git a/PKGBUILD b/PKGBUILD
index 14f441f..f649965 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,7 +25,7 @@ build() {

 check() {
   cd "rtf_tokenize-$pkgver"
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" pytest test
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')" pytest test
 }