New issue 672: Make importorskip work with PEP440 compatible versions
https://bitbucket.org/hpk42/pytest/issue/672/make-importorskip-work-with-pep440

Trevor Bekolay:

Right now, the docstring for `importorskip` notes that only simple versions 
(e.g. `1.2.3`, but not `2.3-dev`) can be parsed. A package for parsing 
PEP440-compatible versions exists in the 
[`packaging`](https://packaging.pypa.io/en/latest/version/) library.

I'd be happy to prepare a PR to introduce a dependency on `packaging`, and use 
it to do version parsing/ordering in `importorskip` (and possibly other 
places?) but I wanted to check and make sure you'd be comfortable with adding 
such a dependency. I could alternatively add it in vendorized form (i.e., 
copying it into the `pytest` source tree directly). Shall I move forward with 
such a PR?


_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to