Package Details: bashate 2.1.0-2

Git Clone URL: https://aur.archlinux.org/bashate.git (read-only, click to copy)
Package Base: bashate
Description: Code style enforcement for bash programs
Upstream URL: https://github.com/openstack/bashate
Licenses: Apache
Submitter: christoph.gysin
Maintainer: christoph.gysin
Last Packager: christoph.gysin
Votes: 5
Popularity: 0.000000
First Submitted: 2015-06-25 08:07 (UTC)
Last Updated: 2021-10-11 19:53 (UTC)

Latest Comments

Sathors commented on 2021-10-11 20:04 (UTC)

Perfect @christoph.gysin, I've just tried it and everything is working great now. It also installs fine using yay. Thanks for the really fast fix.

christoph.gysin commented on 2021-10-11 19:53 (UTC)

@Sathors Thanks for the update. The issue seems to be triggered if the build step is called in a directory that is not part of a git repository. Fixed in 2.1.0-2.

Sathors commented on 2021-10-11 19:19 (UTC) (edited on 2021-10-11 19:19 (UTC) by Sathors)

@christoph.gysin I have updated my previous comment to paste the error there. I was missing the double spaces at the end of each line to preserve the newlines.

To build it, I download the snapshot of the package (https://aur.archlinux.org/cgit/aur.git/snapshot/bashate.tar.gz), I extract the .tar.gz archive, I run makepkg --syncdeps --rmdeps --install --clean in the root of the directory (which contains the PKGBUILD) and then I stumble upon the error.

christoph.gysin commented on 2021-10-11 17:53 (UTC)

@Sathors Please check how to properly format your comment with markdown. Then provide detailed steps to reproduce the problem. It builds fine for me.

Sathors commented on 2021-10-11 17:42 (UTC) (edited on 2021-10-11 19:14 (UTC) by Sathors)

With this version I have the same problem I had with the previous version, namely a "Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found."

==> Starting build()...  
ERROR:root:Error parsing  
Traceback (most recent call last):  
  File "/usr/lib/python3.9/site-packages/pbr/core.py", line 96, in pbr  
    attrs = util.cfg_to_args(path, dist.script_args)  
  File "/usr/lib/python3.9/site-packages/pbr/util.py", line 274, in cfg_to_args  
    pbr.hooks.setup_hook(config)  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook  
    metadata_config.run()  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run  
    self.hook()  
  File "/usr/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook  
    self.config['version'] = packaging.get_version(  
  File "/usr/lib/python3.9/site-packages/pbr/packaging.py", line 874, in get_version  
    raise Exception("Versioning for this project requires either an sdist"  
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found.  
error in setup command: Error parsing /tmp/makepkg/bashate/src/bashate-2.1.0/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name bashate was given, but was not able to be found.  
==> ERROR: A failure occurred in build().  
    Aborting...  
error making: bashate  

Thanks

christoph.gysin commented on 2017-03-25 09:46 (UTC)

@dracorp Fixed makedepends, thanks!

dracorp commented on 2017-03-15 15:21 (UTC)

@christoph.gysin There is no setuptools instead python{,2}-setuptools. Could you fix makedepend?

christoph.gysin commented on 2016-08-28 15:39 (UTC)

@kseistrup: Please try to reproduce on a clean chroot: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot

kseistrup commented on 2016-08-28 15:08 (UTC) (edited on 2016-08-28 15:11 (UTC) by kseistrup)

@chrstoph.gysin that's weird: $ cd /tmp $ git clone https://aur.archlinux.org/bashate.git $ cd bashate $ makepkg -s Plase see https://ghostbin.com/paste/ojza7 — I can't seem to paste the errors here.

christoph.gysin commented on 2016-08-28 14:41 (UTC)

@kseistrup: Can't reproduce that on a clean chroot.

kseistrup commented on 2016-08-23 06:40 (UTC)

ImportError: No module named 'release' error in setup command: Error parsing /tmp/bashate/src/bashate-0.5.1/setup.cfg: ImportError: No module named 'release' ==> ERROR: A failure occurred in build(). Aborting...

christoph.gysin commented on 2016-07-17 10:37 (UTC)

Fixed, thanks.

colundrum commented on 2016-07-05 17:14 (UTC)

Hi, Can you update the source to https://pypi.python.org/packages/22/3c/10efc0119b59e77c74e94eb9768f409b4ba25238a0e3082203bc5386793f/bashate-0.5.1.tar.gz#md5=3e2a6d131ccfadf4a3f2858a7098ac47 ? Because with the actual, I obtain : ==> Starting build()... ERROR:root:Error parsing Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/pbr/core.py", line 111, in pbr attrs = util.cfg_to_args(path, dist.script_args) File "/usr/lib/python3.5/site-packages/pbr/util.py", line 246, in cfg_to_args pbr.hooks.setup_hook(config) File "/usr/lib/python3.5/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook metadata_config.run() File "/usr/lib/python3.5/site-packages/pbr/hooks/base.py", line 27, in run self.hook() File "/usr/lib/python3.5/site-packages/pbr/hooks/metadata.py", line 26, in hook self.config['name'], self.config.get('version', None)) File "/usr/lib/python3.5/site-packages/pbr/packaging.py", line 725, in get_version raise Exception("Versioning for this project requires either an sdist" Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed? error in setup command: Error parsing /tmp/yaourt-tmp-colundrum/aur-bashate/src/bashate-0.5.1/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed? ==> ERROR: A failure occurred in build(). Aborting... Thanks a lot