upgrade-requirements.py icon indicating copy to clipboard operation
upgrade-requirements.py copied to clipboard

Add support for non-pinned requirements

Open joeyespo opened this issue 6 years ago • 1 comments

This will solve the Error: Can only work with pinned requirements for now case and close out this TODO.

joeyespo avatar Jan 01 '19 16:01 joeyespo

^ this code-path should probably raise rather than fall-through to the next line.

Reading ./scripts/env/requirements.txt...
Error: Can only work with pinned requirements for now.
Traceback (most recent call last):
  File "/Users/jbo/venv/default/bin/upgrade-requirements", line 11, in <module>
    load_entry_point('upgrade-requirements==1.7.0', 'console_scripts', 'upgrade-requirements')()
  File "/Users/jbo/venv/default/lib/python3.7/site-packages/upgrade_requirements.py", line 58, in main
    name, version = requirement.split('==')
ValueError: not enough values to unpack (expected 2, got 1)

jamesbroadhead avatar Mar 19 '19 20:03 jamesbroadhead