wwvb 5.0.3__tar.gz → 6.0.1__tar.gz

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.
Files changed (77) hide show
  1. {wwvb-5.0.3 → wwvb-6.0.1}/.github/workflows/test.yml +4 -0
  2. {wwvb-5.0.3 → wwvb-6.0.1}/.pre-commit-config.yaml +1 -1
  3. {wwvb-5.0.3 → wwvb-6.0.1}/Makefile +1 -1
  4. {wwvb-5.0.3/src/wwvb.egg-info → wwvb-6.0.1}/PKG-INFO +1 -1
  5. {wwvb-5.0.3 → wwvb-6.0.1}/pyproject.toml +5 -0
  6. {wwvb-5.0.3 → wwvb-6.0.1}/requirements-dev.txt +1 -1
  7. {wwvb-5.0.3 → wwvb-6.0.1}/src/uwwvb.py +1 -1
  8. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/__init__.py +11 -9
  9. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/__version__.py +2 -2
  10. wwvb-6.0.1/src/wwvb/iersdata.json +1 -0
  11. {wwvb-5.0.3 → wwvb-6.0.1/src/wwvb.egg-info}/PKG-INFO +1 -1
  12. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb.egg-info/SOURCES.txt +0 -3
  13. {wwvb-5.0.3 → wwvb-6.0.1}/test/testcli.py +8 -0
  14. {wwvb-5.0.3 → wwvb-6.0.1}/test/testuwwvb.py +1 -1
  15. {wwvb-5.0.3 → wwvb-6.0.1}/test/testwwvb.py +0 -1
  16. wwvb-5.0.3/.coveragerc +0 -15
  17. wwvb-5.0.3/LICENSES/Apache-2.0.txt +0 -73
  18. wwvb-5.0.3/adafruit_datetime.pyi +0 -416
  19. wwvb-5.0.3/src/wwvb/iersdata.json +0 -1
  20. {wwvb-5.0.3 → wwvb-6.0.1}/.github/workflows/cron.yml +0 -0
  21. {wwvb-5.0.3 → wwvb-6.0.1}/.github/workflows/release.yml +0 -0
  22. {wwvb-5.0.3 → wwvb-6.0.1}/.gitignore +0 -0
  23. {wwvb-5.0.3 → wwvb-6.0.1}/.readthedocs.yaml +0 -0
  24. {wwvb-5.0.3 → wwvb-6.0.1}/LICENSES/CC0-1.0.txt +0 -0
  25. {wwvb-5.0.3 → wwvb-6.0.1}/LICENSES/GPL-3.0-only.txt +0 -0
  26. {wwvb-5.0.3 → wwvb-6.0.1}/LICENSES/Unlicense.txt +0 -0
  27. {wwvb-5.0.3 → wwvb-6.0.1}/README.md +0 -0
  28. {wwvb-5.0.3 → wwvb-6.0.1}/codecov.yml +0 -0
  29. {wwvb-5.0.3 → wwvb-6.0.1}/doc/_static/.empty +0 -0
  30. {wwvb-5.0.3 → wwvb-6.0.1}/doc/conf.py +0 -0
  31. {wwvb-5.0.3 → wwvb-6.0.1}/doc/index.rst +0 -0
  32. {wwvb-5.0.3 → wwvb-6.0.1}/requirements.txt +0 -0
  33. {wwvb-5.0.3 → wwvb-6.0.1}/setup.cfg +0 -0
  34. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/decode.py +0 -0
  35. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/dut1table.py +0 -0
  36. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/gen.py +0 -0
  37. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/iersdata.json.license +0 -0
  38. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/iersdata.py +0 -0
  39. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/py.typed +0 -0
  40. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/tz.py +0 -0
  41. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/updateiers.py +0 -0
  42. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb/wwvbtk.py +0 -0
  43. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb.egg-info/dependency_links.txt +0 -0
  44. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb.egg-info/entry_points.txt +0 -0
  45. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb.egg-info/requires.txt +0 -0
  46. {wwvb-5.0.3 → wwvb-6.0.1}/src/wwvb.egg-info/top_level.txt +0 -0
  47. {wwvb-5.0.3 → wwvb-6.0.1}/test/testdaylight.py +0 -0
  48. {wwvb-5.0.3 → wwvb-6.0.1}/test/testls.py +0 -0
  49. {wwvb-5.0.3 → wwvb-6.0.1}/test/testpm.py +0 -0
  50. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/1998leapsecond +0 -0
  51. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/2012leapsecond +0 -0
  52. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/all-headers +0 -0
  53. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/bar +0 -0
  54. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/both +0 -0
  55. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/cradek +0 -0
  56. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/duration +0 -0
  57. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/enddst-phase +0 -0
  58. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/enddst-phase-2 +0 -0
  59. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/endleapyear +0 -0
  60. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/leapday1 +0 -0
  61. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/leapday28 +0 -0
  62. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/leapday29 +0 -0
  63. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/negleapsecond +0 -0
  64. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/nextdst +0 -0
  65. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/nextst +0 -0
  66. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/nonleapday1 +0 -0
  67. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/nonleapday28 +0 -0
  68. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/phase +0 -0
  69. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/startdst +0 -0
  70. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/startdst-phase +0 -0
  71. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/startdst-phase-2 +0 -0
  72. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/startleapyear +0 -0
  73. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/startst +0 -0
  74. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/y2k +0 -0
  75. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/y2k-1 +0 -0
  76. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/y2k1 +0 -0
  77. {wwvb-5.0.3 → wwvb-6.0.1}/test/wwvbgen_testcases/y2k1-1 +0 -0
