zope.i18n 5.2__py3-none-any.whl → 6.0__py3-none-any.whl

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.
zope/i18n/format.py CHANGED
@@ -185,7 +185,7 @@ class DateTimeFormat:
185
185
  datetime.datetime.combine(
186
186
  datetime.date.today(),
187
187
  datetime.time(*[e or 0 for e in ordered[3:]]))
188
- ).timetz()
188
+ ).timetz()
189
189
  return datetime.time(
190
190
  *[e or 0 for e in ordered[3:]], **{'tzinfo': tzinfo}
191
191
  )
@@ -52,7 +52,7 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
52
52
  config.ALLOWED_LANGUAGES = self.allowed
53
53
 
54
54
  def testRegisterTranslations(self):
55
- self.assertTrue(queryUtility(ITranslationDomain) is None)
55
+ self.assertIsNone(queryUtility(ITranslationDomain))
56
56
  xmlconfig.string(
57
57
  template % '''
58
58
  <configure package="zope.i18n.tests">
@@ -66,7 +66,7 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
66
66
  self.assertEqual(util._catalogs.get('en'), [str(path)])
67
67
 
68
68
  def testAllowedTranslations(self):
69
- self.assertTrue(queryUtility(ITranslationDomain) is None)
69
+ self.assertIsNone(queryUtility(ITranslationDomain))
70
70
  config.ALLOWED_LANGUAGES = ('de', 'fr')
71
71
  xmlconfig.string(
72
72
  template % '''
@@ -81,7 +81,7 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
81
81
  {'test': ['test'], 'de': [str(path)]})
82
82
 
83
83
  def testRegisterDistributedTranslations(self):
84
- self.assertTrue(queryUtility(ITranslationDomain, 'zope-i18n') is None)
84
+ self.assertIsNone(queryUtility(ITranslationDomain, 'zope-i18n'))
85
85
  xmlconfig.string(
86
86
  template % '''
87
87
  <configure package="zope.i18n.tests">
@@ -114,7 +114,7 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
114
114
 
115
115
  def testRegisterAndCompileTranslations(self):
116
116
  config.COMPILE_MO_FILES = True
117
- self.assertTrue(queryUtility(ITranslationDomain) is None)
117
+ self.assertIsNone(queryUtility(ITranslationDomain))
118
118
 
119
119
  # Copy an old and outdated file over, so we can test if the
120
120
  # newer file check works
@@ -151,8 +151,8 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
151
151
  os.utime(path, (path_atime, path_mtime))
152
152
 
153
153
  def testRegisterTranslationsForDomain(self):
154
- self.assertTrue(queryUtility(ITranslationDomain, 'zope-i18n') is None)
155
- self.assertTrue(queryUtility(ITranslationDomain, 'zope-i18n2') is None)
154
+ self.assertIsNone(queryUtility(ITranslationDomain, 'zope-i18n'))
155
+ self.assertIsNone(queryUtility(ITranslationDomain, 'zope-i18n2'))
156
156
  xmlconfig.string(
157
157
  template % '''
158
158
  <configure package="zope.i18n.tests">
@@ -166,7 +166,7 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase):
166
166
  self.assertEqual(util._catalogs,
167
167
  {'test': ['test'], 'en': [str(path)]})
168
168
 
169
- self.assertTrue(queryUtility(ITranslationDomain, 'zope-i18n2') is None)
169
+ self.assertIsNone(queryUtility(ITranslationDomain, 'zope-i18n2'))
170
170
 
171
171
 
172
172
  def test_suite():
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: zope.i18n
3
- Version: 5.2
3
+ Version: 6.0
4
4
  Summary: Zope Internationalization Support
5
5
  Home-page: https://github.com/zopefoundation/zope.i18n
6
6
  Author: Zope Foundation and Contributors
7
7
  Author-email: zope-dev@zope.dev
8
- License: ZPL 2.1
8
+ License: ZPL-2.1
9
9
  Keywords: zope3 internationalization localization i18n l10n gettext ICU locale
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Web Environment
@@ -13,41 +13,53 @@ Classifier: Intended Audience :: Developers
13
13
  Classifier: License :: OSI Approved :: Zope Public License
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Classifier: Natural Language :: English
24
24
  Classifier: Operating System :: OS Independent
25
25
  Classifier: Topic :: Internet :: WWW/HTTP
26
26
  Classifier: Framework :: Zope :: 3
27
- Requires-Python: >=3.8
27
+ Requires-Python: >=3.9
28
28
  License-File: LICENSE.txt
29
29
  Requires-Dist: setuptools
30
30
  Requires-Dist: python-gettext
31
31
  Requires-Dist: pytz
32
32
  Requires-Dist: zope.deprecation
33
33
  Requires-Dist: zope.schema
34
- Requires-Dist: zope.i18nmessageid >=4.3
34
+ Requires-Dist: zope.i18nmessageid>=4.3
35
35
  Requires-Dist: zope.component
36
- Provides-Extra: compile
37
- Provides-Extra: docs
38
- Requires-Dist: Sphinx ; extra == 'docs'
39
- Requires-Dist: repoze.sphinx.autointerface ; extra == 'docs'
40
36
  Provides-Extra: test
41
- Requires-Dist: zope.component[zcml] ; extra == 'test'
42
- Requires-Dist: zope.configuration ; extra == 'test'
43
- Requires-Dist: zope.security ; extra == 'test'
44
- Requires-Dist: zope.publisher ; extra == 'test'
45
- Requires-Dist: zope.testing ; extra == 'test'
46
- Requires-Dist: zope.testrunner ; extra == 'test'
37
+ Requires-Dist: zope.component[zcml]; extra == "test"
38
+ Requires-Dist: zope.configuration; extra == "test"
39
+ Requires-Dist: zope.security; extra == "test"
40
+ Requires-Dist: zope.publisher; extra == "test"
41
+ Requires-Dist: zope.testing; extra == "test"
42
+ Requires-Dist: zope.testrunner>=6.4; extra == "test"
43
+ Provides-Extra: compile
47
44
  Provides-Extra: zcml
48
- Requires-Dist: zope.component[zcml] ; extra == 'zcml'
49
- Requires-Dist: zope.configuration ; extra == 'zcml'
50
- Requires-Dist: zope.security ; extra == 'zcml'
45
+ Requires-Dist: zope.component[zcml]; extra == "zcml"
46
+ Requires-Dist: zope.configuration; extra == "zcml"
47
+ Requires-Dist: zope.security; extra == "zcml"
48
+ Provides-Extra: docs
49
+ Requires-Dist: Sphinx; extra == "docs"
50
+ Requires-Dist: repoze.sphinx.autointerface; extra == "docs"
51
+ Dynamic: author
52
+ Dynamic: author-email
53
+ Dynamic: classifier
54
+ Dynamic: description
55
+ Dynamic: home-page
56
+ Dynamic: keywords
57
+ Dynamic: license
58
+ Dynamic: license-file
59
+ Dynamic: provides-extra
60
+ Dynamic: requires-dist
61
+ Dynamic: requires-python
62
+ Dynamic: summary
51
63
 
52
64
  zope.i18n
53
65
  =========
@@ -88,6 +100,20 @@ localization.
88
100
  CHANGES
89
101
  =========
90
102
 
103
+ 6.0 (2025-09-12)
104
+ ================
105
+
106
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
107
+
108
+
109
+ 5.3 (2025-07-23)
110
+ ================
111
+
112
+ - Add support for Python 3.13.
113
+
114
+ - Drop support for Python 3.8.
115
+
116
+
91
117
  5.2 (2024-09-27)
92
118
  ================
93
119
 
@@ -1,9 +1,8 @@
1
- zope.i18n-5.2-py3.11-nspkg.pth,sha256=SWEVH-jEWsKYrL0qoC6GBJaStx_iKxGoAY9PQycFVC4,529
2
1
  zope/i18n/__init__.py,sha256=NMpvR4IsTXy_OficD1vx2eR6yzJMWRaONWmMibaX-l8,7514
3
2
  zope/i18n/compile.py,sha256=0kpclbhChlZQIbfTctPp4Cqc2F5RqEcR7jquLnkcLh4,1429
4
3
  zope/i18n/config.py,sha256=20aYlJ4eg-2iuSXHDRqXkkzALDa4URhRchKvFPH9Y6I,1669
5
4
  zope/i18n/configure.zcml,sha256=oebDJrOzCVDc6U957WVABZiA4GpG061rEHil-9lJ_Uc,278
6
- zope/i18n/format.py,sha256=Y69ArTTdfYKlqsR_mQmHMbSrqgiFgi3NwoLnusILtRM,34945
5
+ zope/i18n/format.py,sha256=j2HFlXVC10c4_woTlqv-wTHRpUrYMsU7NHkuA3WPGF4,34941
7
6
  zope/i18n/gettextmessagecatalog.py,sha256=kyGa_Y4X2_EY6X3viIvz3GuLOVZvk_vSAFEAb0SMOgM,3726
8
7
  zope/i18n/i18nobject.txt,sha256=mi5UD13ZvBxNLSNGvPMVy1We2rFCMpuF1fTJnl9Rc8I,3074
9
8
  zope/i18n/meta.zcml,sha256=ymIRohOID745zvv_jCCRUOkrvRMeOOx_umKSS_0EtME,396
@@ -326,7 +325,7 @@ zope/i18n/tests/test_plurals.py,sha256=RpVI5MmYJu47cxV4wr-YRs4UhatP17ITq-Glf_0bB
326
325
  zope/i18n/tests/test_simpletranslationdomain.py,sha256=JK0-yjKb2tvOGw8DrlcE0fG0aBdAf849jerUHROktEc,1409
327
326
  zope/i18n/tests/test_testmessagecatalog.py,sha256=lJdxoaqwXyAdpkUVtL9iO2vKrU8gfrq1OHQF11dmOk0,783
328
327
  zope/i18n/tests/test_translationdomain.py,sha256=Mp7ZJ8d02xyBjaRyuJAkqalG89XdaHKNpZScVliFZFI,12084
329
- zope/i18n/tests/test_zcml.py,sha256=zRH5g0WCTzD0l0hlU_0is51vwqBY3QoTDMeZlnMvLhY,7055
328
+ zope/i18n/tests/test_zcml.py,sha256=hfBW9gHgX7euDyPhmnZKzWt0o6uWCe5JAXykJ2__lSw,7013
330
329
  zope/i18n/tests/testi18nawareobject.py,sha256=MxG1mOYvcB5-pI_lHjdG3trQlW6A_aRA3wQsExqGpRE,3218
331
330
  zope/i18n/tests/locale/de/LC_MESSAGES/zope-i18n.mo,sha256=hvyVplTpEPj_Du85TmnqGTV5t0GqPO04A7NdBy15BLs,277
332
331
  zope/i18n/tests/locale/de/LC_MESSAGES/zope-i18n.po,sha256=4H0LHuWcXybGArSmIXF3cKckfMjmViT9Cet8r4FB6do,276
@@ -356,9 +355,8 @@ zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n.mo,sha256=8yHbDhd1pX_kC8c4gUoqb
356
355
  zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n.po,sha256=93dkAV6YWB1n31wDtAzlIHln-9StXSkLNzcbGMoO8VY,294
357
356
  zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n2.mo,sha256=_1PrSjMzwuIv6-vsT7_EQmphH4QTLIj9ltK98C_bbKo,291
358
357
  zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n2.po,sha256=5q-1okvFJffR926Z4NUiz6EmEbTp8lR0iM-OckZ8R3k,290
359
- zope.i18n-5.2.dist-info/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
360
- zope.i18n-5.2.dist-info/METADATA,sha256=OROtwLLZwNd4EsPvzLpjdsqkwfTQLgO0pfDdiwhyIuA,14162
361
- zope.i18n-5.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
362
- zope.i18n-5.2.dist-info/namespace_packages.txt,sha256=QpUHvpO4wIuZDeEgKY8qZCtD-tAukB0fn_f6utzlb98,5
363
- zope.i18n-5.2.dist-info/top_level.txt,sha256=QpUHvpO4wIuZDeEgKY8qZCtD-tAukB0fn_f6utzlb98,5
364
- zope.i18n-5.2.dist-info/RECORD,,
358
+ zope_i18n-6.0.dist-info/licenses/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
359
+ zope_i18n-6.0.dist-info/METADATA,sha256=id7IrmDV_bcApaaw5FiHxfdIMohcMQ31VbfOKniQEXI,14606
360
+ zope_i18n-6.0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
361
+ zope_i18n-6.0.dist-info/top_level.txt,sha256=QpUHvpO4wIuZDeEgKY8qZCtD-tAukB0fn_f6utzlb98,5
362
+ zope_i18n-6.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (78.1.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1 +0,0 @@
1
- import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('zope',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('zope', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('zope', [os.path.dirname(p)])));m = m or sys.modules.setdefault('zope', types.ModuleType('zope'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
@@ -1 +0,0 @@
1
- zope