Path to this page:
./
geography/py-country,
ISO country, subdivision, language, currency and script
Branch: CURRENT,
Version: 26.2.16,
Package name: py313-country-26.2.16,
Maintainer: kamel.derouichepycountry provides the ISO databases for the standards:
639
Languages
3166
Countries
3166-3
Deleted countries
3166-2
Subdivisions of countries
4217
Currencies
15924
Scripts
The package includes a copy from Debian's pkg-isocodes and makes the data
accessible through a Python API.
Translation files for the various strings are included as well.
Required to run:[
devel/py-setuptools] [
lang/python37]
Required to build:[
pkgtools/cwrappers]
Master sites:
Filesize: 7530.607 KB
Version history: (Expand)
- (2026-05-27) Updated to version: py313-country-26.2.16
- (2025-10-24) Updated to version: py313-country-24.6.1nb1
- (2025-10-24) Package has been reborn
- (2025-10-24) Package deleted from pkgsrc
- (2025-09-28) Updated to version: py312-country-24.6.1nb1
- (2025-07-15) Package has been reborn
CVS history: (Expand)
2026-05-27 14:48:02 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-country: updated to 26.2.16
26.2.16 (2026-02-16)
- Dropped support for end-of-life Pythons 3.8 and 3.9.
- Added explicit support for Python 3.13 and 3.14.
- Updated to iso-codes 4.20.1.
- Added support for matching initials in ``countries.search_fuzzy``. For
example, results for ``countries.search_fuzzy("UK")`` will now include
GB (United Kingdom).
- Fixed ``subdivisions.add_entry`` and ``subdivisions.remove_entry``, which
would previously render the ``country_code`` index of ``subdivisions``
unusable causing ``subdivisions.get(country_code=...)`` to return a malformed
result.
|
| 2025-09-28 21:42:20 by Thomas Klausner | Files touched by this commit (2) |
Log message:
py-country: fix for latest poetry-core
Bump PKGREVISION.
|
| 2024-10-11 15:43:48 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
py-country: forget about Python 2.7 and 3.8
|
2024-06-14 20:54:20 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-country: updated to 24.6.1
24.6.1 (2024-06-01)
-------------------
- **Breaking change**: Reverted the fallback to name when country common_name
or official_name attributes not available, which was added in 23.12.11.
- Fixed import of importlib_metadata to importlib.metadata
- Fixed bug causing parent subdivision codes to be returned with additional
country code preceding (i.e. GB-GB-ENG instead of GB-ENG)
- Update to iso-codes 4.16.0. (Thanks to musicinmybrain!)
|
2024-02-05 22:35:29 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-country: updated to 23.12.11
23.12.11 (2023-12-11)
---------------------
- Added fallback to name when common_name or official_name country attributes \
are missing
- Added support for adding and removing country records, as well as casting to dict
- Improve performance speed by checking for non-ascii chars before removing accents
- Added search_fuzzy method to subdivisions
- Added type hinting, created py.typed file, and added mypy checks to CI
23.12.7 (2023-12-07)
--------------------
- Dropped support for end-of-life Python 3.6 and 3.7.
- Added support for Python 3.11 and Python 3.12.
- Added dependency on importlib-resources for Python 3.8.
- Dropped implicit dependency on setuptools for pkg_resources.
(Thanks to D3X!)
- Update to iso-codes 4.15.0. (Thanks to alanorth!)
- Removes iso3166.mo files and opts for newer iso3166-1.mo and iso3166-3.mo
files for Country and Historic Country Translations respectively.
Warning: This requires an update in your application code when you previously
used to access the iso3166 gettext data.
|
2023-04-25 15:09:23 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-country: updated to 22.3.5
22.3.5 (2022-03-05)
-------------------
- Update to iso-codes 4.9.0.
22.1.10 (2022-01-10)
--------------------
- Update to iso-codes 4.8.0. (Thanks to llimeht!)
20.7.3 (2020-07-03)
-------------------
- Fix bug 37: (accidental) unconditional pkg_resources import.
(thanks, crbunney)
20.7.2 (2020-07-02)
-------------------
- Add (auto-generated) __version__ attribute to the main module.
- Add fuzzy search to historic countries.
- Update to iso-codes 4.5.0.
- Clean up the normalization (lower casing) of values in indexes and searches.
- Smaller cleanups and build environment version bumps.
- Python 3-only cleanups and updated Python minor version compatibility
(thanks, Djailla)
- Remove defunct bugtracker link from README (thanks, jwilk)
- Moved to Git/Github; switched from Bitbucket Pipelines to Travis builds.
|
| 2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
| 2021-10-26 12:45:18 by Nia Alarie | Files touched by this commit (108) |
Log message:
geography: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
|