Package Details: python-mdv-git 1.6.3.r97.g435b688-2

Git Clone URL: https://aur.archlinux.org/python-mdv-git.git (read-only, click to copy)
Package Base: python-mdv-git
Description: Styled Terminal Markdown Viewer
Upstream URL: https://github.com/axiros/terminal_markdown_viewer
Licenses: BSD
Conflicts: terminal_markdown_viewer
Submitter: Felixoid
Maintainer: Felixoid
Last Packager: Felixoid
Votes: 2
Popularity: 0.000000
First Submitted: 2018-04-20 16:03 (UTC)
Last Updated: 2023-05-13 08:05 (UTC)

Latest Comments

Felixoid commented on 2021-07-22 22:09 (UTC)

I see. In some modes, when the output is not tty anymore, it works like 2>&1.

Yes, it's a problem. Now I see. Sorry for not getting it the first time.

bartus commented on 2021-07-20 21:09 (UTC) (edited on 2021-07-20 21:35 (UTC) by bartus)

@Felixoid: Sorry for the imprecise explanation. You are correct: calling makepkg from bash works fine, but if someone build all their packages in volatile containers without letting them touch their local system it will fail with mentioned pkgver error, as in container output of makepkg is not attached to terminal, making python setup.py -V dump its warning message to stdout ( same as calling nohup python setup.py -V )

Run extra-x86_64-build -r /tmp/${PWD##*/} to reproduce the error.

[Edit] I took a looksy at makepkg:run_function() and find out that error arises when -L flag is passed to makepkg.

Run makepkg -CodL to reproduce the error when building localy.

Felixoid commented on 2021-07-19 14:17 (UTC) (edited on 2021-07-19 14:34 (UTC) by Felixoid)

Sorry, it sounds nonsense to me.

┌[16:15:08] felixoid@felix-lm:~/.cache/yay/python-mdv-git/src/mdv [master|✔] 
└>±> python setup.py -V 2>/dev/null 
1.7.4
┌[16:15:13] felixoid@felix-lm:~/.cache/yay/python-mdv-git/src/mdv [master|✔] 
└>±> python setup.py -V            
/usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
1.7.4
> makepkg                                                     
==> Making package: python-mdv-git 1.6.3.r81.g80f333b-2 (Mon 19 Jul 2021 16:10:01)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning mdv git repo...
Cloning into bare repository '/home/felixoid/.cache/yay/python-mdv-git/mdv'...
remote: Enumerating objects: 1335, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 1335 (delta 43), reused 41 (delta 16), pack-reused 1258
Receiving objects: 100% (1335/1335), 1.94 MiB | 9.00 MiB/s, done.
Resolving deltas: 100% (863/863), done.
==> Validating source files with sha1sums...
    mdv ... Skipped
==> Extracting sources...
  -> Creating working copy of mdv git repo...
Cloning into 'mdv'...
done.
==> Starting pkgver()...
/usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
==> Updated version: python-mdv-git 1.6.3.r97.g435b688-1

Works perfectly w/o consuming the stderr

The error is thrown by description-file in setup.cfg file, but the project is abandoned and is not supported by the owner. I am pretty sure, it won't be fixed.

update: forget my latest statement, he just merged all the stack of PRs one month ago. So I've sent the PR to fix deprecation.

Although, it's just warning, and it definitely shouldn't be considered as a part of package version.

bartus commented on 2021-07-19 13:46 (UTC) (edited on 2021-07-19 13:48 (UTC) by bartus)

Please consume stderr in pkgver() otherwise makepkg throws an error:

==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: /usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
1.6.3.r97.g435b688
diff --git a/PKGBUILD b/PKGBUILD
index 12a469e..6b3b194 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ sha1sums=('SKIP')

 pkgver() {
   cd "${_name}"
-  _version=$(python setup.py -V)
+  _version=$(python setup.py -V 2>&-)
   ( set -o pipefail
   git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
     printf "%s.r%s.%s" "${_version}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

danbruegge commented on 2021-04-22 05:56 (UTC)

I switched to glow. Recommended here: https://github.com/axiros/terminal_markdown_viewer/issues/84

Felixoid commented on 2021-03-10 09:40 (UTC)

Since the upstream is not updated for long, I am not sure what to do. One should ask Axiros GmbH to take care of a stale code or provide a stable updated source

Felixoid commented on 2019-12-30 09:57 (UTC)

Thank you @bartus, done. Next time, flag a package as outdated, please.

bartus commented on 2019-12-17 15:58 (UTC)

Add 'git' to 'makedepends' array.