From ba73897b6fa430b89602171485523e042ea6e0ff Mon Sep 17 00:00:00 2001 From: mozillazg Date: Mon, 11 Dec 2023 21:36:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BD=BF=E7=94=A8=20phra?= =?UTF-8?q?se-pinyin-data=20v0.16.0=20=E5=92=8C=20pinyin-data=20v0.14.0=20?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #311 --- CHANGELOG.rst | 7 ++ phrase-pinyin-data | 2 +- pinyin-data | 2 +- pypinyin/constants.py | 2 + pypinyin/phrases_dict.py | 10 +-- pypinyin/pinyin_dict.py | 178 ++++++++++++++++++++++++++++++++++++--- tests/test_others.py | 6 ++ 7 files changed, 188 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2ea6430..9283dfc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog --------- +`0.50.0`_ (2023-12-11) ++++++++++++++++++++++++++ + +* **[Improved]** 使用 `phrase-pinyin-data`_ v0.16.0 的词语拼音数据。 +* **[Improved]** 使用 `pinyin-data`_ v0.14.0 的拼音数据。 + `0.49.0`_ (2023-05-14) +++++++++++++++++++++++++ @@ -1067,3 +1073,4 @@ __ https://github.com/mozillazg/python-pinyin/issues/8 .. _0.47.1: https://github.com/mozillazg/python-pinyin/compare/v0.47.0...v0.47.1 .. _0.48.0: https://github.com/mozillazg/python-pinyin/compare/v0.47.1...v0.48.0 .. _0.49.0: https://github.com/mozillazg/python-pinyin/compare/v0.48.0...v0.49.0 +.. _0.50.0: https://github.com/mozillazg/python-pinyin/compare/v0.49.0...v0.50.0 diff --git a/phrase-pinyin-data b/phrase-pinyin-data index 2cdc1f6..dbf645d 160000 --- a/phrase-pinyin-data +++ b/phrase-pinyin-data @@ -1 +1 @@ -Subproject commit 2cdc1f69fc85ab243a36bcebf882a0747fe1994f +Subproject commit dbf645df063e2771c7247252e292b313cc66c4b8 diff --git a/pinyin-data b/pinyin-data index 889cde8..27dc54a 160000 --- a/pinyin-data +++ b/pinyin-data @@ -1 +1 @@ -Subproject commit 889cde8bb0769747849f1d26bfc60c18efee1db3 +Subproject commit 27dc54a206326e0d8d91428010325f50f614508d diff --git a/pypinyin/constants.py b/pypinyin/constants.py index 734681d..fb0e968 100644 --- a/pypinyin/constants.py +++ b/pypinyin/constants.py @@ -45,7 +45,9 @@ r'\U0002B825-\U0002BF6E' r'\U0002C029-\U0002CE93' r'\U0002D016' + r'\U0002D11B-\U0002EBD9' r'\U0002F80A-\U0002FA1F' # CJK兼容扩展:[2F800-2FA1F] + r'\U000300F7-\U00031288' r'\U00030EDD' r'\U00030EDE' r'])+$' diff --git a/pypinyin/phrases_dict.py b/pypinyin/phrases_dict.py index f528b9a..fb666ea 100644 --- a/pypinyin/phrases_dict.py +++ b/pypinyin/phrases_dict.py @@ -2993,7 +2993,7 @@ '乐池': [['yuè'], ['chí']], '乐清': [['yuè'], ['qīng']], '乐滋滋': [['lè'], ['zī'], ['zī']], - '乐理': [['lè'], ['lǐ']], + '乐理': [['yuè'], ['lǐ']], '乐祸幸灾': [['lè'], ['huò'], ['xìng'], ['zāi']], '乐章': [['yuè'], ['zhāng']], '乐而不厌': [['lè'], ['ér'], ['bù'], ['yàn']], @@ -13428,8 +13428,8 @@ '大块文章': [['dà'], ['kuài'], ['wén'], ['zhāng']], '大坝': [['dà'], ['bà']], '大型': [['dà'], ['xíng']], - '大城': [['dài'], ['chéng']], - '大城市': [['dài'], ['chéng'], ['shì']], + '大城': [['dà'], ['chéng']], + '大城市': [['dà'], ['chéng'], ['shì']], '大埔': [['dà'], ['bù']], '大堂': [['dà'], ['táng']], '大堡礁': [['dà'], ['pù'], ['jiāo']], @@ -18555,7 +18555,7 @@ '忆苦思甜': [['yì'], ['kǔ'], ['sī'], ['tián']], '忌食': [['jì'], ['shí']], '忍俊不住': [['rěn'], ['jùn'], ['bù'], ['zhù']], - '忍俊不禁': [['rěn'], ['jùn'], ['bù'], ['jìn']], + '忍俊不禁': [['rěn'], ['jùn'], ['bù'], ['jīn']], '忍无可忍': [['rěn'], ['wú'], ['kě'], ['rěn']], '忍辱': [['rěn'], ['rǔ']], '忍辱负重': [['rěn'], ['rǔ'], ['fù'], ['zhòng']], @@ -41461,7 +41461,7 @@ '重珪叠组': [['chóng'], ['guī'], ['dié'], ['zǔ']], '重珪迭组': [['chóng'], ['guī'], ['dié'], ['zǔ']], '重理旧业': [['chóng'], ['lǐ'], ['jiù'], ['yè']], - '重生': [['zhòng'], ['shēng']], + '重生': [['chóng'], ['shēng']], '重生父母': [['chóng'], ['shēng'], ['fù'], ['mǔ']], '重生爷娘': [['chóng'], ['shēng'], ['yé'], ['niáng']], '重申': [['chóng'], ['shēn']], diff --git a/pypinyin/pinyin_dict.py b/pypinyin/pinyin_dict.py index b05a455..f2572ab 100644 --- a/pypinyin/pinyin_dict.py +++ b/pypinyin/pinyin_dict.py @@ -1801,7 +1801,7 @@ 0x3C6B: 'làn', 0x3C6C: 'wěi', 0x3C6D: 'duàn', - 0x3C6E: 'kuài', + 0x3C6E: 'kuài,huì', 0x3C6F: 'ái', 0x3C70: 'zǎi', 0x3C71: 'huì', @@ -5779,6 +5779,7 @@ 0x4DB2: 'nán', 0x4DB3: 'yuè', 0x4DB5: 'chí', + 0x4DB8: 'yāo', 0x4E00: 'yī,yí,yì', 0x4E01: 'dīng,zhēng', 0x4E02: 'kǎo,qiǎo,yú', @@ -7430,7 +7431,7 @@ 0x5472: 'cī,cí,zī', 0x5473: 'wèi,mèi', 0x5474: 'xǔ,hǒu,hōu,gòu,gōu,gū', - 0x5475: 'hē,hā,ā,a,kē,huō,á,à', + 0x5475: 'hē,hā,ā,a,kē,huō,á,ǎ,à', 0x5476: 'náo,ná,nǔ', 0x5477: 'gā,xiā,jiǎ', 0x5478: 'pēi', @@ -15996,7 +15997,7 @@ 0x75F0: 'tán', 0x75F1: 'fèi,féi,fěi', 0x75F2: 'má', - 0x75F3: 'lín,lìn', + 0x75F3: 'lín,lìn,má', 0x75F4: 'chī', 0x75F5: 'jì', 0x75F6: 'tiǎn,diǎn', @@ -17405,7 +17406,7 @@ 0x7B71: 'xiǎo', 0x7B72: 'shāo', 0x7B73: 'tíng', - 0x7B74: 'cè,jiā,jiá', + 0x7B74: 'cè,jiā', 0x7B75: 'yán', 0x7B76: 'gào,gǎo', 0x7B77: 'kuài', @@ -17958,7 +17959,7 @@ 0x7D9A: 'xù', 0x7D9B: 'rěn', 0x7D9C: 'zōng,zèng,zòng', - 0x7D9D: 'chēn,shēn,lín', + 0x7D9D: 'chēn,shēn', 0x7D9E: 'duǒ', 0x7D9F: 'lì,liè', 0x7DA0: 'lǜ', @@ -18694,7 +18695,7 @@ 0x807A: 'qié', 0x807B: 'nǐ,jiàn', 0x807C: 'tīng', - 0x807D: 'tīng,tìng', + 0x807D: 'tīng', 0x807E: 'lóng', 0x807F: 'yù', 0x8080: 'yù', @@ -22202,7 +22203,7 @@ 0x8E2E: 'diǎn', 0x8E2F: 'zhí', 0x8E30: 'yú,yáo,chū', - 0x8E31: 'duó,chuò,duò', + 0x8E31: 'duó,chuò', 0x8E32: 'dùn', 0x8E33: 'chuǎn,chǔn,chūn', 0x8E34: 'yǒng', @@ -22803,7 +22804,7 @@ 0x9087: 'ěr', 0x9088: 'miǎo,miáo', 0x9089: 'biān', - 0x908A: 'biān', + 0x908A: 'biān,bian', 0x908B: 'lā,liè', 0x908C: 'lí,chí', 0x908D: 'yuán', @@ -24109,7 +24110,7 @@ 0x95A1: 'ài,hé,hài,gāi,kǎi', 0x95A2: 'guān', 0x95A3: 'gé', - 0x95A4: 'gé,gē,hé', + 0x95A4: 'gé,gē', 0x95A5: 'fá', 0x95A6: 'chù', 0x95A7: 'hòng,xiàng', @@ -24811,7 +24812,7 @@ 0x985F: 'láo', 0x9860: 'piǎo', 0x9861: 'wài,zhuài', - 0x9862: 'mán', + 0x9862: 'mán,mān', 0x9863: 'cù', 0x9864: 'yáo,qiào', 0x9865: 'hào', @@ -26679,7 +26680,7 @@ 0x9FD5: 'dān', 0x9FEB: 'ào', 0x9FEC: 'tián', - 0x9FED: 'nǐ', + 0x9FED: 'nǐ,xǐ', 0xE815: 'yè', 0xE816: 'zuǒ,yǒu', 0xE818: 'gǔn', @@ -41278,30 +41279,46 @@ 0x2A6D2: 'lián', 0x2A79D: 'duó', 0x2A7DD: 'jì,jī', + 0x2A833: 'chē', 0x2A848: 'bái', 0x2A84F: 'zhān', 0x2A8AE: 'luán', + 0x2A8DD: 'zào', 0x2A8FB: 'lóu', 0x2A917: 'liào', + 0x2AA07: 'tuí', 0x2AA0A: 'sóng', 0x2AA17: 'juē', + 0x2AA27: 'lún', 0x2AA30: 'qū', 0x2AA36: 'shē', 0x2AA58: 'yǎn', 0x2AA9D: 'yōng', + 0x2AB8B: 'xiāo', + 0x2AC77: 'bèi', + 0x2ADFD: 'zàn', 0x2AEB9: 'nǔ', 0x2AED0: 'cōng', + 0x2AF47: 'kē', + 0x2AF94: 'xǔ', 0x2AFA2: 'xiàn', + 0x2AFA6: 'lú', 0x2B061: 'lì', 0x2B088: 'fèi', 0x2B099: 'sù', 0x2B0DC: 'kòu', + 0x2B11B: 'jīn', + 0x2B11F: 'shī', + 0x2B124: 'da', + 0x2B125: 'lí,xǐ', 0x2B127: 'yán', 0x2B128: 'chī', 0x2B137: 'yì', 0x2B138: 'xūn', 0x2B1ED: 'wěi', 0x2B230: 'qià', + 0x2B241: 'ài', + 0x2B2CC: 'tè', 0x2B2D0: 'gǒng', 0x2B300: 'jī', 0x2B328: 'luó', @@ -41312,13 +41329,20 @@ 0x2B36F: 'xián', 0x2B370: 'xǐ', 0x2B372: 'xiǎo', + 0x2B37B: 'xī', 0x2B37D: 'xuān', + 0x2B3AB: 'dàn', + 0x2B3AC: 'gàn', 0x2B3CB: 'juē,qiāo', + 0x2B3D0: 'zàn', 0x2B404: 'yuè', 0x2B406: 'kuài', 0x2B409: 'líng', 0x2B410: 'ní', + 0x2B411: 'guǎn', 0x2B413: 'bù,róu', + 0x2B416: 'jiāo', + 0x2B418: 'kǎn', 0x2B461: 'méng', 0x2B4B6: 'hán', 0x2B4E7: 'fū', @@ -41329,16 +41353,22 @@ 0x2B50D: 'fán', 0x2B50E: 'jué', 0x2B536: 'niè', + 0x2B583: 'huì', + 0x2B594: 'bài', 0x2B5AE: 'yǐ', 0x2B5AF: 'fǔ', 0x2B5B3: 'yūn', 0x2B5E0: 'zhāng', 0x2B5E6: 'bù', 0x2B5E7: 'sù', + 0x2B5E9: 'luó', + 0x2B5EB: 'hú', 0x2B5EE: 'huáng', + 0x2B5F0: 'duī', 0x2B5F4: 'zhān', 0x2B61C: 'wén', 0x2B61D: 'jué', + 0x2B61E: 'tuó', 0x2B623: 'hàn', 0x2B624: 'ái', 0x2B626: 'táo', @@ -41346,6 +41376,7 @@ 0x2B628: 'tí', 0x2B62A: 'yuán', 0x2B62C: 'xí', + 0x2B62D: 'shuāng', 0x2B688: 'xù', 0x2B689: 'hóng', 0x2B692: 'fú', @@ -41353,13 +41384,18 @@ 0x2B695: 'shī', 0x2B696: 'cǐ', 0x2B699: 'pū', + 0x2B6A5: 'xiā', 0x2B6AD: 'liè', 0x2B6DB: 'zhī', 0x2B6DE: 'jué', 0x2B6E2: 'níng', + 0x2B6E3: 'yù', 0x2B6ED: 'kuáng', + 0x2B6F3: 'fú', 0x2B6F6: 'chì', 0x2B6F8: 'tí', + 0x2B728: 'bà', + 0x2B72C: 'zé', 0x2B737: 'shòu', 0x2B738: 'huà', 0x2B7A9: 'mén', @@ -41372,55 +41408,77 @@ 0x2B80A: 'xuán', 0x2B81C: 'ní', 0x2B825: 'lòu', + 0x2B826: 'suǒ', 0x2B851: 'yīn', + 0x2B892: 'lǒng', 0x2B8B8: 'dàn', + 0x2B9EF: 'xiè', 0x2BAC7: 'ě,è', + 0x2BAE6: 'dàn', 0x2BB5F: 'ōu,qū', 0x2BB62: 'lǔn', 0x2BB7C: 'láo', 0x2BB83: 'shàn', 0x2BBAC: 'jiàng', + 0x2BC02: 'duǒ', 0x2BC1B: 'xíng', + 0x2BD52: 'tuí', + 0x2BD58: 'bī', 0x2BD77: 'lì', 0x2BD87: 'dié', 0x2BDF7: 'xīn', 0x2BE29: 'kōu', 0x2BF1B: 'diào', + 0x2BF1D: 'chōu', 0x2BF6E: 'dǎng', 0x2C029: 'wěi', 0x2C02A: 'xiàn', 0x2C037: 'shāng', + 0x2C060: 'xiǎng', 0x2C0A9: 'jiā', 0x2C0CA: 'zhì', + 0x2C129: 'yǐn', 0x2C19B: 'nǎo', + 0x2C1AE: 'kòu', 0x2C1D5: 'wàn', + 0x2C1D8: 'tuán', 0x2C1D9: 'pèi,bèi', 0x2C1F9: 'guó', + 0x2C227: 'sè', 0x2C27C: 'ōu,ǒu', 0x2C288: 'xún', 0x2C2A4: 'chǎn', 0x2C317: 'hé', + 0x2C359: 'zhǎn', 0x2C35B: 'lì', 0x2C361: 'dàng', 0x2C364: 'xún', 0x2C41A: 'hǎi', 0x2C454: 'zhòng', + 0x2C457: 'jiàn', 0x2C461: 'chǒu', 0x2C488: 'què', 0x2C494: 'gěng', 0x2C497: 'lán', 0x2C498: 'xìn', + 0x2C4EB: 'qiū', 0x2C4FC: 'tuí', 0x2C542: 'gōng,lǒng', 0x2C613: 'xún', + 0x2C616: 'jiǎn', 0x2C618: 'dǎn', + 0x2C61C: 'zhàn', + 0x2C61D: 'zhěn', 0x2C621: 'yīn', + 0x2C622: 'kuàng', 0x2C629: 'tīng', 0x2C62B: 'huán', 0x2C62C: 'qiàn', 0x2C62D: 'lín,chēn', 0x2C62F: 'zhǔn', + 0x2C635: 'gēng', 0x2C642: 'yǎn', + 0x2C646: 'fān,fán', 0x2C64A: 'mò', 0x2C64B: 'xiāng', 0x2C6F8: 'niē', @@ -41429,48 +41487,63 @@ 0x2C79F: 'pín', 0x2C7C1: 'yì', 0x2C7FD: 'dōng', + 0x2C88A: 'sì', + 0x2C8C0: 'wèi', 0x2C8D9: 'xū', 0x2C8DE: 'zhǔ', 0x2C8E1: 'jiàn', 0x2C8F3: 'hěn', 0x2C907: 'yīn', 0x2C90A: 'shì', + 0x2C910: 'gē', 0x2C91D: 'huì', 0x2C925: 'zhuàn', + 0x2C930: 'huān', + 0x2C9C0: 'qiāng,qiàng', 0x2CA02: 'qí', 0x2CA0E: 'yóu', 0x2CA7D: 'xún', 0x2CAA9: 'nóng', 0x2CB29: 'yì', + 0x2CB2B: 'pī', 0x2CB2D: 'lún', 0x2CB2E: 'chǎng', 0x2CB31: 'jīn', + 0x2CB32: 'pì', 0x2CB38: 'shù', 0x2CB39: 'shén', + 0x2CB3A: 'chú,jǔ', 0x2CB3B: 'lú', 0x2CB3F: 'zhāo', 0x2CB41: 'mǔ', 0x2CB4A: 'dù', 0x2CB4E: 'hóng', - 0x2CB5A: 'chún', + 0x2CB5A: 'chún,duì', 0x2CB5B: 'bō', + 0x2CB63: 'xiàn', 0x2CB64: 'hóu', 0x2CB69: 'wēng', 0x2CB6C: 'wèi,huì', 0x2CB6F: 'piě', + 0x2CB72: 'suǒ', 0x2CB73: 'xǐ', + 0x2CB74: 'jiē', 0x2CB76: 'hēi', 0x2CB78: 'lín', 0x2CB7C: 'suì', + 0x2CBA4: 'gé,hé', 0x2CBB1: 'yīn', 0x2CBBF: 'qí,gài', 0x2CBC0: 'jī', + 0x2CBC5: 'xiá', 0x2CBCE: 'tuí', 0x2CC03: 'mù', 0x2CC56: 'dí', 0x2CC5F: 'wěi', + 0x2CC66: 'qī', 0x2CC9C: 'chēng', 0x2CCF2: 'chǎn', + 0x2CCF3: 'fān', 0x2CCF5: 'pī', 0x2CCF6: 'jiōng', 0x2CCFD: 'shēn', @@ -41478,6 +41551,7 @@ 0x2CD02: 'fēi', 0x2CD03: 'huō', 0x2CD0A: 'lín', + 0x2CD10: 'huān', 0x2CD8B: 'jū', 0x2CD8D: 'tuó', 0x2CD8F: 'wéi', @@ -41488,16 +41562,96 @@ 0x2CDAD: 'jì', 0x2CDAE: 'xǐ', 0x2CDD5: 'bū,bǔ', + 0x2CE05: 'chú', 0x2CE18: 'yǎn', 0x2CE1A: 'yuè', 0x2CE23: 'xiān', 0x2CE26: 'zhuó', 0x2CE2A: 'fán', + 0x2CE31: 'qú', 0x2CE7C: 'xiè', 0x2CE88: 'yǐ', 0x2CE93: 'chǔ', 0x2D016: 'lí', + 0x2D11B: 'jiǎn', + 0x2D546: 'suǒ', + 0x2D613: 'hū', + 0x2D6A6: 'guō', + 0x2D8C7: 'diān', + 0x2D930: 'yú', + 0x2DA86: 'zhuā', + 0x2DC4A: 'hòng', + 0x2DE5C: 'luó', + 0x2E18F: 'lán', + 0x2E261: 'lú', + 0x2E262: 'zhì', + 0x2E264: 'guà', + 0x2E267: 'liǎng', + 0x2E268: 'guā', + 0x2E26A: 'zōu', + 0x2E26B: 'ruí', + 0x2E26C: 'cuì', + 0x2E26F: 'cài', + 0x2E428: 'yīng', + 0x2E502: 'jié', + 0x2E505: 'fù', + 0x2E50A: 'liǎng', + 0x2E581: 'liǎng', + 0x2E5B1: 'xié', + 0x2E64A: 'yǐn', + 0x2E64B: 'dú', + 0x2E774: 'gū', + 0x2E775: 'ér', + 0x2E778: 'chūn', + 0x2E779: 'huán,huàn', + 0x2E77A: 'gé', + 0x2E81E: 'qiāng', + 0x2E8F2: 'gāng', + 0x2E8F3: 'hóng', + 0x2E8F4: 'chán', + 0x2E8F5: 'zhuì', + 0x2E8F6: 'lǜ', + 0x2E8F7: 'jù', + 0x2E932: 'bì', + 0x2E9F4: 'chàng', + 0x2E9F5: 'wěi', + 0x2EA5B: 'bì', + 0x2EAA3: 'zōng', + 0x2EAA5: 'dūn', + 0x2EAC2: 'níng', + 0x2EB1C: 'yì', + 0x2EB1D: 'guì', + 0x2EB1E: 'cān', + 0x2EB1F: 'huò', + 0x2EB20: 'lù', + 0x2EB21: 'huá', + 0x2EB22: 'wēng', + 0x2EB23: 'xián', + 0x2EB24: 'zhēn', + 0x2EB65: 'gōng', + 0x2EB66: 'chén', + 0x2EB68: 'yàn', + 0x2EB6A: 'shuāng', + 0x2EB70: 'gǎng', + 0x2EBD9: 'kè,qiā', 0x2F835: 'huī', + 0x300F7: 'chuàng', + 0x305E3: 'zá', + 0x307D8: 'yàn', + 0x309C9: 'zhì', + 0x30C71: 'cí', + 0x30D5D: 'hé', + 0x30D74: 'chù', + 0x30DE0: 'yí,yì', + 0x30DE5: 'cóng', 0x30EDD: 'biáng', 0x30EDE: 'biáng', + 0x310A8: 'è', + 0x310AF: 'cuì', + 0x310B1: 'kǎn', + 0x310BB: 'qiáo', + 0x310FA: 'tiǎn', + 0x31148: 'bì', + 0x31254: 'jué', + 0x31288: 'yì', } diff --git a/tests/test_others.py b/tests/test_others.py index 9bd3106..754c25b 100644 --- a/tests/test_others.py +++ b/tests/test_others.py @@ -51,6 +51,12 @@ def test_issue_266(): assert lazy_pinyin('呣', style=Style.FINALS, strict=False) == ['m'] +def test_issue_311(): + assert lazy_pinyin('大城', style=Style.TONE2) == ['da4', 'che2ng'] + assert lazy_pinyin('大城市', style=Style.TONE2) == ['da4', 'che2ng', 'shi4'] + assert lazy_pinyin('大城区', style=Style.TONE2) == ['da4', 'che2ng', 'qu1'] + + @mark.parametrize('neutral_tone_with_five', [True, False]) def test_issue_284(neutral_tone_with_five): assert lazy_pinyin('嗯', style=Style.FINALS_TONE3, From de9a03a78aecd04dd6c7de3d67afda86a8de8195 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Mon, 11 Dec 2023 21:38:12 +0800 Subject: [PATCH 2/2] test python 3.12 --- .github/workflows/ci.yml | 2 +- README.rst | 2 +- setup.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee1009b..f22ab17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [windows-2022, ubuntu-22.04] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9"] steps: - uses: actions/checkout@v4 diff --git a/README.rst b/README.rst index 49c598e..a85d544 100644 --- a/README.rst +++ b/README.rst @@ -12,7 +12,7 @@ * GitHub: https://github.com/mozillazg/python-pinyin * License: MIT license * PyPI: https://pypi.org/project/pypinyin -* Python version: 2.7, pypy, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 +* Python version: 2.7, pypy, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 .. contents:: diff --git a/setup.py b/setup.py index 87a1c71..73c5d99 100644 --- a/setup.py +++ b/setup.py @@ -94,6 +94,7 @@ def long_description(): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Utilities',