Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
main
pyicu
Commits
1ba154b1
Commit
1ba154b1
authored
Oct 29, 2021
by
Andi Vajda
Browse files
preparing release 2.8
parent
c3959f59
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
1ba154b1
Version 2.7.4 ->
--------------------
--
Version 2.7.4 ->
2.8
--------------------
- fixed test failure in test_DateTimeParserGenerator.py with version 70.1rc
- added wrappers for UCurrNameStyle and for ucurr_getName() onto CurrencyUnit
- added support for ICU 70.1
- added FieldPosition-less overloads to RuleBasedNumberFormat.format()
- added pyproject.toml file to (also) build via python -m build
-
Version 2.7.3 -> 2.7.4
----------------------
...
...
setup.py
View file @
1ba154b1
...
...
@@ -8,7 +8,7 @@ except ImportError:
from
distutils.spawn
import
find_executable
VERSION
=
'2.
7.4
'
VERSION
=
'2.
8
'
ICU_MAX_MAJOR_VERSION
=
'70'
# max supported major version of ICU
try
:
...
...
test/test_TimeZone.py
View file @
1ba154b1
...
...
@@ -71,15 +71,15 @@ class TestTimeZone(TestCase):
pytz
=
ICUtzinfo
.
getInstance
(
"Pacific/Fiji"
)
tzr
=
tz
.
getNextTransition
(
datetime
.
datetime
(
202
1
,
4
,
10
,
12
,
43
,
33
,
tzinfo
=
pytz
))
datetime
.
datetime
(
202
0
,
4
,
10
,
12
,
43
,
33
,
tzinfo
=
pytz
))
tzr_time
=
tzr
.
getTime
()
self
.
assertEqual
(
datetime
.
datetime
.
fromtimestamp
(
tzr_time
,
pytz
),
datetime
.
datetime
(
202
1
,
1
1
,
14
,
2
,
0
,
tzinfo
=
pytz
))
datetime
.
datetime
(
202
0
,
1
2
,
20
,
2
,
0
,
tzinfo
=
pytz
))
pytz
=
ICUtzinfo
.
getInstance
(
"America/Los_Angeles"
)
self
.
assertEqual
(
datetime
.
datetime
.
fromtimestamp
(
tzr_time
,
pytz
),
datetime
.
datetime
(
202
1
,
1
1
,
1
3
,
6
,
0
,
tzinfo
=
pytz
))
datetime
.
datetime
(
202
0
,
1
2
,
1
9
,
6
,
0
,
tzinfo
=
pytz
))
if
__name__
==
"__main__"
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment