Package: pycountry / 20.7.3+ds1-1

Metadata

Package Version Patches format
pycountry 20.7.3+ds1-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
00 use_system_iso codes.patch | (download)

src/pycountry/__init__.py | 18 9 + 9 - 0 !
src/pycountry/tests/test_general.py | 2 1 + 1 - 0 !
2 files changed, 10 insertions(+), 10 deletions(-)

 use system-wide iso-codes
01 prevent_logger_warning.patch | (download)

src/pycountry/db.py | 10 10 + 0 - 0 !
1 file changed, 10 insertions(+)

---
02 disable failing asserts.patch | (download)

src/pycountry/tests/test_general.py | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 disable failing asserts
 iso-codes has long moved on beyond that which pycountry knows.
 This means the count of countries, subdivisions, etc are out of
 date.  Rather than risk an FTBFS when iso-codes moves on once more
 simply comment out the specific asserts, leaving the rest of the
 testing intact.
03 fix pkg resources.patch | (download)

src/pycountry/__init__.py | 2 1 + 1 - 0 !
src/pycountry/tests/test_general.py | 8 4 + 4 - 0 !
2 files changed, 5 insertions(+), 5 deletions(-)

 skip use of pkg-resources
 pkg-resources only works once the package has been installed and breaks
 in-place testing. Stub out the offending tests and fix the handling
 of the error from pkg-resources.