setup: Only require configparser when native version unavailable
On Python 3, configparser library is part of standard library. The configparser package therefore is not needed. For this reason, distributions such as Arch Linux do not even provide this package for Python 3, which in turn breaks the build.
This patch changes the setup.py to only add the configparser dependency when native configparser is not available.
Codecov Report
Merging #232 into develop will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## develop #232 +/- ##
========================================
Coverage 96.25% 96.25%
========================================
Files 9 9
Lines 934 934
Branches 141 141
========================================
Hits 899 899
Misses 13 13
Partials 22 22
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update c54a9e6...05f1836. Read the comment docs.
Apparently, it is possible to declare version-specific constraints: https://github.com/joke2k/faker/blob/f81cd517e35d72edbdb264d0ec6a0f93f8d37ab8/setup.py#L68-L78