hdx-python-country 3.7.2__tar.gz → 3.7.4__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 (37) hide show
  1. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.config/pre-commit-config.yaml +4 -4
  2. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.github/workflows/publish.yaml +2 -1
  3. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.github/workflows/run-python-tests.yaml +4 -6
  4. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/PKG-INFO +2 -2
  5. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/documentation/main.md +2 -2
  6. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/pyproject.toml +13 -17
  7. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/requirements.txt +19 -21
  8. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/_version.py +2 -2
  9. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.config/coveragerc +0 -0
  10. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.config/pytest.ini +0 -0
  11. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.config/ruff.toml +0 -0
  12. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/.gitignore +0 -0
  13. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/CONTRIBUTING.md +0 -0
  14. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/LICENSE +0 -0
  15. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/README.md +0 -0
  16. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/documentation/.readthedocs.yaml +0 -0
  17. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/documentation/pydoc-markdown.yaml +0 -0
  18. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/Countries & Territories Taxonomy MVP - C&T Taxonomy with HXL Tags.csv +0 -0
  19. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/__init__.py +0 -0
  20. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/adminlevel.py +0 -0
  21. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/country.py +0 -0
  22. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/currency.py +0 -0
  23. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/names.py +0 -0
  24. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/phonetics.py +0 -0
  25. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/src/hdx/location/wfp_exchangerates.py +0 -0
  26. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/adminlevel.yaml +0 -0
  27. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/adminlevelparent.yaml +0 -0
  28. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/global_pcode_lengths.csv +0 -0
  29. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/global_pcodes_adm_1_2.csv +0 -0
  30. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/secondary_historic_rates.csv +0 -0
  31. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/fixtures/secondary_rates.json +0 -0
  32. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/Countries_UZB_Deleted.csv +0 -0
  33. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/__init__.py +0 -0
  34. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/test_adminlevel.py +0 -0
  35. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/test_country.py +0 -0
  36. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/test_currency.py +0 -0
  37. {hdx_python_country-3.7.2 → hdx_python_country-3.7.4}/tests/hdx/location/test_wfp_exchangerates.py +0 -0
@@ -1,14 +1,14 @@
1
1
  default_language_version:
2
- python: python3.11
2
+ python: python3.12
3
3
  repos:
4
4
  - repo: https://github.com/pre-commit/pre-commit-hooks
5
- rev: v4.5.0
5
+ rev: v4.6.0
6
6
  hooks:
7
7
  - id: trailing-whitespace
8
8
  - id: end-of-file-fixer
9
9
  - id: check-ast
10
10
  - repo: https://github.com/astral-sh/ruff-pre-commit
11
- rev: v0.4.4
11
+ rev: v0.4.8
12
12
  hooks:
13
13
  # Run the linter.
14
14
  - id: ruff
@@ -17,7 +17,7 @@ repos:
17
17
  - id: ruff-format
18
18
  args: [--config, .config/ruff.toml]
19
19
  - repo: https://github.com/astral-sh/uv-pre-commit
20
- rev: 0.1.45
20
+ rev: 0.2.10
21
21
  hooks:
22
22
  # Run the pip compile
23
23
  - id: pip-compile
@@ -21,7 +21,8 @@ jobs:
21
21
  - name: Install dependencies
22
22
  run: |
23
23
  python -m pip install --upgrade pip
24
- pip install --upgrade hatch
24
+ - name: Install Hatch
25
+ uses: pypa/hatch@install
25
26
  - name: Build with hatch
26
27
  run: |
27
28
  hatch build
@@ -26,17 +26,15 @@ jobs:
26
26
  - name: Install dependencies
27
27
  run: |
28
28
  python -m pip install --upgrade pip
29
- pip install --upgrade hatch
29
+ - name: Install Hatch
30
+ uses: pypa/hatch@install
30
31
  - name: Test with hatch/pytest
31
- env:
32
- WFP_KEY: ${{ secrets.WFP_KEY }}
33
- WFP_SECRET: ${{ secrets.WFP_SECRET }}
34
32
  run: |
35
- hatch run test:test
33
+ hatch test
36
34
  - name: Check styling
37
35
  if: always()
38
36
  run: |
39
- hatch run lint:style
37
+ hatch fmt --check
40
38
  - name: Publish Unit Test Results
41
39
  uses: EnricoMi/publish-unit-test-result-action@v2
42
40
  if: always()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: hdx-python-country
