hdx-python-country 3.8.9__tar.gz → 3.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/PKG-INFO +1 -1
  2. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/_version.py +2 -2
  3. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/wfp_exchangerates.py +4 -3
  4. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/coveragerc +0 -0
  5. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/pre-commit-config.yaml +0 -0
  6. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/pytest.ini +0 -0
  7. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.config/ruff.toml +0 -0
  8. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.github/workflows/publish.yaml +0 -0
  9. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.github/workflows/run-python-tests.yaml +0 -0
  10. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/.gitignore +0 -0
  11. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/CONTRIBUTING.md +0 -0
  12. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/LICENSE +0 -0
  13. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/README.md +0 -0
  14. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/.readthedocs.yaml +0 -0
  15. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/index.md +0 -0
  16. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/documentation/mkdocs.yaml +0 -0
  17. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/pyproject.toml +0 -0
  18. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/requirements.txt +0 -0
  19. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -0
  20. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/__init__.py +0 -0
  21. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/adminlevel.py +0 -0
  22. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/country.py +0 -0
  23. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/currency.py +0 -0
  24. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/src/hdx/location/wfp_api.py +0 -0
  25. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/adminlevel.yaml +0 -0
  26. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/adminlevelparent.yaml +0 -0
  27. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/download-global-pcode-lengths.csv +0 -0
  28. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/download-global-pcodes-adm-1-2.csv +0 -0
  29. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/secondary_historic_rates.csv +0 -0
  30. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/secondary_rates.json +0 -0
  31. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_List_1.json +0 -0
  32. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_List_2.json +0 -0
  33. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_1.json +0 -0
  34. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_10.json +0 -0
  35. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_2.json +0 -0
  36. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_3.json +0 -0
  37. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_4.json +0 -0
  38. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_5.json +0 -0
  39. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_6.json +0 -0
  40. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_7.json +0 -0
  41. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_8.json +0 -0
  42. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/fixtures/wfp/Currency_UsdIndirectQuotation_9.json +0 -0
  43. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
  44. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/__init__.py +0 -0
  45. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_adminlevel.py +0 -0
  46. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_country.py +0 -0
  47. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_currency.py +0 -0
  48. {hdx_python_country-3.8.9 → hdx_python_country-3.9.0}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hdx-python-country
3
- Version: 3.8.9
3
+ Version: 3.9.0
4
4
  Summary: HDX Python country code and exchange rate (fx) utilities
5
5
  Project-URL: Homepage, https://github.com/OCHA-DAP/hdx-python-country
6
6
  Author: Michael Rans
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '3.8.9'
21
- __version_tuple__ = version_tuple = (3, 8, 9)
20
+ __version__ = version = '3.9.0'
21
+ __version_tuple__ = version_tuple = (3, 9, 0)
@@ -27,9 +27,10 @@ class WFPExchangeRates:
27
27
  """
28
28
  currencies = []
29
29
  for currency in self.wfp_api.get_items("Currency/List"):
30
- currencies.append(
31
- {"code": currency["name"], "name": currency["extendedName"]}
32
- )
30
+ currency_name = currency["extendedName"]
31
+ if currency_name:
32
+ currency_name = currency_name.strip()
33
+ currencies.append({"code": currency["name"], "name": currency_name})
33
34
  return currencies
34
35
 
35
36
  def get_currencies(self) -> List[str]: