Package Details: python-pantable 0.14.2-3

Git Clone URL: https://aur.archlinux.org/python-pantable.git (read-only, click to copy)
Package Base: python-pantable
Description: CSV Tables in Markdown: Pandoc Filter for CSV Tables
Upstream URL: https://github.com/ickc/pantable
Licenses: GPL3
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 2
Popularity: 0.000000
First Submitted: 2019-03-01 14:23 (UTC)
Last Updated: 2023-05-04 08:58 (UTC)

Latest Comments

tzok commented on 2023-06-09 13:12 (UTC)

This package is broken!

Here is the list of files in the final package file and as you can see, it lacks the main Python files in /usr/lib/python*/site-packages!

.BUILDINFO
.MTREE
.PKGINFO
usr/
usr/bin/
usr/bin/pantable
usr/bin/pantable2csv
usr/bin/pantable2csvx
usr/lib/
usr/lib/python3.11/
usr/lib/python3.11/site-packages/
usr/lib/python3.11/site-packages/CHANGELOG.rst
usr/lib/python3.11/site-packages/CONTRIBUTING.rst
usr/lib/python3.11/site-packages/LICENSE
usr/lib/python3.11/site-packages/README.rst
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/LICENSE
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/METADATA
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/RECORD
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/WHEEL
usr/lib/python3.11/site-packages/pantable-0.14.2.dist-info/entry_points.txt

dreieck commented on 2023-05-04 16:53 (UTC) (edited on 2023-05-04 19:56 (UTC) by dreieck)

According to namcap, the dependencies

  • python-yamlloader
  • python-tabulate
  • python-coloredlogs
  • python-backports.cached_property

are missing from the depends array:

python-pantable W: Referenced python module 'map_parallel.map_parallel' is an uninstalled dependency (needed in files ['usr/lib/python3.11/site-packages/pantable/util.py'])
python-pantable E: Dependency python-tabulate detected and not included (python modules ['tabulate.tabulate'] needed in files ['usr/lib/python3.11/site-packages/pantable/ast.py'])
python-pantable E: Dependency python-coloredlogs detected and not included (python modules ['coloredlogs.ColoredFormatter'] needed in files ['usr/lib/python3.11/site-packages/pantable/__init__.py'])
python-pantable E: Dependency python-backports.cached_property detected and not included (python modules ['backports.cached_property.cached_property'] needed in files ['usr/lib/python3.11/site-packages/pantable/ast.py'])
python-pantable E: Dependency python-yamlloader detected and not included (python modules ['yamlloader.ordereddict.dumpers.SafeDumper', 'yamlloader.ordereddict.dumpers.CSafeDumper'] needed in files ['usr/lib/python3.11/site-packages/pantable/util.py'])
[...]

Maybe some of them are optional dependencies? and can be included in optdepends, if so.

Regards!

dreieck commented on 2023-05-04 16:43 (UTC) (edited on 2023-05-04 16:50 (UTC) by dreieck)

This package wrongly installs

  • /usr/lib/python3.11/site-packages/LICENSE
  • /usr/lib/python3.11/site-packages/CONTRIBUTING.rst
  • /usr/lib/python3.11/site-packages/CHANGELOG.rst
  • /usr/lib/python3.11/site-packages/README.rst

(wrong path)

the License should be installed into /usr/share/licenses/${pkgname}, the other files into /usr/share/doc/${pkgname}/.

At the path it is installed now, it is prone to create conflicts with other packages that do the same mistake:

error: failed to commit transaction (conflicting files)
vapoursynth-plugin-pvsfunc-git: /usr/lib/python3.11/site-packages/LICENSE exists in filesystem (owned by python-pantable)
Errors occurred, no packages were upgraded.

Please fix.

A possible fixup is to add the following to package():

    install -d -v -m755 "${pkgdir}/usr/share/doc/${pkgname}"
    install -d -v -m755 "${pkgdir}/usr/share/licenses/${pkgname}"

    for _docfix in CHANGELOG.rst CONTRIBUTING.rst README.rst; do
      mv -v "${pkgdir}/usr/lib/python3.11/site-packages/${_docfix}" "${pkgdir}/usr/share/doc/${pkgname}/${_docfix}"
    done

    for _licensefix in LICENSE; do
      mv -v "${pkgdir}/usr/lib/python3.11/site-packages/${_licensefix}" "${pkgdir}/usr/share/licenses/${pkgname}/${_licensefix}"
      ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/${_licensefix}" "${pkgdir}/usr/share/doc/${pkgname}/${_licensefix}"
    done

Also, please consider adding provides=("pantable=${pkgver}"), conflicts=('pantable'), since this package provides pantable executables in /usr/bin/.

Thanks for maintaining!

Rofano commented on 2022-06-13 13:24 (UTC)

Can you please add numpy as dependency

alerque commented on 2019-12-02 09:10 (UTC)

@dreieck Done.

dreieck commented on 2019-11-01 14:58 (UTC)

Can you please link

/usr/lib/python3.7/site-packages/bin/pantable
/usr/lib/python3.7/site-packages/bin/pantable2csv

into

/usr/bin/