Skip to content

Commit 88d9c71

Browse files
authored
Merge pull request #33 from pganssle/add_news_parsing
Add news parsing
2 parents 9e7e4f5 + 3364ca2 commit 88d9c71

8 files changed

Lines changed: 393 additions & 11 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: "ubuntu-latest"
3232
strategy:
3333
matrix:
34-
toxenv: ["build", "precommit", "pytype", "docs"]
34+
toxenv: ["build", "precommit", "typing", "docs"]
3535
env:
3636
TOXENV: ${{ matrix.toxenv }}
3737

NEWS.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Version 2020.3
2+
Upstream version 2020c release 2020-10-16T18:15:53+00:00
3+
4+
## Briefly:
5+
6+
Fiji starts DST later than usual, on 2020-12-20.
7+
8+
## Changes to future timestamps
9+
10+
Fiji will start DST on 2020-12-20, instead of 2020-11-08 as previously
11+
predicted. DST will still end on 2021-01-17. (Thanks to Raymond Kumar and Alan
12+
Mintz.) Assume for now that the later-than-usual start date is a one-time
13+
departure from the recent pattern.
14+
15+
---
16+
17+
# Version 2020.2
18+
Upstream version 2020b release 2020-10-07T01:35:04+00:00
19+
20+
## Briefly:
21+
22+
Revised predictions for Morocco's changes starting in 2023. Canada's Yukon
23+
changes to -07 on 2020-11-01, not 2020-03-08. Macquarie Island has stayed in
24+
sync with Tasmania since 2011. Casey, Antarctica is at +08 in winter and +11 in
25+
summer. zic no longer supports -y, nor the TYPE field of Rules.
26+
27+
## Changes to future timestamps
28+
29+
Morocco's spring-forward after Ramadan is now predicted to occur no sooner than
30+
two days after Ramadan, instead of one day. (Thanks to Milamber.) The first
31+
altered prediction is for 2023, now predicted to spring-forward on April 30
32+
instead of April 23.
33+
34+
## Changes to past and future timestamps
35+
36+
Casey Station, Antarctica has been using +08 in winter and +11 in summer since
37+
2018. The most recent transition from +08 to +11 was 2020-10-04 00:01. Also,
38+
Macquarie Island has been staying in sync with Tasmania since 2011. (Thanks to
39+
Steffen Thorsen.)
40+
41+
## Changes to past and future time zone abbreviations and DST flags
42+
43+
Canada's Yukon, represented by America/Whitehorse and America/Dawson, changes
44+
its time zone rules from -08/-07 to permanent -07 on 2020-11-01, not on
45+
2020-03-08 as 2020a had it. This change affects only the time zone abbreviation
46+
(MST vs PDT) and daylight saving flag for the period between the two dates.
47+
(Thanks to Andrew G. Smith.)
48+
49+
## Changes to past timestamps
50+
51+
Correct several transitions for Hungary for 1918/1983. For example, the
52+
1983-09-25 fall-back was at 01:00, not 03:00. (Thanks to Géza Nyáry.) Also, the
53+
1890 transition to standard time was on 11-01, not 10-01 (thanks to Michael
54+
Deckers).
55+
56+
The 1891 French transition was on March 16, not March 15. The 1911-03-11 French
57+
transition was at midnight, not a minute later. Monaco's transitions were on
58+
1892-06-01 and 1911-03-29, not 1891-03-15 and 1911-03-11. (Thanks to Michael
59+
Deckers.)
60+
61+
## Changes to documentation and commentary
62+
63+
The long-obsolete files pacificnew, systemv, and yearistype.sh have been removed
64+
from the distribution. (Thanks to Tim Parenti.)
65+
66+
---
67+
68+
# Version 2020.1
69+
Upstream version 2020a release 2020-04-23T23:03:47+00:00
70+
71+
## Briefly:
72+
73+
Morocco springs forward on 2020-05-31, not 2020-05-24. Canada's Yukon advanced
74+
to -07 year-round on 2020-03-08. America/Nuuk renamed from America/Godthab. zic
75+
now supports expiration dates for leap second lists.
76+
77+
## Changes to future timestamps
78+
79+
Morocco's second spring-forward transition in 2020 will be May 31, not May 24 as
80+
predicted earlier. (Thanks to Semlali Naoufal.) Adjust future-year predictions
81+
to use the first Sunday after the day after Ramadan, not the first Sunday after
82+
Ramadan.
83+
84+
Canada's Yukon, represented by America/Whitehorse and America/Dawson, advanced
85+
to -07 year-round, beginning with its spring-forward transition on 2020-03-08,
86+
and will not fall back on 2020-11-01. Although a government press release calls
87+
this "permanent Pacific Daylight Saving Time", we prefer MST for consistency
88+
with nearby Dawson Creek, Creston, and Fort Nelson. (Thanks to Tim Parenti.)
89+
90+
## Changes to past timestamps
91+
92+
Shanghai observed DST in 1919. (Thanks to Phake Nick.)
93+
94+
## Changes to timezone identifiers
95+
96+
To reflect current usage in English better, America/Godthab has been renamed to
97+
America/Nuuk. A backwards-compatibility link remains for the old name.
98+
99+
## Changes to commentary
100+
101+
The Îles-de-la-Madeleine and the Listuguj reserve are noted as following
102+
America/Halifax, and comments about Yukon's "south" and "north" have been
103+
corrected to say "east" and "west". (Thanks to Jeffery Nichols.)

bump_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import pathlib
44

5-
import parver
5+
import parver # type: ignore
66

77
REPO_ROOT = pathlib.Path(__file__).parent
88
VERSION = REPO_ROOT / pathlib.Path("VERSION")

news.d/2020a.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Version 2020.1
2+
Upstream version 2020a release 2020-04-23T23:03:47+00:00
3+
4+
## Briefly:
5+
6+
Morocco springs forward on 2020-05-31, not 2020-05-24. Canada's Yukon advanced
7+
to -07 year-round on 2020-03-08. America/Nuuk renamed from America/Godthab. zic
8+
now supports expiration dates for leap second lists.
9+
10+
## Changes to future timestamps
11+
12+
Morocco's second spring-forward transition in 2020 will be May 31, not May 24 as
13+
predicted earlier. (Thanks to Semlali Naoufal.) Adjust future-year predictions
14+
to use the first Sunday after the day after Ramadan, not the first Sunday after
15+
Ramadan.
16+
17+
Canada's Yukon, represented by America/Whitehorse and America/Dawson, advanced
18+
to -07 year-round, beginning with its spring-forward transition on 2020-03-08,
19+
and will not fall back on 2020-11-01. Although a government press release calls
20+
this "permanent Pacific Daylight Saving Time", we prefer MST for consistency
21+
with nearby Dawson Creek, Creston, and Fort Nelson. (Thanks to Tim Parenti.)
22+
23+
## Changes to past timestamps
24+
25+
Shanghai observed DST in 1919. (Thanks to Phake Nick.)
26+
27+
## Changes to timezone identifiers
28+
29+
To reflect current usage in English better, America/Godthab has been renamed to
30+
America/Nuuk. A backwards-compatibility link remains for the old name.
31+
32+
## Changes to commentary
33+
34+
The Îles-de-la-Madeleine and the Listuguj reserve are noted as following
35+
America/Halifax, and comments about Yukon's "south" and "north" have been
36+
corrected to say "east" and "west". (Thanks to Jeffery Nichols.)

news.d/2020b.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Version 2020.2
2+
Upstream version 2020b release 2020-10-07T01:35:04+00:00
3+
4+
## Briefly:
5+
6+
Revised predictions for Morocco's changes starting in 2023. Canada's Yukon
7+
changes to -07 on 2020-11-01, not 2020-03-08. Macquarie Island has stayed in
8+
sync with Tasmania since 2011. Casey, Antarctica is at +08 in winter and +11 in
9+
summer. zic no longer supports -y, nor the TYPE field of Rules.
10+
11+
## Changes to future timestamps
12+
13+
Morocco's spring-forward after Ramadan is now predicted to occur no sooner than
14+
two days after Ramadan, instead of one day. (Thanks to Milamber.) The first
15+
altered prediction is for 2023, now predicted to spring-forward on April 30
16+
instead of April 23.
17+
18+
## Changes to past and future timestamps
19+
20+
Casey Station, Antarctica has been using +08 in winter and +11 in summer since
21+
2018. The most recent transition from +08 to +11 was 2020-10-04 00:01. Also,
22+
Macquarie Island has been staying in sync with Tasmania since 2011. (Thanks to
23+
Steffen Thorsen.)
24+
25+
## Changes to past and future time zone abbreviations and DST flags
26+
27+
Canada's Yukon, represented by America/Whitehorse and America/Dawson, changes
28+
its time zone rules from -08/-07 to permanent -07 on 2020-11-01, not on
29+
2020-03-08 as 2020a had it. This change affects only the time zone abbreviation
30+
(MST vs PDT) and daylight saving flag for the period between the two dates.
31+
(Thanks to Andrew G. Smith.)
32+
33+
## Changes to past timestamps
34+
35+
Correct several transitions for Hungary for 1918/1983. For example, the
36+
1983-09-25 fall-back was at 01:00, not 03:00. (Thanks to Géza Nyáry.) Also, the
37+
1890 transition to standard time was on 11-01, not 10-01 (thanks to Michael
38+
Deckers).
39+
40+
The 1891 French transition was on March 16, not March 15. The 1911-03-11 French
41+
transition was at midnight, not a minute later. Monaco's transitions were on
42+
1892-06-01 and 1911-03-29, not 1891-03-15 and 1911-03-11. (Thanks to Michael
43+
Deckers.)
44+
45+
## Changes to documentation and commentary
46+
47+
The long-obsolete files pacificnew, systemv, and yearistype.sh have been removed
48+
from the distribution. (Thanks to Tim Parenti.)

news.d/2020c.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Version 2020.3
2+
Upstream version 2020c release 2020-10-16T18:15:53+00:00
3+
4+
## Briefly:
5+
6+
Fiji starts DST later than usual, on 2020-12-20.
7+
8+
## Changes to future timestamps
9+
10+
Fiji will start DST on 2020-12-20, instead of 2020-11-08 as previously
11+
predicted. DST will still end on 2021-01-17. (Thanks to Raymond Kumar and Alan
12+
Mintz.) Assume for now that the later-than-usual start date is a one-time
13+
departure from the recent pattern.

tox.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ deps =
3838
commands =
3939
python bump_version.py {posargs}
4040

41-
[testenv:pytype]
41+
[testenv:typing]
4242
description = Run typechecking
43-
basepython = python3.7
4443
skip_install = True
4544
deps =
46-
pytype
45+
mypy
4746
parver
4847
commands =
49-
pytype {posargs} update.py
50-
pytype {posargs} bump_version.py
48+
mypy {posargs} update.py
49+
mypy {posargs} bump_version.py
5150

5251
[testenv:format]
5352
description = Run auto formatters

0 commit comments

Comments
 (0)