@@ -55,6 +55,10 @@ jobs:
55
55
  python -mpip install wheel
56
56
  python -mpip install -r requirements-dev.txt
57
57
 
58
+ - name: Check stubs
59
+ if: (! startsWith(matrix.python-version, 'pypy-'))
60
+ run: make mypy PYTHON=python
61
+
58
62
 
59
63
  test:
60
64
  strategy:
@@ -21,7 +21,7 @@ repos:
21
21
  - id: reuse
22
22
  - repo: https://github.com/astral-sh/ruff-pre-commit
23
23
  # Ruff version.
24
- rev: v0.11.7
24
+ rev: v0.12.4
25
25
  hooks:
26
26
  # Run the linter.
27
27
  - id: ruff
@@ -44,7 +44,7 @@ test_venv:
44
44
 
45
45
  .PHONY: mypy
46
46
  mypy:
47
- $(Q)mypy --strict --no-warn-unused-ignores src
47
+ $(Q)mypy --strict --no-warn-unused-ignores src test
48
48
 
49
49
  .PHONY: update
50
50
  update:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wwvb
3
- Version: 5.0.3
3
+ Version: 6.0.1
4
4
  Summary: Generate WWVB timecodes for any desired time
5
5
  Author-email: Jeff Epler <jepler@gmail.com>
6
6
  Project-URL: Source, https://github.com/jepler/wwvbpy
@@ -48,3 +48,8 @@ dut1table = "wwvb.dut1table:main"
48
48
  updateiers = "wwvb.updateiers:main"
49
49
  [project.gui-scripts]
50
50
  wwvbtk = "wwvb.wwvbtk:main"
51
+ [[tool.mypy.overrides]]
52
+ module = ["adafruit_datetime"]
53
+ follow_untyped_imports = true
54
+ [tool.coverage.report]
55
+ exclude_also=["if TYPE_CHECKING:"]
@@ -5,7 +5,7 @@ adafruit-circuitpython-datetime
5
5
  beautifulsoup4
6
6
  build
7
7
  click
8
- coverage
8
+ coverage >= 7.1.0
9
9
  mypy; implementation_name=="cpython"
10
10
  click>=8.1.5; implementation_name=="cpython"
11
11
  leapseconddata
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # SPDX-License-Identifier: GPL-3.0-only
4
4
 
5
- # ruff: noqa: C405 PYI024 PLR2004 FBT001 FBT002
5
+ # ruff: noqa: C405, PYI024, FBT001, FBT002
6
6
 
