Package Details: python-pathvalidate 3.2.1-1

Git Clone URL: https://aur.archlinux.org/python-pathvalidate.git (read-only, click to copy)
Package Base: python-pathvalidate
Description: Sanitize/validate strings in filenames/file-paths/etc
Upstream URL: https://github.com/thombashi/pathvalidate
Keywords: sanitize validate
Licenses: MIT
Submitter: fl0w1
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 37
Popularity: 1.79
First Submitted: 2017-09-01 11:56 (UTC)
Last Updated: 2024-08-25 18:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

vith commented on 2024-08-24 16:15 (UTC)

I was getting the same error when trying to build manually with makepkg.

Using paru with the Chroot option enabled in /etc/paru.conf worked.

invverse commented on 2024-08-24 15:03 (UTC)

I'm experiencing the same errors as other users.

CodeAndGin commented on 2024-08-24 14:11 (UTC)

I have the same issue as @thesheeep, including when running makepkg, not a helper, with the altered PKGBUILD (as well as a few other download urls I tried that should have had the right checksum)

fordprefect commented on 2024-08-24 13:58 (UTC)

Please stop discussing aur helpers and only report problems reproducible with makepkg. AUR helpers are not supported. Thanks.

pbordron commented on 2024-08-24 13:56 (UTC) (edited on 2024-08-24 13:57 (UTC) by pbordron)

The hash I use is the one displayed on pypi.org page.

It can be a problem with the aur helper that doesn't follow the pypi predictable url which redirects (with a 302 http response) to the real package url

In my case I use yay as aur helper

thesheeep commented on 2024-08-24 13:32 (UTC)

The helper cache is clear, yes.

pbordron commented on 2024-08-24 12:36 (UTC)

@thesheeep

Did you clean the aur helper cache before constructing the package? I use the pypi source archive that differs from the github one.

thesheeep commented on 2024-08-24 11:49 (UTC) (edited on 2024-08-24 11:50 (UTC) by thesheeep)

Same issue as @bonan. But pbordon's suggestion did not fix it for me. Instead, I get another error with that change:

Building python-pathvalidate... ==> Making package: python-pathvalidate 3.2.1-1 (Sat Aug 24 14:48:52 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found python-pathvalidate-3.2.1.tar.gz ==> Validating source files with sha256sums... python-pathvalidate-3.2.1.tar.gz ... FAILED ==> ERROR: One or more files did not pass the validity check! Failed to build python-pathvalidate

pbordron commented on 2024-08-24 11:26 (UTC)

@bonan: replace source and sha256sums in PKGBUILD file by the following:

source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pathvalidate/pathvalidate-$pkgver.tar.gz")
sha256sums=('f5d07b1e2374187040612a1fcd2bcb2919f8db180df254c9581bb90bf903377d')

bonan commented on 2024-08-24 10:46 (UTC)

I'm unable to package the latest update:

Traceback (most recent call last):                                                                                                                                           
  File ".cache/aurutils/sync/python-pathvalidate/src/pathvalidate-3.2.1/setup.py", line 43, in <module>                                                      
    setuptools.setup(                                                                                                                                                        
  File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup                                                                                        
    return distutils.core.setup(**attrs)                                                                                                                                     
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                     
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 146, in setup                                                                                 
    _setup_distribution = dist = klass(attrs)                                                                                                                                
                                 ^^^^^^^^^^^^                                                                                                                                
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 307, in __init__                                                                                         
    _Distribution.__init__(self, dist_attrs)
  File "/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 284, in __init__
    self.finalize_options()
  File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 658, in finalize_options
    ep(self)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 123, in infer_version
    _assign_version(dist, config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py", line 58, in _assign_version
    _version_missing(config)
  File "/usr/lib/python3.12/site-packages/setuptools_scm/_get_version_impl.py", line 117, in _version_missing
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for .cache/aurutils/sync/python-pathvalidate/src/pathvalidate-3.2.1.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj