hdx-python-country 3.6.2__tar.gz → 3.6.3__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 (35) hide show
  1. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/PKG-INFO +1 -1
  2. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/_version.py +2 -2
  3. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/adminlevel.py +1 -1
  4. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/test_adminlevel.py +4 -0
  5. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/black.toml +0 -0
  6. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/coveragerc +0 -0
  7. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/pre-commit-config.yaml +0 -0
  8. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/pytest.ini +0 -0
  9. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/ruff.toml +0 -0
  10. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.github/workflows/publish.yaml +0 -0
  11. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.github/workflows/run-python-tests.yaml +0 -0
  12. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.gitignore +0 -0
  13. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/CONTRIBUTING.md +0 -0
  14. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/LICENSE +0 -0
  15. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/README.md +0 -0
  16. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/.readthedocs.yaml +0 -0
  17. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/main.md +0 -0
  18. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/pydoc-markdown.yaml +0 -0
  19. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/pyproject.toml +0 -0
  20. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/requirements.txt +0 -0
  21. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -0
  22. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/__init__.py +0 -0
  23. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/country.py +0 -0
  24. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/currency.py +0 -0
  25. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/names.py +0 -0
  26. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/phonetics.py +0 -0
  27. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/adminlevel.yaml +0 -0
  28. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcode_lengths.csv +0 -0
  29. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcodes_adm_1_2.csv +0 -0
  30. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/secondary_historic_rates.csv +0 -0
  31. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/secondary_rates.json +0 -0
  32. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
  33. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/__init__.py +0 -0
  34. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/test_country.py +0 -0
  35. {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/test_currency.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hdx-python-country
3
- Version: 3.6.2
3
+ Version: 3.6.3
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-email: Michael Rans <rans@email.com>
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '3.6.2'
16
- __version_tuple__ = version_tuple = (3, 6, 2)
15
+ __version__ = version = '3.6.3'
16
+ __version_tuple__ = version_tuple = (3, 6, 3)
@@ -38,7 +38,7 @@ class AdminLevel:
38
38
  admin_level_overrides (Dict): Countries at other admin levels.
39
39
  """
40
40
 
41
- pcode_regex = re.compile(r"^([a-zA-Z]{2,3})(\d*)$")
41
+ pcode_regex = re.compile(r"^([a-zA-Z]{2,3})(\d+)$")
42
42
  _admin_url_default = "https://data.humdata.org/dataset/cb963915-d7d1-4ffa-90dc-31277e24406f/resource/f65bc260-4d8b-416f-ac07-f2433b4d5142/download/global_pcodes_adm_1_2.csv"
43
43
  _admin_url = _admin_url_default
44
44
  _formats_url_default = "https://data.humdata.org/dataset/cb963915-d7d1-4ffa-90dc-31277e24406f/resource/f1161807-dab4-4331-b7b0-4e5dac56e0e4/download/global_pcode_lengths.csv"
@@ -166,6 +166,10 @@ class TestAdminLevel:
166
166
  "YE30",
167
167
  False,
168
168
  )
169
+ assert adminone.get_pcode("SOM", "Bay", logname="test") == (
170
+ "SO24",
171
+ True,
172
+ )
169
173
  output = adminone.output_matches()
170
174
  assert output == [
171
175
  "test - YEM: Matching (fuzzy) Al Dali to Ad Dali on map",