3
- Version: 3.7.2
3
+ Version: 3.7.4
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
@@ -25,7 +25,7 @@ Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
27
  Requires-Python: >=3.8
28
- Requires-Dist: hdx-python-utilities>=3.6.8
28
+ Requires-Dist: hdx-python-utilities>=3.7.0
29
29
  Requires-Dist: libhxl>=5.2.1
30
30
  Requires-Dist: pyphonetics
31
31
  Provides-Extra: dev
@@ -120,8 +120,8 @@ be global or they can be restricted by country or parent (if the AdminLevel
120
120
  object has been set up with parents). Keys take the form "MAPPING",
121
121
  "AFG|MAPPING" or "AF01|MAPPING".
122
122
  *admin_name_replacements* is a dictionary of textual replacements to try when
123
- fuzzy matching. It maps from string to string replacement. The replacements can
124
- be global or they can be restricted by country or parent (if the AdminLevel
123
+ fuzzy matching. It maps from string to string replacement. The replacements can
124
+ be global or they can be restricted by country or parent (if the AdminLevel
125
125
  object has been set up with parents). Keys take the form "STRING_TO_REPLACE",
126
126
  "AFG|STRING_TO_REPLACE" or "AF01|STRING_TO_REPLACE".
127
127
  *admin_fuzzy_dont* is a list of names for which fuzzy matching should not be
@@ -34,7 +34,7 @@ classifiers = [
34
34
  requires-python = ">=3.8"
35
35
 
36
36
  dependencies = [
37
- "hdx-python-utilities>=3.6.8",
37
+ "hdx-python-utilities>=3.7.0",
38
38
  "libhxl>=5.2.1",
39
39
  "pyphonetics",
40
40
  ]
@@ -79,25 +79,21 @@ version_scheme = "python-simplified-semver"
79
79
 
80
80
  # Tests
81
81
 
82
- [tool.hatch.envs.test]
83
- features = ["test"]#, "wfp"]
82
+ [tool.hatch.envs.hatch-test]
83
+ features = ["test"]
84
84
 
85
- [tool.hatch.envs.test.scripts]
86
- test = """
85
+ [[tool.hatch.envs.hatch-test.matrix]]
86
+ python = ["3.12"]
87
+
88
+ [tool.hatch.envs.hatch-test.scripts]
89
+ run = """
87
90
  pytest -c .config/pytest.ini --rootdir=. --junitxml=test-results.xml \
88
91
  --cov --cov-config=.config/coveragerc --no-cov-on-fail \
89
92
  --cov-report=lcov --cov-report=term-missing
90
93
  """
91
94
 
92
- [[tool.hatch.envs.test.matrix]]
93
- python = ["3.12"]
94
-
95
- [tool.hatch.envs.lint]
96
- detached = true
97
- dependencies = ["ruff"]
98
-
99
- [tool.hatch.envs.lint.scripts]
100
- style = [
101
- "ruff check --config .config/ruff.toml --diff {args:.}",
102
- "ruff format --config .config/ruff.toml --diff {args:.}",
103
- ]
95
+ [tool.hatch.envs.hatch-static-analysis.scripts]
96
+ format-check = ["ruff format --config .config/ruff.toml --check --diff {args:.}",]
97
+ format-fix = ["ruff format --config .config/ruff.toml {args:.}",]
98
+ lint-check = ["ruff check --config .config/ruff.toml {args:.}",]
99
+ lint-fix = ["ruff check --config .config/ruff.toml --fix {args:.}",]
@@ -8,7 +8,7 @@ attrs==23.2.0
8
8
  # jsonlines
9
9
  # jsonschema
10
10
  # referencing
11
- certifi==2024.2.2
11
+ certifi==2024.6.2
12
12
  # via requests
13
13
  cfgv==3.4.0
14
14
  # via pre-commit
@@ -18,17 +18,17 @@ charset-normalizer==3.3.2
18
18
  # via requests
19
19
  click==8.1.7
20
20
  # via typer
21
- coverage==7.5.1
21
+ coverage==7.5.4
22
22
  # via pytest-cov
23
23
  distlib==0.3.8
24
24
  # via virtualenv
25
25
  et-xmlfile==1.1.0
26
26
  # via openpyxl
27
- filelock==3.14.0
27
+ filelock==3.15.4
28
28
  # via virtualenv
29
29
  frictionless==5.17.0
30
30
  # via hdx-python-utilities
31
- hdx-python-utilities==3.6.8
31
+ hdx-python-utilities==3.7.0
32
32
  # via hdx-python-country (pyproject.toml)
33
33
  humanize==4.9.0
34
34
  # via frictionless
@@ -36,7 +36,7 @@ identify==2.5.36
36
36
  # via pre-commit
37
37
  idna==3.7
38
38
  # via requests
39
- ijson==3.2.3
39
+ ijson==3.3.0
40
40
  # via hdx-python-utilities
41
41
  iniconfig==2.0.0
42
42
  # via pytest
@@ -60,17 +60,17 @@ loguru==0.7.2
60
60
  # via hdx-python-utilities
61
61
  markdown-it-py==3.0.0
62
62
  # via rich
63
- marko==2.0.3
63
+ marko==2.1.2
64
64
  # via frictionless
65
65
  markupsafe==2.1.5
66
66
  # via jinja2
67
67
  mdurl==0.1.2
68
68
  # via markdown-it-py
69
- nodeenv==1.8.0
69
+ nodeenv==1.9.1
70
70
  # via pre-commit
71
- openpyxl==3.1.2
71
+ openpyxl==3.1.4
72
72
  # via hdx-python-utilities
73
- packaging==24.0
73
+ packaging==24.1
74
74
  # via pytest
75
75
  petl==1.7.15
76
76
  # via frictionless
@@ -84,21 +84,21 @@ ply==3.11
84
84
  # libhxl
85
85
  pre-commit==3.7.1
86
86
  # via hdx-python-country (pyproject.toml)
87
- pydantic==2.7.1
87
+ pydantic==2.7.4
88
88
  # via frictionless
89
- pydantic-core==2.18.2
89
+ pydantic-core==2.18.4
90
90
  # via pydantic
91
91
  pygments==2.18.0
92
92
  # via rich
93
93
  pyphonetics==0.5.3
94
94
  # via hdx-python-country (pyproject.toml)
95
- pytest==8.2.1
95
+ pytest==8.2.2
96
96
  # via
97
97
  # hdx-python-country (pyproject.toml)
98
98
  # pytest-cov
99
99
  pytest-cov==5.0.0
100
100
  # via hdx-python-country (pyproject.toml)
101
- python-dateutil==2.8.2
101
+ python-dateutil==2.9.0.post0
102
102
  # via
103
103
  # frictionless
104
104
  # hdx-python-utilities
@@ -118,7 +118,7 @@ referencing==0.35.1
118
118
  # via
119
119
  # jsonschema
120
120
  # jsonschema-specifications
121
- requests==2.32.2
121
+ requests==2.32.3
122
122
  # via
123
123
  # frictionless
124
124
  # libhxl
@@ -137,8 +137,6 @@ ruamel-yaml==0.18.6
137
137
  # via hdx-python-utilities
138
138
  ruamel-yaml-clib==0.2.8
139
139
  # via ruamel-yaml
140
- setuptools==70.0.0
141
- # via nodeenv
142
140
  shellingham==1.5.4
143
141
  # via typer
144
142
  simpleeval==0.9.13
@@ -149,7 +147,7 @@ six==1.16.0
149
147
  # python-dateutil
150
148
  stringcase==1.2.0
151
149
  # via frictionless
152
- structlog==24.1.0
150
+ structlog==24.2.0
153
151
  # via libhxl
154
152
  tableschema-to-template==0.0.13
155
153
  # via hdx-python-utilities
@@ -159,7 +157,7 @@ text-unidecode==1.3
159
157
  # via python-slugify
160
158
  typer==0.12.3
161
159
  # via frictionless
162
- typing-extensions==4.11.0
160
+ typing-extensions==4.12.2
163
161
  # via
164
162
  # frictionless
165
163
  # pydantic
@@ -169,13 +167,13 @@ unidecode==1.3.8
169
167
  # via
170
168
  # libhxl
171
169
  # pyphonetics
172
- urllib3==2.2.1
170
+ urllib3==2.2.2
173
171
  # via
174
172
  # libhxl
175
173
  # requests
176
- validators==0.28.1
174
+ validators==0.28.3
177
175
  # via frictionless
178
- virtualenv==20.26.2
176
+ virtualenv==20.26.3
179
177
  # via pre-commit
180
178
  wheel==0.43.0
181
179
  # via libhxl
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '3.7.2'
16
- __version_tuple__ = version_tuple = (3, 7, 2)
15
+ __version__ = version = '3.7.4'
16
+ __version_tuple__ = version_tuple = (3, 7, 4)