madpah / requirements-parser

A Pip requirements file parser.
https://requirements-parser.readthedocs.io
Apache License 2.0
128 stars 42 forks source link

Adds equality (and inequality) testing to Requirement class #34

Closed chrislawlor closed 4 years ago

chrislawlor commented 6 years ago

I'm working on a tool for comparing requirements files to one another. requirements-parser would be a great fit for my project, but I need some simple equality testing so I know when a requirement from one file doesn't match the "equivalent" file from another.

This PR adds equality testing to the Requirement class, along with some basic unit tests.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.04%) to 98.352% when pulling de158d7bf72b8faef8f82c484dbe6f6ca9d149e6 on chrislawlor:feature/requirement-equality into caca172b80d448c6175c1b4f5777781d583fc9b7 on davidfischer:master.

chrislawlor commented 4 years ago

I know this is super old, but bumping because we ran into this use case again today. Would really love to see this merged if possible.