Package Details: python-requests-unixsocket 0.1.5-2

Git Clone URL: https://aur.archlinux.org/python-requests-unixsocket.git (read-only)
Package Base: python-requests-unixsocket
Description: Use requests to talk HTTP via a UNIX domain socket
Upstream URL: https://github.com/msabramo/requests-unixsocket
Licenses: Apache
Submitter: atweiden
Maintainer: None
Last Packager: atweiden
Votes: 2
Popularity: 0.000229
First Submitted: 2016-04-15 21:33
Last Updated: 2016-05-22 23:10

Latest Comments

potatoe commented on 2016-05-22 02:28

Unable to build here, same error message. The problem is the source file being pointed at is not complete, it's just a git export and is missing files required for setup.py to be able to run.

The solution is to point at the actual distributable source tarball published on PyPI, at https://pypi.python.org/packages/source/r/requests-unixsocket/requests-unixsocket-$pkgver.tar.gz (and the sha256sum will also need to be updated, because this is a different file).

Explanation: This project bundles a utility module called pbr to auto-generate the version number required by setup.py, instead of having to manually specify and update it in setup.cfg. When run from a git checkout, setup.py will use pbr to guess the correct version by inspecting the git metadata (like finding the nearest tag that looks like a version number). When it comes time to distribute the source in a tarball, you run setup.py sdist in the git copy, which generates a tarball and will use pbr to guess the version number and then hard-code it into the resulting tarball, so that users of the tarball don't need to inspect a git checkout for tags. But when run against the git export this PKGFILE is trying to use, there's no git metadata to inspect AND no hard-coded version number, so pbr fails with the error message about requiring either an sdist tarball or a git repository.

Upstream is probably not even aware that this (unusable) tarball is being published by github, maybe it's auto-created by github everytime the project pushes a new tag. They're clearly building and uploading a proper sdist tarball to PyPI, so you'd expect they'd also put that same tarball on github's releases section if they actually intended to use that section.

bms commented on 2016-05-08 17:46

I can reproduce it though.

gogoprog, have you figured it out? Maybe a missing dependency?

atweiden, I reported this upstream just in case, in the meantime, could you provide a list of python packages you have installed?

A possible workaround for now is to use pip as it installs correctly through it.

atweiden commented on 2016-04-22 16:07

I can't reproduce, I suggest opening an issue upstream https://github.com/msabramo/requests-unixsocket/issues

gogoprog commented on 2016-04-19 14:27

I cannot install this package (0.1.5-1) :

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 /home/gogoprog/temp/yaourt-tmp-gogoprog/aur-python-requests-unixsocket/src/requests-unixsocket-0.1.5/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?

Of course I have git, any idea?