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.
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/PKG-INFO +1 -1
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/_version.py +2 -2
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/adminlevel.py +1 -1
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/test_adminlevel.py +4 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/black.toml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/coveragerc +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/pre-commit-config.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/pytest.ini +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.config/ruff.toml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.github/workflows/publish.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.github/workflows/run-python-tests.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.gitignore +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/CONTRIBUTING.md +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/LICENSE +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/README.md +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/.readthedocs.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/main.md +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/documentation/pydoc-markdown.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/pyproject.toml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/requirements.txt +0 -0
- {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
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/country.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/currency.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/names.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/src/hdx/location/phonetics.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/adminlevel.yaml +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcode_lengths.csv +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcodes_adm_1_2.csv +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/secondary_historic_rates.csv +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/secondary_rates.json +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/__init__.py +0 -0
- {hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/test_country.py +0 -0
- {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.
|
|
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>
|
|
@@ -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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/.github/workflows/run-python-tests.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcode_lengths.csv
RENAMED
|
File without changes
|
{hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/global_pcodes_adm_1_2.csv
RENAMED
|
File without changes
|
{hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/fixtures/secondary_historic_rates.csv
RENAMED
|
File without changes
|
|
File without changes
|
{hdx_python_country-3.6.2 → hdx_python_country-3.6.3}/tests/hdx/location/Countries_UZB_Deleted.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|