Skip to content

Commit 7831b44

Browse files
committed
Remove posixrules
posixrules is a deprecated link used to indicate local time in some situations (e.g. when TZ is some POSIX string, not a TZif file). We should not be shipping it.
1 parent 5980c31 commit 7831b44

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2020.1rc0
1+
2020.1rc1

src/tzdata/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IANA versions like 2020a are not valid PEP 440 identifiers; the recommended
22
# way to translate the version is to use YYYY.n where `n` is a 0-based index.
3-
__version__ = "2020.1rc0"
3+
__version__ = "2020.1rc1"
44

55
# This exposes the original IANA version number.
66
IANA_VERSION = "2020a"

src/tzdata/zoneinfo/posixrules

-1.7 KB
Binary file not shown.

tests/test_contents.py

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def test_zone_valid(zone_name):
7777
assert magic == b"TZif"
7878

7979

80+
def test_no_posixrules():
81+
assert not resources.is_resource("tzdata.zoneinfo", "posixrules")
82+
83+
8084
def test_load_zones(subtests):
8185
with resources.open_text("tzdata", "zones") as f:
8286
zones = [z.strip() for z in f]

update.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def load_zonefiles(
8484

8585
# First run the makefile, which does all kinds of other random stuff
8686
subprocess.run(
87-
["make", f"DESTDIR={td}", "ZFLAGS=-b slim", "install"],
87+
["make", f"DESTDIR={td}", "POSIXRULES=", "ZFLAGS=-b slim", "install"],
8888
cwd=base_dir,
8989
check=True,
9090
)

0 commit comments

Comments
 (0)