question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Look for requirements.in when converting

See original GitHub issue

pip-tools uses requirements.in like Pipfile, so that requirements.txt is like Pipfile.lock. When both are present, and pipenv wants to automatically create the Pipfile, it should use the requirements.in file instead of requirements.txt.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bittnercommented, Nov 8, 2017

Mutual support would be cool, so that either tool could (at least) import, (maybe) auto detect, (optionally) convert, and compare + align with the other files. So, they could be used interchangeably, at developer’s discretion.

Personally, just to give an example motivation, while I see pipenv to be the right path down harmonization with other languages and technologies, I do like the single-line simplicity of requirements.txt (and requirements.in) that pip-tools is handling more.

0reactions
frankiercommented, Nov 29, 2017

Yeah, I don’t see mutual support as a useful feature or desirable in terms of the scope of either tool. Round tripping is messy. Pipfile seems strictly better to be so the migration path should be towards it (it’s being standardised, so it’s possibly you might use it with a tool other than pipenv in the future).

However, it would be cool if requiements.in projects could be migrated more smoothly.

It shouldn’t be too hard since half of what’s need can be done already quite easily:

$ mv requirements.txt requirements.txt.lock
$ mv requirements.in requirements.txt
$ pipenv install

All that’s missing at that point is the lock file should be based upon requirements.txt.lock instead of relocking the requirements. Even just doing something equivalent to the above (while issuing a warning about discarding locked versions) could be useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting requirements - No Magic Documentation
To convert elements. From the selected element's shortcut menu, select Refactor > Convert To. The list with available conversion target types opens.
Read more >
Writing Good Requirements
This paper will address what makes a good requirement. ... An important aspect of system engineering is converting user "needs" into clear, concise, ......
Read more >
Gathering Requirements and Creating Use Cases, An ...
Another technique for collecting requirements involves simply keeping a list of requirements. As this list grows, it is grouped into logical ...
Read more >
How do I convert a list of Requirements into Constraints?
I am having difficulty, however, in proceeding to the next step. What exactly is a Design Constraint supposed to look like? How specific...
Read more >
How to Turn Requirements into User Stories - DaedTech
... for converting gigantic Word documents full of requirements into ... If you look at traditional requirements documents, they generally ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found