PBR

pbr doesn't like --index-url in requirements.txt

Bug #1394999 reported by Moritz
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
PBR
Fix Released
Low
Matthew Montgomery

Bug Description

My requirements.txt starts with a line like this (different URL):

--index-url http://server.local/

When I run python setup.py build, I get

$ python setup.py build
error in setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

Removing either pbr or the --index-url make the error go away.

(I need --index-url because I also use dh-virtualenv to build debian packages, and those don't have another means to pass the index URL).

Changed in pbr:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Christian Hopps (chopps) wrote :

We cannot use this in any of our projects b/c we use a private index server. Can the importance of this be raised since it's been around for 2+ years now?

Revision history for this message
Matthew Montgomery (mattmont) wrote :

This is blocking us from easily using PBR for internal release work. Going to submit a patch to address this.

Changed in pbr:
assignee: nobody → Matthew Montgomery (mattmont)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to pbr (master)

Fix proposed to branch: master
Review: https://review.openstack.org/465941

Changed in pbr:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pbr (master)

Reviewed: https://review.openstack.org/465941
Committed: https://git.openstack.org/cgit/openstack-dev/pbr/commit/?id=2a0f2e589c1f6375e3d2093619dcbedb1aa3284d
Submitter: Jenkins
Branch: master

commit 2a0f2e589c1f6375e3d2093619dcbedb1aa3284d
Author: Matthew Montgomery <email address hidden>
Date: Wed May 17 15:44:24 2017 -0500

    Ignore index URL lines in requirements.txt files

    Currently if an index is specified by either -i, --index-url or
    --extra-index-url, the following error may be encountered when
    setup is run.

    Invalid requirement, parse error at "u'-i https'"

    This patch ignores those lines in a requirements.txt file durning
    parsing.

    Closes-Bug: #1394999

    Change-Id: Ie03f54ca7a7edad7a26fa1721f7b26532b65e760

Changed in pbr:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack-dev/pbr 3.1.0

This issue was fixed in the openstack-dev/pbr 3.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.