Skip to content

Commit 91cbc5c

Browse files
author
Elia Robyn Speer
committed
update for Python 3.10 compatibility
1 parent b53a290 commit 91cbc5c

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
graft langcodes/data
22
prune langcodes/data/cldr-core*
3+
prune langcodes/data/cldr*
34
include README.md
45
include langcodes/py.typed

README.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
**langcodes** knows what languages are. It knows the standardized codes that
44
refer to them, such as `en` for English, `es` for Spanish and `hi` for Hindi.
5-
Often, it knows what these languages are called *in* a language, and that
6-
language doesn't have to be English.
5+
6+
These are [IETF language tags][]. You may know them by their old name, ISO 639
7+
language codes. IETF has done some important things for backward compatibility
8+
and supporting language variations that you won't find in the ISO standard.
9+
10+
[IETF language tags]: https://www.w3.org/International/articles/language-tags/
711

812
It may sound to you like langcodes solves a pretty boring problem. At one
913
level, that's right. Sometimes you have a boring problem, and it's great when a
@@ -39,8 +43,16 @@ One way to know is to read IETF standards and Unicode technical reports.
3943
Another way is to use a library that implements those standards and guidelines
4044
for you, which langcodes does.
4145

42-
langcodes is maintained by Robyn Speer, and is released as free software under
43-
the MIT license.
46+
When you're working with these short language codes, you may want to see the
47+
name that the language is called _in_ a language: `fr` is called "French" in
48+
English. That language doesn't have to be English: `fr` is called "français" in
49+
French. A supplement to langcodes, [`language_data`][language-data], provides
50+
this information.
51+
52+
[language-data]: https://github.com/rspeer/language_data
53+
54+
langcodes is maintained by Elia Robyn Lake a.k.a. Robyn Speer, and is released
55+
as free software under the MIT license.
4456

4557

4658
## Standards implemented
@@ -50,8 +62,8 @@ acronym-compliant.
5062

5163
langcodes implements [BCP 47](http://tools.ietf.org/html/bcp47), the IETF Best
5264
Current Practices on Tags for Identifying Languages. BCP 47 is also known as
53-
RFC 5646. It subsumes standards such as ISO 639, and it also implements
54-
recommendations from the [Unicode CLDR](http://cldr.unicode.org).
65+
RFC 5646. It subsumes ISO 639 and is backward compatible with it, and it also
66+
implements recommendations from the [Unicode CLDR](http://cldr.unicode.org).
5567

5668
The package also comes with a database of language properties and names, built
5769
from Unicode CLDR and the IANA subtag registry.
@@ -644,6 +656,8 @@ date.
644656
invalid
645657
- A language tag with two extlangs, like 'sgn-ase-bfi', is invalid
646658

659+
- Updated dependencies so they are compatible with Python 3.10.
660+
647661

648662
## Version 3.1 (February 2021)
649663

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
python_requires='>=3.6',
3939
tests_require=['pytest'],
4040
extras_require={
41-
'data': 'language_data >= 1.0'
41+
'data': 'language_data >= 1.0.1'
4242
},
4343
zip_safe=False,
4444
classifiers=[
@@ -47,6 +47,7 @@
4747
"Programming Language :: Python :: 3.7",
4848
"Programming Language :: Python :: 3.8",
4949
"Programming Language :: Python :: 3.9",
50+
"Programming Language :: Python :: 3.10",
5051
"License :: OSI Approved :: MIT License",
5152
"Operating System :: OS Independent",
5253
"Topic :: Software Development :: Libraries :: Python Modules",

0 commit comments

Comments
 (0)