7
7
  """Implementation of a WWVB state machine & decoder for resource-constrained systems
8
8
 
@@ -384,6 +384,7 @@ class WWVBMinute(_WWVBMinute):
384
384
  minute: int,
385
385
  dst: DstStatus | int | None = None,
386
386
  ut1: int | None = None,
387
+ *,
387
388
  ls: bool | None = None,
388
389
  ly: bool | None = None,
389
390
  ) -> WWVBMinute:
@@ -659,15 +660,15 @@ class WWVBMinute(_WWVBMinute):
659
660
  else:
660
661
  self._fill_pm_timecode_regular(t)
661
662
 
662
- def next_minute(self, newut1: int | None = None, newls: bool | None = None) -> WWVBMinute:
663
+ def next_minute(self, *, newut1: int | None = None, newls: bool | None = None) -> WWVBMinute:
663
664
  """Return an object representing the next minute"""
664
665
  d = self.as_datetime() + datetime.timedelta(minutes=1)
665
- return self.from_datetime(d, newut1, newls, self)
666
+ return self.from_datetime(d, newut1=newut1, newls=newls, old_time=self)
666
667
 
667
- def previous_minute(self, newut1: int | None = None, newls: bool | None = None) -> WWVBMinute:
668
+ def previous_minute(self, *, newut1: int | None = None, newls: bool | None = None) -> WWVBMinute:
668
669
  """Return an object representing the previous minute"""
669
670
  d = self.as_datetime() - datetime.timedelta(minutes=1)
670
- return self.from_datetime(d, newut1, newls, self)
671
+ return self.from_datetime(d, newut1=newut1, newls=newls, old_time=self)
671
672
 
672
673
  @classmethod
673
674
  def _get_dut1_info(cls: type, year: int, days: int, old_time: WWVBMinute | None = None) -> tuple[int, bool]: # noqa: ARG003
@@ -696,18 +697,19 @@ class WWVBMinute(_WWVBMinute):
696
697
  days = d.pop("days")
697
698
  hour = d.pop("hour")
698
699
  minute = d.pop("minute")
699
- dst: int | None = d.pop("dst", None)
700
- ut1: int | None = d.pop("ut1", None)
700
+ dst = d.pop("dst", None)
701
+ ut1 = d.pop("ut1", None)
701
702
  ls = d.pop("ls", None)
702
703
  d.pop("ly", None)
703
704
  if d:
704
705
  raise ValueError(f"Invalid options: {d}")
705
- return cls(year, days, hour, minute, dst, ut1, None if ls is None else bool(ls))
706
+ return cls(year, days, hour, minute, dst, ut1=ut1, ls=None if ls is None else bool(ls))
706
707
 
707
708
  @classmethod
708
709
  def from_datetime(
709
710
  cls,
710
711
  d: datetime.datetime,
712
+ *,
711
713
  newut1: int | None = None,
712
714
  newls: bool | None = None,
713
715
  old_time: WWVBMinute | None = None,
@@ -760,7 +762,7 @@ class WWVBMinute(_WWVBMinute):
760
762
  dst = t._get_am_bcd(57, 58)
761
763
  if dst is None:
762
764
  return None
763
- return cls(year, days, hour, minute, dst, ut1, ls, ly)
765
+ return cls(year, days, hour, minute, dst, ut1, ls=ls, ly=ly)
764
766
 
765
767
 
766
768
  class WWVBMinuteIERS(WWVBMinute):
@@ -858,7 +860,7 @@ class WWVBTimecode:
858
860
  else:
859
861
  self.am[p] = AmplitudeModulation.ZERO
860
862
 
861
- def _put_pm_bit(self, i: int, v: PhaseModulation | int | bool) -> None:
863
+ def _put_pm_bit(self, i: int, v: PhaseModulation | int) -> None:
862
864
  """Update a bit of the Phase Modulation signal"""
863
865
  self.phase[i] = PhaseModulation(v)
864
866
 
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '5.0.3'
21
- __version_tuple__ = version_tuple = (5, 0, 3)
20
+ __version__ = version = '6.0.1'
21
+ __version_tuple__ = version_tuple = (6, 0, 1)
@@ -0,0 +1 @@
1
+ {"START": "1972-01-01", "OFFSETS_GZ": "H4sIAIYEZWgC/+2aa3LDMAiEL5uHLTuxnN5/pn/aTmfSSiAWhGy+E2SWZQE58zwiH/1YivB/96vMXiIX2Io8CTyIrDSWGqlMRdrpDa6aJFnr0m4wYZkCE2UmSF0V+13vBveStK6JTfQyW3O86HLJf0RvDgy5u4FCI+WVKTsVoUdHzsrRoWRfYHIItZ5EEgu0Beu58EgEpMpO9zf4/s3iNO4y7/hqEwOZIPu3+PuO2T7Ic5E8GxsnZHvUYOtELxW1WP+0yx/caFxpyAooq6lq06UEr+UkLeXOIDPZ6EBrqb5K8Tvu6/B9CdnZqFQL05s2KauWy/IeF/tJGAisjK9MgGyDuUkRq4G1gRE+VjA30uZNPsdantkgMq58QO4fw+sqzj+A2/16mmvnyy9UzDvMktDgKYlnkFeB2rx+wNANG40aA4OgsY03AWoDCVs/XMmkyQ0+0jWaUqPdwA0m/MRuccGjCwirHToWzbcs8P7U1nZZLSYdHapWu5HqVg1YjK2fPEwvPZPzLPUF848tyid2u7dh8B7h+wVQ923Q+kqxZe3JclSSB+YTM3nnHrjgFth/vzgZzw6cbOMYa4bHFPU/DR3mp/ubKM4cgwMnHZW4GFxFprOVcevAKGva6oExn1MOmyGDJQPm0rpU8bjqdOo993O6Xz9ofToZela5vwrWoTn4l4o5CIIaKejCEgSnJv784V6y0/IJeROtycVNAAA="}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wwvb
3
- Version: 5.0.3
3
+ Version: 6.0.1
4
4
  Summary: Generate WWVB timecodes for any desired time
5
5
  Author-email: Jeff Epler <jepler@gmail.com>
6
6
  Project-URL: Source, https://github.com/jepler/wwvbpy
@@ -1,10 +1,8 @@
1
- .coveragerc
2
1
  .gitignore
3
2
  .pre-commit-config.yaml
4
3
  .readthedocs.yaml
5
4
  Makefile
6
5
  README.md
7
- adafruit_datetime.pyi
8
6
  codecov.yml
9
7
  pyproject.toml
10
8
  requirements-dev.txt
@@ -12,7 +10,6 @@ requirements.txt
12
10
  .github/workflows/cron.yml
13
11
  .github/workflows/release.yml
14
12
  .github/workflows/test.yml
15
- LICENSES/Apache-2.0.txt
16
13
  LICENSES/CC0-1.0.txt
17
14
  LICENSES/GPL-3.0-only.txt
18
15
  LICENSES/Unlicense.txt
@@ -14,6 +14,14 @@ import unittest
14
14
  from collections.abc import Sequence
15
15
  from typing import Any
16
16
 
17
+ # These imports must remain, even though the module contents are not used directly!
18
+ import wwvb.dut1table
19
+ import wwvb.gen
20
+
21
+ # The asserts below are to help prevent their removal by a linter.
22
+ assert wwvb.dut1table.__name__ == "wwvb.dut1table"
23
+ assert wwvb.gen.__name__ == "wwvb.gen"
24
+
17
25
  coverage_add = ("-m", "coverage", "run", "--branch", "-p") if "COVERAGE_RUN" in os.environ else ()
18
26
 
19
27
 
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # SPDX-License-Identifier: GPL-3.0-only
6
6
 
7
- # ruff: noqa: N802 D102
7
+ # ruff: noqa: N802
8
8
  import datetime
9
9
  import random
10
10
  import sys
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/python3
2
- # ruff: noqa: E501
3
2
 
4
3
  """Test most wwvblib functionality"""
5
4
 
wwvb-5.0.3/.coveragerc DELETED
@@ -1,15 +0,0 @@
1
- # SPDX-FileCopyrightText: 2021-2024 Jeff Epler
2
- #
3
- # SPDX-License-Identifier: GPL-3.0-only
4
- [report]
5
- exclude_also =
6
- def __repr__
7
- if self.debug:
8
- if settings.DEBUG
9
- raise AssertionError
10
- raise NotImplementedError
11
- if 0:
12
- if __name__ == .__main__.:
13
- if TYPE_CHECKING:
14
- class .*\bProtocol\):
15
- @(abc\.)?abstractmethod
@@ -1,73 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
-
11
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
-
13
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
-
15
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
-
17
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
-
19
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
-
21
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
-
23
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
-
25
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
-
27
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
-
29
- 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
-
31
- 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
-
33
- 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
-
35
- (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
-
37
- (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
-
39
- (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
-
41
- (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
-
43
- You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
-
45
- 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
-
47
- 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
-
49
- 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
-
51
- 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
-
53
- 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
-
55
- END OF TERMS AND CONDITIONS
56
-
57
- APPENDIX: How to apply the Apache License to your work.
58
-
59
- To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
-
61
- Copyright [yyyy] [name of copyright owner]
62
-
63
- Licensed under the Apache License, Version 2.0 (the "License");
64
- you may not use this file except in compliance with the License.
65
- You may obtain a copy of the License at
66
-
67
- http://www.apache.org/licenses/LICENSE-2.0
68
-
69
- Unless required by applicable law or agreed to in writing, software
70
- distributed under the License is distributed on an "AS IS" BASIS,
71
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
- See the License for the specific language governing permissions and
73
- limitations under the License.
@@ -1,416 +0,0 @@
1
- # SPDX-FileCopyrightText: 2015-2021 Jukka Lehtosalo and contributors
2
- # SPDX-FileCopyrightText: 2021-2024 Jeff Epler
3
- #
4
- # SPDX-License-Identifier: Apache-2.0
5
-
6
- # ruff: noqa
7
- import sys
8
- from time import struct_time
9
- from typing import (
10
- AnyStr,
11
- ClassVar,
12
- NamedTuple,
13
- Optional,
14
- SupportsAbs,
15
- Tuple,
16
- Type,
17
- TypeVar,
18
- overload,
19
- )
20
-
21
- _S = TypeVar("_S")
22
-
23
- MINYEAR: int
24
- MAXYEAR: int
25
-
26
- class tzinfo:
27
- def tzname(self, dt: Optional[datetime]) -> Optional[str]: ...
28
- def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
29
- def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
30
- def fromutc(self, dt: datetime) -> datetime: ...
31
-
32
- class timezone(tzinfo):
33
- utc: ClassVar[timezone]
34
- min: ClassVar[timezone]
35
- max: ClassVar[timezone]
36
- def __init__(self, offset: timedelta, name: str = ...) -> None: ...
37
- def __hash__(self) -> int: ...
38
-
39
- class _IsoCalendarDate(NamedTuple):
40
- year: int
41
- week: int
42
- weekday: int
43
-
44
- _tzinfo = tzinfo
45
-
46
- class date:
47
- min: ClassVar[date]
48
- max: ClassVar[date]
49
- resolution: ClassVar[timedelta]
50
- def __new__(cls: Type[_S], year: int, month: int, day: int) -> _S: ...
51
- @classmethod
52
- def fromtimestamp(cls: Type[_S], __timestamp: float) -> _S: ...
53
- @classmethod
54
- def today(cls: Type[_S]) -> _S: ...
55
- @classmethod
56
- def fromordinal(cls: Type[_S], n: int) -> _S: ...
57
- if sys.version_info >= (3, 7):
58
- @classmethod
59
- def fromisoformat(cls: Type[_S], date_string: str) -> _S: ...
60
- if sys.version_info >= (3, 8):
61
- @classmethod
62
- def fromisocalendar(cls: Type[_S], year: int, week: int, day: int) -> _S: ...
63
-
64
- @property
65
- def year(self) -> int: ...
66
- @property
67
- def month(self) -> int: ...
68
- @property
69
- def day(self) -> int: ...
70
- def ctime(self) -> str: ...
71
- def strftime(self, fmt: str) -> str: ...
72
- if sys.version_info >= (3,):
73
- def __format__(self, fmt: str) -> str: ...
74
- else:
75
- def __format__(self, fmt: AnyStr) -> AnyStr: ...
76
-
77
- def isoformat(self) -> str: ...
78
- def timetuple(self) -> struct_time: ...
79
- def toordinal(self) -> int: ...
80
- def replace(self, year: int = ..., month: int = ..., day: int = ...) -> date: ...
81
- def __le__(self, other: date) -> bool: ...
82
- def __lt__(self, other: date) -> bool: ...
83
- def __ge__(self, other: date) -> bool: ...
84
- def __gt__(self, other: date) -> bool: ...
85
- if sys.version_info >= (3, 8):
86
- def __add__(self: _S, other: timedelta) -> _S: ...
87
- def __radd__(self: _S, other: timedelta) -> _S: ...
88
- else:
89
- def __add__(self, other: timedelta) -> date: ...
90
- def __radd__(self, other: timedelta) -> date: ...
91
-
92
- @overload
93
- def __sub__(self, other: timedelta) -> date: ...
94
- @overload
95
- def __sub__(self, other: date) -> timedelta: ...
96
- def __hash__(self) -> int: ...
97
- def weekday(self) -> int: ...
98
- def isoweekday(self) -> int: ...
99
- def isocalendar(self) -> _IsoCalendarDate: ...
100
-
101
- class time:
102
- min: ClassVar[time]
103
- max: ClassVar[time]
104
- resolution: ClassVar[timedelta]
105
-
106
- if sys.version_info >= (3, 6):
107
- def __init__(
108
- self,
109
- hour: int = ...,
110
- minute: int = ...,
111
- second: int = ...,
112
- microsecond: int = ...,
113
- tzinfo: Optional[_tzinfo] = ...,
114
- *,
115
- fold: int = ...,
116
- ) -> None: ...
117
- else:
118
- def __init__(
119
- self,
120
- hour: int = ...,
121
- minute: int = ...,
122
- second: int = ...,
123
- microsecond: int = ...,
124
- tzinfo: Optional[_tzinfo] = ...,
125
- ) -> None: ...
126
-
127
- @property
128
- def hour(self) -> int: ...
129
- @property
130
- def minute(self) -> int: ...
131
- @property
132
- def second(self) -> int: ...
133
- @property
134
- def microsecond(self) -> int: ...
135
- @property
136
- def tzinfo(self) -> Optional[_tzinfo]: ...
137
- if sys.version_info >= (3, 6):
138
- @property
139
- def fold(self) -> int: ...
140
-
141
- def __le__(self, other: time) -> bool: ...
142
- def __lt__(self, other: time) -> bool: ...
143
- def __ge__(self, other: time) -> bool: ...
144
- def __gt__(self, other: time) -> bool: ...
145
- def __hash__(self) -> int: ...
146
- if sys.version_info >= (3, 6):
147
- def isoformat(self, timespec: str = ...) -> str: ...
148
- else:
149
- def isoformat(self) -> str: ...
150
- if sys.version_info >= (3, 7):
151
- @classmethod
152
- def fromisoformat(cls: Type[_S], time_string: str) -> _S: ...
153
-
154
- def strftime(self, fmt: str) -> str: ...
155
- if sys.version_info >= (3,):
156
- def __format__(self, fmt: str) -> str: ...
157
- else:
158
- def __format__(self, fmt: AnyStr) -> AnyStr: ...
159
-
160
- def utcoffset(self) -> Optional[timedelta]: ...
161
- def tzname(self) -> Optional[str]: ...
162
- def dst(self) -> Optional[timedelta]: ...
163
- if sys.version_info >= (3, 6):
164
- def replace(
165
- self,
166
- hour: int = ...,
167
- minute: int = ...,
168
- second: int = ...,
169
- microsecond: int = ...,
170
- tzinfo: Optional[_tzinfo] = ...,
171
- *,
172
- fold: int = ...,
173
- ) -> time: ...
174
- else:
175
- def replace(
176
- self,
177
- hour: int = ...,
178
- minute: int = ...,
179
- second: int = ...,
180
- microsecond: int = ...,
181
- tzinfo: Optional[_tzinfo] = ...,
182
- ) -> time: ...
183
-
184
- _date = date
185
- _time = time
186
-
187
- class timedelta(SupportsAbs["timedelta"]):
188
- min: ClassVar[timedelta]
189
- max: ClassVar[timedelta]
190
- resolution: ClassVar[timedelta]
191
-
192
- if sys.version_info >= (3, 6):
193
- def __init__(
194
- self,
195
- days: float = ...,
196
- seconds: float = ...,
197
- microseconds: float = ...,
198
- milliseconds: float = ...,
199
- minutes: float = ...,
200
- hours: float = ...,
201
- weeks: float = ...,
202
- *,
203
- fold: int = ...,
204
- ) -> None: ...
205
- else:
206
- def __init__(
207
- self,
208
- days: float = ...,
209
- seconds: float = ...,
210
- microseconds: float = ...,
211
- milliseconds: float = ...,
212
- minutes: float = ...,
213
- hours: float = ...,
214
- weeks: float = ...,
215
- ) -> None: ...
216
-
217
- @property
218
- def days(self) -> int: ...
219
- @property
220
- def seconds(self) -> int: ...
221
- @property
222
- def microseconds(self) -> int: ...
223
- def total_seconds(self) -> float: ...
224
- def __add__(self, other: timedelta) -> timedelta: ...
225
- def __radd__(self, other: timedelta) -> timedelta: ...
226
- def __sub__(self, other: timedelta) -> timedelta: ...
227
- def __rsub__(self, other: timedelta) -> timedelta: ...
228
- def __neg__(self) -> timedelta: ...
229
- def __pos__(self) -> timedelta: ...
230
- def __abs__(self) -> timedelta: ...
231
- def __mul__(self, other: float) -> timedelta: ...
232
- def __rmul__(self, other: float) -> timedelta: ...
233
- @overload
234
- def __floordiv__(self, other: timedelta) -> int: ...
235
- @overload
236
- def __floordiv__(self, other: int) -> timedelta: ...
237
- if sys.version_info >= (3,):
238
- @overload
239
- def __truediv__(self, other: timedelta) -> float: ...
240
- @overload
241
- def __truediv__(self, other: float) -> timedelta: ...
242
- def __mod__(self, other: timedelta) -> timedelta: ...
243
- def __divmod__(self, other: timedelta) -> Tuple[int, timedelta]: ...
244
- else:
245
- @overload
246
- def __div__(self, other: timedelta) -> float: ...
247
- @overload
248
- def __div__(self, other: float) -> timedelta: ...
249
-
250
- def __le__(self, other: timedelta) -> bool: ...
251
- def __lt__(self, other: timedelta) -> bool: ...
252
- def __ge__(self, other: timedelta) -> bool: ...
253
- def __gt__(self, other: timedelta) -> bool: ...
254
- def __hash__(self) -> int: ...
255
-
256
- class datetime(date):
257
- min: ClassVar[datetime]
258
- max: ClassVar[datetime]
259
- resolution: ClassVar[timedelta]
260
-
261
- if sys.version_info >= (3, 6):
262
- def __new__(
263
- cls: Type[_S],
264
- year: int,
265
- month: int,
266
- day: int,
267
- hour: int = ...,
268
- minute: int = ...,
269
- second: int = ...,
270
- microsecond: int = ...,
271
- tzinfo: Optional[_tzinfo] = ...,
272
- *,
273
- fold: int = ...,
274
- ) -> _S: ...
275
- else:
276
- def __new__(
277
- cls: Type[_S],
278
- year: int,
279
- month: int,
280
- day: int,
281
- hour: int = ...,
282
- minute: int = ...,
283
- second: int = ...,
284
- microsecond: int = ...,
285
- tzinfo: Optional[_tzinfo] = ...,
286
- ) -> _S: ...
287
-
288
- @property
289
- def year(self) -> int: ...
290
- @property
291
- def month(self) -> int: ...
292
- @property
293
- def day(self) -> int: ...
294
- @property
295
- def hour(self) -> int: ...
296
- @property
297
- def minute(self) -> int: ...
298
- @property
299
- def second(self) -> int: ...
300
- @property
301
- def microsecond(self) -> int: ...
302
- @property
303
- def tzinfo(self) -> Optional[_tzinfo]: ...
304
- if sys.version_info >= (3, 6):
305
- @property
306
- def fold(self) -> int: ...
307
-
308
- @classmethod
309
- def fromtimestamp(cls: Type[_S], t: float, tz: Optional[_tzinfo] = ...) -> _S: ...
310
- @classmethod
311
- def utcfromtimestamp(cls: Type[_S], t: float) -> _S: ...
312
- @classmethod
313
- def today(cls: Type[_S]) -> _S: ...
314
- @classmethod
315
- def fromordinal(cls: Type[_S], n: int) -> _S: ...
316
- if sys.version_info >= (3, 8):
317
- @classmethod
318
- def now(cls: Type[_S], tz: Optional[_tzinfo] = ...) -> _S: ...
319
- else:
320
- @overload
321
- @classmethod
322
- def now(cls: Type[_S], tz: None = ...) -> _S: ...
323
- @overload
324
- @classmethod
325
- def now(cls, tz: _tzinfo) -> datetime: ...
326
-
327
- @classmethod
328
- def utcnow(cls: Type[_S]) -> _S: ...
329
- if sys.version_info >= (3, 6):
330
- @classmethod
331
- def combine(cls, date: _date, time: _time, tzinfo: Optional[_tzinfo] = ...) -> datetime: ...
332
- else:
333
- @classmethod
334
- def combine(cls, date: _date, time: _time) -> datetime: ...
335
- if sys.version_info >= (3, 7):
336
- @classmethod
337
- def fromisoformat(cls: Type[_S], date_string: str) -> _S: ...
338
-
339
- def strftime(self, fmt: str) -> str: ...
340
- if sys.version_info >= (3,):
341
- def __format__(self, fmt: str) -> str: ...
342
- else:
343
- def __format__(self, fmt: AnyStr) -> AnyStr: ...
344
-
345
- def toordinal(self) -> int: ...
346
- def timetuple(self) -> struct_time: ...
347
- if sys.version_info >= (3, 3):
348
- def timestamp(self) -> float: ...
349
-
350
- def utctimetuple(self) -> struct_time: ...
351
- def date(self) -> _date: ...
352
- def time(self) -> _time: ...
353
- def timetz(self) -> _time: ...
354
- if sys.version_info >= (3, 6):
355
- def replace(
356
- self,
357
- year: int = ...,
358
- month: int = ...,
359
- day: int = ...,
360
- hour: int = ...,
361
- minute: int = ...,
362
- second: int = ...,
363
- microsecond: int = ...,
364
- tzinfo: Optional[_tzinfo] = ...,
365
- *,
366
- fold: int = ...,
367
- ) -> datetime: ...
368
- else:
369
- def replace(
370
- self,
371
- year: int = ...,
372
- month: int = ...,
373
- day: int = ...,
374
- hour: int = ...,
375
- minute: int = ...,
376
- second: int = ...,
377
- microsecond: int = ...,
378
- tzinfo: Optional[_tzinfo] = ...,
379
- ) -> datetime: ...
380
- if sys.version_info >= (3, 8):
381
- def astimezone(self: _S, tz: Optional[_tzinfo] = ...) -> _S: ...
382
- elif sys.version_info >= (3, 3):
383
- def astimezone(self, tz: Optional[_tzinfo] = ...) -> datetime: ...
384
- else:
385
- def astimezone(self, tz: _tzinfo) -> datetime: ...
386
-
387
- def ctime(self) -> str: ...
388
- if sys.version_info >= (3, 6):
389
- def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...
390
- else:
391
- def isoformat(self, sep: str = ...) -> str: ...
392
-
393
- @classmethod
394
- def strptime(cls, date_string: str, format: str) -> datetime: ...
395
- def utcoffset(self) -> Optional[timedelta]: ...
396
- def tzname(self) -> Optional[str]: ...
397
- def dst(self) -> Optional[timedelta]: ...
398
- def __le__(self, other: datetime) -> bool: ... # type: ignore
399
- def __lt__(self, other: datetime) -> bool: ... # type: ignore
400
- def __ge__(self, other: datetime) -> bool: ... # type: ignore
401
- def __gt__(self, other: datetime) -> bool: ... # type: ignore
402
- if sys.version_info >= (3, 8):
403
- def __add__(self: _S, other: timedelta) -> _S: ...
404
- def __radd__(self: _S, other: timedelta) -> _S: ...
405
- else:
406
- def __add__(self, other: timedelta) -> datetime: ...
407
- def __radd__(self, other: timedelta) -> datetime: ...
408
-
409
- @overload # type: ignore
410
- def __sub__(self, other: datetime) -> timedelta: ...
411
- @overload
412
- def __sub__(self, other: timedelta) -> datetime: ...
413
- def __hash__(self) -> int: ...
414
- def weekday(self) -> int: ...
415
- def isoweekday(self) -> int: ...
416
- def isocalendar(self) -> _IsoCalendarDate: ...
@@ -1 +0,0 @@
1
- {"START": "1972-01-01", "OFFSETS_GZ": "H4sIAHTtFGgC/+2aa3LDMAiEL5uHLDuxnN5/pn/aTmfSSiAWhGR9J8gsywJylqVHPtqxZuH/7leeI0fKsGd5EngQ2WisJWKegrThDa6aJFnL0u4wYZkCE2UmSF0U+13vCveStC6JTfQyW3O86HLJf0SvDgy5u4FCI+WVKRuy0KMjJeXoULIvMDmEWgeRxAJtwXquPCIBqbLh/gbfv0mcxk3mHV9tYiATZP8W/zgw2wd5LpJnY+WErI8abJ3opaIW6592+YMbjSsNWQFlNVVtuhjhtQzSUh4MEpOdDrSW6qsUv+O+Dt+XkIONSrUwvWmTsmq5LO9xsZ+EgcDK+MIESDaYmxSxGlgbGOFjBXMjbV7lc6zlmQ0i48oH5P4+vK7i/AHc7tfTXDtffqFi3m6WhApPSTyDvArU5vUDhm7YaNQYGASVbbwLUBtI2PrhSiZNbvCRrtGUGu0GbjDhJ3aLCx5dQFjt0LFovmWB96e6tktqMenoULXajVS3asBibP3kYXrpmZxnsS2Yf2xRPrHbvQ2D9wjfL4C6b4PWV4otW0vWUYkeWE5M8M594oLbxP77xcl4NuBkG0dfM3xOUf/T0GF+ur+J5pljcODEUZkXg6vIdLYy7g3oZU3bPNDnc8qwGdJZMmAurUsRj6tOo95zP6fb9YPWp5OuZ5X7q2DrmsG/VCyTyaREnDRhnUxOzfzzhzuJhuMTQw5vlI1NAAA="}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes