wwvb 4.0.0a0__tar.gz → 4.1.0a0__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 (93) hide show
  1. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/.github/workflows/release.yml +4 -9
  2. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/.github/workflows/test.yml +11 -32
  3. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/.gitignore +5 -7
  4. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/.pre-commit-config.yaml +2 -2
  5. wwvb-4.1.0a0/.pylintrc +9 -0
  6. wwvb-4.1.0a0/.readthedocs.yaml +17 -0
  7. wwvb-4.1.0a0/LICENSES/Unlicense.txt +10 -0
  8. wwvb-4.1.0a0/Makefile +47 -0
  9. wwvb-4.1.0a0/PKG-INFO +60 -0
  10. wwvb-4.1.0a0/README.md +41 -0
  11. {wwvb-4.0.0a0 → wwvb-4.1.0a0/docs}/conf.py +18 -29
  12. wwvb-4.1.0a0/docs/index.rst +22 -0
  13. wwvb-4.1.0a0/leapseconddata/__init__.py +342 -0
  14. wwvb-4.1.0a0/leapseconddata/__main__.py +169 -0
  15. {wwvb-4.0.0a0/src/wwvb → wwvb-4.1.0a0/leapseconddata}/__version__.py +2 -2
  16. wwvb-4.1.0a0/pyproject.toml +44 -0
  17. wwvb-4.1.0a0/requirements-dev.txt +14 -0
  18. wwvb-4.1.0a0/setup.cfg +4 -0
  19. wwvb-4.1.0a0/testleapseconddata.py +124 -0
  20. wwvb-4.1.0a0/wwvb.egg-info/PKG-INFO +60 -0
  21. wwvb-4.1.0a0/wwvb.egg-info/SOURCES.txt +29 -0
  22. wwvb-4.1.0a0/wwvb.egg-info/entry_points.txt +2 -0
  23. wwvb-4.1.0a0/wwvb.egg-info/requires.txt +1 -0
  24. wwvb-4.1.0a0/wwvb.egg-info/top_level.txt +1 -0
  25. wwvb-4.0.0a0/.github/workflows/codeql.yml +0 -48
  26. wwvb-4.0.0a0/.github/workflows/cron.yml +0 -44
  27. wwvb-4.0.0a0/.pylintrc +0 -20
  28. wwvb-4.0.0a0/LICENSES/Apache-2.0.txt +0 -73
  29. wwvb-4.0.0a0/LICENSES/Unlicense.txt +0 -22
  30. wwvb-4.0.0a0/Makefile +0 -64
  31. wwvb-4.0.0a0/PKG-INFO +0 -199
  32. wwvb-4.0.0a0/README.md +0 -174
  33. wwvb-4.0.0a0/adafruit_datetime.pyi +0 -415
  34. wwvb-4.0.0a0/index.rst +0 -31
  35. wwvb-4.0.0a0/pyproject.toml +0 -25
  36. wwvb-4.0.0a0/requirements-dev.txt +0 -25
  37. wwvb-4.0.0a0/setup.cfg +0 -49
  38. wwvb-4.0.0a0/src/uwwvb.py +0 -193
  39. wwvb-4.0.0a0/src/wwvb/__init__.py +0 -935
  40. wwvb-4.0.0a0/src/wwvb/decode.py +0 -90
  41. wwvb-4.0.0a0/src/wwvb/dut1table.py +0 -32
  42. wwvb-4.0.0a0/src/wwvb/gen.py +0 -128
  43. wwvb-4.0.0a0/src/wwvb/iersdata.py +0 -28
  44. wwvb-4.0.0a0/src/wwvb/iersdata_dist.py +0 -38
  45. wwvb-4.0.0a0/src/wwvb/testcli.py +0 -291
  46. wwvb-4.0.0a0/src/wwvb/testdaylight.py +0 -60
  47. wwvb-4.0.0a0/src/wwvb/testls.py +0 -63
  48. wwvb-4.0.0a0/src/wwvb/testpm.py +0 -33
  49. wwvb-4.0.0a0/src/wwvb/testuwwvb.py +0 -221
  50. wwvb-4.0.0a0/src/wwvb/testwwvb.py +0 -403
  51. wwvb-4.0.0a0/src/wwvb/tz.py +0 -13
  52. wwvb-4.0.0a0/src/wwvb/updateiers.py +0 -199
  53. wwvb-4.0.0a0/src/wwvb/wwvbtk.py +0 -144
  54. wwvb-4.0.0a0/src/wwvb.egg-info/PKG-INFO +0 -199
  55. wwvb-4.0.0a0/src/wwvb.egg-info/SOURCES.txt +0 -74
  56. wwvb-4.0.0a0/src/wwvb.egg-info/entry_points.txt +0 -8
  57. wwvb-4.0.0a0/src/wwvb.egg-info/requires.txt +0 -7
  58. wwvb-4.0.0a0/src/wwvb.egg-info/top_level.txt +0 -2
  59. wwvb-4.0.0a0/tests/1998leapsecond +0 -12
  60. wwvb-4.0.0a0/tests/2012leapsecond +0 -8
  61. wwvb-4.0.0a0/tests/all-headers +0 -33
  62. wwvb-4.0.0a0/tests/bar +0 -15
  63. wwvb-4.0.0a0/tests/both +0 -35
  64. wwvb-4.0.0a0/tests/cradek +0 -15
  65. wwvb-4.0.0a0/tests/duration +0 -15
  66. wwvb-4.0.0a0/tests/enddst-phase +0 -15
  67. wwvb-4.0.0a0/tests/enddst-phase-2 +0 -15
  68. wwvb-4.0.0a0/tests/endleapyear +0 -9
  69. wwvb-4.0.0a0/tests/leapday1 +0 -8
  70. wwvb-4.0.0a0/tests/leapday28 +0 -8
  71. wwvb-4.0.0a0/tests/leapday29 +0 -8
  72. wwvb-4.0.0a0/tests/negleapsecond +0 -12
  73. wwvb-4.0.0a0/tests/nextdst +0 -10
  74. wwvb-4.0.0a0/tests/nextst +0 -10
  75. wwvb-4.0.0a0/tests/nonleapday1 +0 -8
  76. wwvb-4.0.0a0/tests/nonleapday28 +0 -8
  77. wwvb-4.0.0a0/tests/phase +0 -15
  78. wwvb-4.0.0a0/tests/startdst +0 -10
  79. wwvb-4.0.0a0/tests/startdst-phase +0 -15
  80. wwvb-4.0.0a0/tests/startdst-phase-2 +0 -15
  81. wwvb-4.0.0a0/tests/startleapyear +0 -9
  82. wwvb-4.0.0a0/tests/startst +0 -10
  83. wwvb-4.0.0a0/tests/y2k +0 -15
  84. wwvb-4.0.0a0/tests/y2k-1 +0 -15
  85. wwvb-4.0.0a0/tests/y2k1 +0 -11
  86. wwvb-4.0.0a0/tests/y2k1-1 +0 -11
  87. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/.coveragerc +0 -0
  88. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/LICENSES/CC0-1.0.txt +0 -0
  89. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/LICENSES/GPL-3.0-only.txt +0 -0
  90. {wwvb-4.0.0a0 → wwvb-4.1.0a0}/codecov.yml +0 -0
  91. {wwvb-4.0.0a0 → wwvb-4.1.0a0/docs}/_static/.empty +0 -0
  92. {wwvb-4.0.0a0/src/wwvb → wwvb-4.1.0a0/leapseconddata}/py.typed +0 -0
  93. {wwvb-4.0.0a0/src → wwvb-4.1.0a0}/wwvb.egg-info/dependency_links.txt +0 -0
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # SPDX-License-Identifier: CC0-1.0
4
4
 
5
- name: Release wwvbgen
5
+ name: Release leapseconddata
6
6
 
7
7
  on:
8
8
  release:
@@ -11,7 +11,7 @@ on:
11
11
  jobs:
12
12
  release:
13
13
 
14
- runs-on: ubuntu-20.04
14
+ runs-on: ubuntu-latest
15
15
  steps:
16
16
  - name: Dump GitHub context
17
17
  env:
@@ -23,15 +23,10 @@ jobs:
23
23
  - name: Set up Python
24
24
  uses: actions/setup-python@v5
25
25
  with:
26
- python-version: 3.9
26
+ python-version: "3.x"
27
27
 
28
28
  - name: Install deps
29
- run: |
30
- python -mpip install wheel
31
- python -mpip install -r requirements-dev.txt
32
-
33
- - name: Test
34
- run: make coverage
29
+ run: python -mpip install -r requirements-dev.txt
35
30
 
36
31
  - name: Build release
37
32
  run: python -mbuild
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # SPDX-License-Identifier: CC0-1.0
4
4
 
5
- name: Test wwvbgen
5
+ name: Test leapseconddata
6
6
 
7
7
  on:
8
8
  push:
@@ -19,7 +19,7 @@ jobs:
19
19
  - name: Set up Python
20
20
  uses: actions/setup-python@v5
21
21
  with:
22
- python-version: '3.12'
22
+ python-version: '3.10'
23
23
 
24
24
  - uses: actions/checkout@v4
25
25
 
@@ -31,7 +31,6 @@ jobs:
31
31
 
32
32
  test:
33
33
  strategy:
34
- fail-fast: false
35
34
  matrix:
36
35
  python-version:
37
36
  - '3.9'
@@ -39,21 +38,17 @@ jobs:
39
38
  - '3.11'
40
39
  - '3.12'
41
40
  - '3.13.0-alpha.0 - 3.13'
41
+ - 'pypy-3.9'
42
42
  os-version:
43
43
  - 'ubuntu-latest'
44
- coverage-core:
45
- - 'ctrace'
46
44
  include:
47
45
  - os-version: 'macos-latest'
48
46
  python-version: '3.x'
49
47
  - os-version: 'windows-latest'
50
48
  python-version: '3.x'
51
- - os-version: 'ubuntu-latest'
52
- python-version: '3.12'
53
- coverage-core: 'sysmon'
54
- - os-version: 'ubuntu-latest'
55
- python-version: 'pypy-3.10'
56
- coverage-core: 'pytrace'
49
+
50
+ env:
51
+ PYTHON: ${{ matrix.python-version }}
57
52
 
58
53
  runs-on: ${{ matrix.os-version }}
59
54
  steps:
@@ -65,33 +60,17 @@ jobs:
65
60
  python-version: ${{ matrix.python-version }}
66
61
 
67
62
  - name: Install deps
68
- run: |
69
- python -mpip install wheel
70
- python -mpip install -r requirements-dev.txt
63
+ run: python -mpip install -r requirements-dev.txt
71
64
 
72
65
  - name: Check stubs
73
- if: (! startsWith(matrix.python-version, 'pypy-'))
74
- run: make mypy PYTHON=python
66
+ if: (startsWith(matrix.python-version, '3.12') && startswith(matrix.os-version, 'ubuntu-'))
67
+ run: make mypy
75
68
 
76
69
  - name: Test
77
- run: make coverage PYTHON=python COVERAGE_CORE=${{ matrix.coverage-core }}
78
-
79
- - name: Upload Coverage as artifact
80
- if: always()
81
- uses: actions/upload-artifact@v4
82
- with:
83
- name: coverage for ${{ matrix.python-version }} on ${{ matrix.os-version }} ${{ matrix.coverage-core }}
84
- path: coverage.xml
70
+ run: python -mcoverage run --branch -m unittest testleapseconddata.py && python -mcoverage report --fail-under=100 && python -mcoverage xml
85
71
 
86
72
  pre-commit:
87
73
  runs-on: ubuntu-latest
88
74
  steps:
89
75
  - uses: actions/checkout@v4
90
-
91
- - name: Set up Python
92
- uses: actions/setup-python@v5
93
- with:
94
- python-version: '3.x'
95
-
96
- - name: pre-commit
97
- run: pip install pre-commit && pre-commit run --all
76
+ - uses: pre-commit/action@v3.0.1
@@ -2,15 +2,13 @@
2
2
  #
3
3
  # SPDX-License-Identifier: CC0-1.0
4
4
 
5
- *,cover
6
- *.egg-info
7
- /.coverage*
8
- /.reuse
9
5
  /build
10
6
  /_build
11
- /coverage.xml
7
+ /.coverage
12
8
  /dist
13
- /finals2000A.all.csv
9
+ /*.egg-info
14
10
  /htmlcov
15
- /src/wwvb/__version__.py
16
11
  __pycache__
12
+ *,cover
13
+ /.reuse
14
+ __version__.py
@@ -15,12 +15,12 @@ repos:
15
15
  - id: trailing-whitespace
16
16
  exclude: tests
17
17
  - repo: https://github.com/fsfe/reuse-tool
18
- rev: v4.0.3
18
+ rev: v3.0.2
19
19
  hooks:
20
20
  - id: reuse
21
21
  - repo: https://github.com/astral-sh/ruff-pre-commit
22
22
  # Ruff version.
23
- rev: v0.5.1
23
+ rev: v0.4.3
24
24
  hooks:
25
25
  # Run the linter.
26
26
  - id: ruff
wwvb-4.1.0a0/.pylintrc ADDED
@@ -0,0 +1,9 @@
1
+ #SPDX-FileCopyrightText: 2021 Jeff Epler
2
+ #
3
+ #SPDX-License-Identifier: GPL-3.0-only
4
+ [MESSAGES CONTROL]
5
+ disable=duplicate-code,line-too-long
6
+
7
+ [BASIC]
8
+ argument-rgx=[a-z][a-z0-9_]*
9
+ variable-naming-style=any
@@ -0,0 +1,17 @@
1
+ # SPDX-FileCopyrightText: 2024 Jeff Epler
2
+ #
3
+ # SPDX-License-Identifier: GPL-3.0-only
4
+
5
+ version: 2
6
+
7
+ build:
8
+ os: ubuntu-lts-latest
9
+ tools:
10
+ python: "3"
11
+
12
+ sphinx:
13
+ configuration: docs/conf.py
14
+
15
+ python:
16
+ install:
17
+ - requirements: requirements-dev.txt
@@ -0,0 +1,10 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
4
+
5
+ In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and
6
+ successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+
10
+ For more information, please refer to <http://unlicense.org/>
wwvb-4.1.0a0/Makefile ADDED
@@ -0,0 +1,47 @@
1
+ VENV_BIN = _env/bin
2
+ VENV_PYTHON = $(VENV_BIN)/python3
3
+
4
+ .PHONY: all
5
+ all: coverage mypy
6
+
7
+ COVERAGE_INCLUDE=--omit '/usr/**/*.py'
8
+ .PHONY: coverage
9
+ coverage: $(VENV_PYTHON)
10
+ $(VENV_PYTHON) -mcoverage run --branch -m unittest testleapseconddata.py
11
+ $(VENV_PYTHON) -mcoverage html $(COVERAGE_INCLUDE)
12
+ $(VENV_PYTHON) -mcoverage report $(COVERAGE_INCLUDE) --fail-under=100
13
+
14
+ .PHONY: mypy
15
+ mypy: $(VENV_PYTHON)
16
+ $(VENV_BIN)/mypy --strict leapseconddata testleapseconddata.py
17
+
18
+ # Minimal makefile for Sphinx documentation
19
+ #
20
+
21
+ # You can set these variables from the command line, and also
22
+ # from the environment for the first two.
23
+ SPHINXOPTS ?= -a -E -j auto
24
+ SPHINXBUILD ?= sphinx-build
25
+ SOURCEDIR = docs
26
+ BUILDDIR = _build
27
+
28
+ # Put it first so that "make" without argument is like "make help".
29
+ .PHONY: help
30
+ help:
31
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
32
+
33
+
34
+ # Route particular targets to Sphinx using the new
35
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
36
+ .PHONY: html
37
+ html: $(VENV_PYTHON)
38
+ @$(VENV_PYHTON) $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
39
+
40
+ $(VENV_PYTHON):
41
+ python -mvenv _env
42
+ _env/bin/pip install -r requirements-dev.txt
43
+
44
+ # Copyright (C) 2021 Jeff Epler <jepler@gmail.com>
45
+ # SPDX-FileCopyrightText: 2021 Jeff Epler
46
+ #
47
+ # SPDX-License-Identifier: GPL-3.0-only
wwvb-4.1.0a0/PKG-INFO ADDED
@@ -0,0 +1,60 @@
1
+ Metadata-Version: 2.1
2
+ Name: wwvb
3
+ Version: 4.1.0a0
4
+ Summary: Use the list of known and scheduled leap seconds
5
+ Author-email: Jeff Epler <jepler@gmail.com>
6
+ Project-URL: Source, https://github.com/jepler/leapseconddata
7
+ Project-URL: Documentation, https://leapseconddata.readthedocs.io/en/latest/
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
13
+ Classifier: Programming Language :: Python :: Implementation :: CPython
14
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Python: >=3.9
17
+ Description-Content-Type: text/markdown
18
+ Requires-Dist: click
19
+
20
+ <!--
21
+ SPDX-FileCopyrightText: 2021 Jeff Epler
22
+
23
+ SPDX-License-Identifier: GPL-3.0-only
24
+ -->
25
+ [![Test leapseconddata](https://github.com/jepler/leapseconddata/actions/workflows/test.yml/badge.svg)](https://github.com/jepler/leapseconddata/actions/workflows/test.yml)
26
+ [![PyPI](https://img.shields.io/pypi/v/leapseconddata)](https://pypi.org/project/leapseconddata)
27
+ [![Documentation Status](https://readthedocs.org/projects/leapseconddata/badge/?version=latest)](https://leapseconddata.readthedocs.io/en/latest/?badge=latest)
28
+
29
+ # Python Leap Second List
30
+
31
+ Leap seconds are corrections applied irregularly so that the UTC day stays
32
+ fixed to the earth's rotation.
33
+
34
+ This module provides a class for parsing and validating the standard
35
+ `leap-seconds.list` file. Once parsed, it is possible to retrieve the
36
+ full list of leap seconds, or find the TAI-UTC offset for any UTC time.
37
+
38
+ # `leapsecond` program
39
+
40
+ Access leap second data from the command line.
41
+
42
+ ```
43
+ Usage: leapsecond [OPTIONS] COMMAND [ARGS]...
44
+
45
+ Access leap second database information
46
+
47
+ Options:
48
+ --url TEXT URL for leap second data (unspecified to use default
49
+ source)
50
+ --debug / --no-debug
51
+ --help Show this message and exit.
52
+
53
+ Commands:
54
+ convert Convert timestamps between TAI and UTC
55
+ info Show information about leap second database
56
+ next-leapsecond Get the next leap second after a given UTC timestamp
57
+ offset Get the UTC offset for a given moment, in seconds
58
+ previous-leapsecond Get the last leap second before a given UTC timestamp
59
+ table Print information about leap seconds
60
+ ```
wwvb-4.1.0a0/README.md ADDED
@@ -0,0 +1,41 @@
1
+ <!--
2
+ SPDX-FileCopyrightText: 2021 Jeff Epler
3
+
4
+ SPDX-License-Identifier: GPL-3.0-only
5
+ -->
6
+ [![Test leapseconddata](https://github.com/jepler/leapseconddata/actions/workflows/test.yml/badge.svg)](https://github.com/jepler/leapseconddata/actions/workflows/test.yml)
7
+ [![PyPI](https://img.shields.io/pypi/v/leapseconddata)](https://pypi.org/project/leapseconddata)
8
+ [![Documentation Status](https://readthedocs.org/projects/leapseconddata/badge/?version=latest)](https://leapseconddata.readthedocs.io/en/latest/?badge=latest)
9
+
10
+ # Python Leap Second List
11
+
12
+ Leap seconds are corrections applied irregularly so that the UTC day stays
13
+ fixed to the earth's rotation.
14
+
15
+ This module provides a class for parsing and validating the standard
16
+ `leap-seconds.list` file. Once parsed, it is possible to retrieve the
17
+ full list of leap seconds, or find the TAI-UTC offset for any UTC time.
18
+
19
+ # `leapsecond` program
20
+
21
+ Access leap second data from the command line.
22
+
23
+ ```
24
+ Usage: leapsecond [OPTIONS] COMMAND [ARGS]...
25
+
26
+ Access leap second database information
27
+
28
+ Options:
29
+ --url TEXT URL for leap second data (unspecified to use default
30
+ source)
31
+ --debug / --no-debug
32
+ --help Show this message and exit.
33
+
34
+ Commands:
35
+ convert Convert timestamps between TAI and UTC
36
+ info Show information about leap second database
37
+ next-leapsecond Get the next leap second after a given UTC timestamp
38
+ offset Get the UTC offset for a given moment, in seconds
39
+ previous-leapsecond Get the last leap second before a given UTC timestamp
40
+ table Print information about leap seconds
41
+ ```
@@ -13,38 +13,27 @@
13
13
  # documentation root, use os.path.abspath to make it absolute, like shown here.
14
14
  #
15
15
  import os
16
- import re
17
- import subprocess
18
16
  import sys
17
+ import pathlib
19
18
 
20
- sys.path.insert(0, os.path.abspath("."))
19
+ sys.path.insert(0, str(pathlib.Path(__file__).parent.parent))
21
20
 
21
+ # Define the canonical URL if you are using a custom domain on Read the Docs
22
+ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
23
+
24
+ html_context = {}
25
+ # Tell Jinja2 templates the build is running on Read the Docs
26
+ if os.environ.get("READTHEDOCS", "") == "True":
27
+ html_context["READTHEDOCS"] = True
22
28
 
23
29
  # -- Project information -----------------------------------------------------
24
30
 
25
- project = "wwvb"
26
- copyright = "2021, Jeff Epler"
27
- author = "Jeff Epler"
31
+ project = 'leapseconddata'
32
+ copyright = '2021, Jeff Epler'
33
+ author = 'Jeff Epler'
28
34
 
29
35
  # The full version, including alpha/beta/rc tags
30
- final_version = ""
31
- git_describe = subprocess.run(
32
- ["git", "describe", "--tags", "--dirty"],
33
- stdout=subprocess.PIPE,
34
- stderr=subprocess.STDOUT,
35
- encoding="utf-8", check=False,
36
- )
37
- if git_describe.returncode == 0:
38
- git_version = re.search(
39
- r"^\d(?:\.\d){0,2}(?:\-(?:alpha|beta|rc)\.\d+){0,1}",
40
- str(git_describe.stdout),
41
- )
42
- if git_version:
43
- final_version = git_version[0]
44
- else:
45
- print("Failed to retrieve git version:", git_describe.stdout)
46
-
47
- version = release = final_version
36
+ release = '1.1.0'
48
37
 
49
38
 
50
39
  # -- General configuration ---------------------------------------------------
@@ -53,16 +42,16 @@ version = release = final_version
53
42
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
54
43
  # ones.
55
44
  extensions = [
56
- "sphinx.ext.autodoc",
45
+ 'sphinx.ext.autodoc',
57
46
  ]
58
47
 
59
48
  # Add any paths that contain templates here, relative to this directory.
60
- templates_path = ["_templates"]
49
+ templates_path = ['_templates']
61
50
 
62
51
  # List of patterns, relative to source directory, that match files and
63
52
  # directories to ignore when looking for source files.
64
53
  # This pattern also affects html_static_path and html_extra_path.
65
- exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
54
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
66
55
 
67
56
 
68
57
  # -- Options for HTML output -------------------------------------------------
@@ -70,12 +59,12 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
70
59
  # The theme to use for HTML and HTML Help pages. See the documentation for
71
60
  # a list of builtin themes.
72
61
  #
73
- html_theme = "sphinx_rtd_theme"
62
+ html_theme = 'sphinx_rtd_theme'
74
63
 
75
64
  # Add any paths that contain custom static files (such as style sheets) here,
76
65
  # relative to this directory. They are copied after the builtin static files,
77
66
  # so a file named "default.css" will overwrite the builtin "default.css".
78
- html_static_path = ["_static"]
67
+ html_static_path = ['_static']
79
68
 
80
69
  autodoc_typehints = "description"
81
70
  autodoc_class_signature = "separated"
@@ -0,0 +1,22 @@
1
+ .. SPDX-FileCopyrightText: 2021 Jeff Epler
2
+ ..
3
+ .. SPDX-License-Identifier: GPL-3.0-only
4
+
5
+ leapseconddata
6
+ ==============
7
+
8
+ .. image:: https://github.com/jepler/leapseconddata/actions/workflows/test.yml/badge.svg
9
+ :target: https://github.com/jepler/leapseconddata/actions/workflows/test.yml
10
+ :alt: Test leapseconddata
11
+
12
+ .. image:: https://img.shields.io/pypi/v/leapseconddata
13
+ :target: https://pypi.org/project/leapseconddata
14
+ :alt: PyPI
15
+
16
+
17
+ .. toctree::
18
+ :maxdepth: 2
19
+ :caption: Contents:
20
+
21
+ .. automodule:: leapseconddata
22
+ :members: