← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1355426] [NEW] pip2rpm builds bad specs when packages have tests requirements

 

Public bug reported:

pip2rpm is not correctly parsing test-requirements.txt it will take the
relevant entries  and create a python-(character) for each character in
the file.  Under the tests portion of the repo.

This creates a spec file like the following, which make it impossible to
install the tests rpms.

 Source: h
Requires: python-h

# Source: a
Requires: python-a

# Source: c
Requires: python-c

# Source: k
Requires: python-k

# Source: i
Requires: python-i

# Source: n
Requires: python-n

# Source: g
Requires: python-g

# Source: 0
Requires: python-0

# Source: .
Requires: python--

# Source: 8
Requires: python-8

# Source: .
Requires: python--

# Source: 0
Requires: python-0

# Source: 0
Requires: python-0

# Source: .
Requires: python--

# Source: 9
Requires: python-9


Which should be python-hacking>=0.8.0,<0.9 its is also stripping out ">,=<"

** Affects: anvil
     Importance: Undecided
         Status: New

** Summary changed:

- Build requirements
+ pip2rpm builds bad specs when packages have tests requirements

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to anvil.
https://bugs.launchpad.net/bugs/1355426

Title:
  pip2rpm builds bad specs when packages have tests requirements

Status in ANVIL for forging OpenStack.:
  New

Bug description:
  pip2rpm is not correctly parsing test-requirements.txt it will take
  the relevant entries  and create a python-(character) for each
  character in the file.  Under the tests portion of the repo.

  This creates a spec file like the following, which make it impossible
  to install the tests rpms.

   Source: h
  Requires: python-h

  # Source: a
  Requires: python-a

  # Source: c
  Requires: python-c

  # Source: k
  Requires: python-k

  # Source: i
  Requires: python-i

  # Source: n
  Requires: python-n

  # Source: g
  Requires: python-g

  # Source: 0
  Requires: python-0

  # Source: .
  Requires: python--

  # Source: 8
  Requires: python-8

  # Source: .
  Requires: python--

  # Source: 0
  Requires: python-0

  # Source: 0
  Requires: python-0

  # Source: .
  Requires: python--

  # Source: 9
  Requires: python-9

  
  Which should be python-hacking>=0.8.0,<0.9 its is also stripping out ">,=<"

To manage notifications about this bug go to:
https://bugs.launchpad.net/anvil/+bug/1355426/+subscriptions


Follow ups

References