docput 1.0.0__tar.gz → 1.0.2__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.
- {docput-1.0.0 → docput-1.0.2}/.forgejo/workflows/push.yml +16 -24
- {docput-1.0.0 → docput-1.0.2}/CHANGELOG.md +14 -0
- {docput-1.0.0 → docput-1.0.2}/Justfile +1 -1
- {docput-1.0.0 → docput-1.0.2}/PKG-INFO +10 -1
- {docput-1.0.0 → docput-1.0.2}/README.md +9 -0
- {docput-1.0.0 → docput-1.0.2}/docs/Justfile +0 -3
- {docput-1.0.0 → docput-1.0.2}/pyproject.toml +10 -10
- {docput-1.0.0 → docput-1.0.2}/src/docput/cli/main.py +4 -3
- {docput-1.0.0 → docput-1.0.2}/src/docput/remote/git_pages.py +4 -3
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/PKG-INFO +10 -1
- docput-1.0.2/src/docput.egg-info/scm_version.json +8 -0
- docput-1.0.0/src/docput.egg-info/scm_version.json +0 -8
- {docput-1.0.0 → docput-1.0.2}/.gitignore +0 -0
- {docput-1.0.0 → docput-1.0.2}/LICENSE.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/.gitignore +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_include/forgejo-hover.svg +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_include/forgejo-monochrome.svg +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_include/pypi-hover.svg +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_include/pypi-monochrome.svg +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_root/_headers +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_root/_redirects +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_static/css/custom.css +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/_templates/page.html +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/commands/index.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/commands/manifest.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/commands/version.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/conf.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/index.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/installation.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/user_guide.md +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/version-manifest.json +0 -0
- {docput-1.0.0 → docput-1.0.2}/docs/version-marker.json +0 -0
- {docput-1.0.0 → docput-1.0.2}/setup.cfg +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/__init__.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/__main__.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/cli/__init__.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/cli/manifest.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/cli/version.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/config.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/manifest.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/remote/__init__.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/remote/base.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/remote/filesystem.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/scripts/docput.js +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/sphinx_ext/__init__.py +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput/sphinx_ext/_templates/sidebar/version-switch.html +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/SOURCES.txt +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/dependency_links.txt +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/entry_points.txt +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/requires.txt +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/scm_file_list.json +0 -0
- {docput-1.0.0 → docput-1.0.2}/src/docput.egg-info/top_level.txt +0 -0
- {docput-1.0.0 → docput-1.0.2}/tests/test_remotes.py +0 -0
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
name: build
|
|
2
2
|
on: [ push, pull_request ]
|
|
3
|
+
concurrency:
|
|
4
|
+
group: drewcassidy.me/docput ${{ forge.event_name }}
|
|
5
|
+
cancel-in-progress: false
|
|
3
6
|
|
|
4
7
|
jobs:
|
|
5
|
-
|
|
6
|
-
name: Test
|
|
7
|
-
runs-on: ubuntu-
|
|
8
|
+
test:
|
|
9
|
+
name: Test on Python ${{ matrix.python-version }}
|
|
10
|
+
runs-on: ubuntu-26.04
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: [ "3.14", "3.15" ]
|
|
8
14
|
services:
|
|
9
15
|
gitpages:
|
|
10
16
|
image: codeberg.org/git-pages/git-pages:0.9.1
|
|
@@ -22,7 +28,7 @@ jobs:
|
|
|
22
28
|
- name: Set up Python
|
|
23
29
|
uses: https://code.forgejo.org/actions/setup-python@v6
|
|
24
30
|
with:
|
|
25
|
-
python-version
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
26
32
|
|
|
27
33
|
- name: Set up Project
|
|
28
34
|
run: pip install --editable . --group dev
|
|
@@ -33,22 +39,11 @@ jobs:
|
|
|
33
39
|
- name: Test
|
|
34
40
|
run: just -v test
|
|
35
41
|
|
|
36
|
-
- name: Build
|
|
37
|
-
run: just -v build
|
|
38
|
-
|
|
39
|
-
- name: Upload dist
|
|
40
|
-
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
41
|
-
with:
|
|
42
|
-
name: python-dist
|
|
43
|
-
path: dist/
|
|
44
|
-
compression-level: 0 # already compressed
|
|
45
|
-
|
|
46
|
-
|
|
47
42
|
document:
|
|
48
43
|
name: Document
|
|
49
44
|
needs:
|
|
50
|
-
-
|
|
51
|
-
runs-on: ubuntu-
|
|
45
|
+
- test
|
|
46
|
+
runs-on: ubuntu-26.04
|
|
52
47
|
container:
|
|
53
48
|
env:
|
|
54
49
|
DOCPUT_REMOTE: git-pages+https://drewcassidy.me/docput
|
|
@@ -81,18 +76,15 @@ jobs:
|
|
|
81
76
|
name: Publish
|
|
82
77
|
if: forge.event_name == 'push' && startsWith(forge.ref, 'refs/tags')
|
|
83
78
|
needs:
|
|
84
|
-
-
|
|
79
|
+
- test
|
|
85
80
|
- document
|
|
86
|
-
runs-on: ubuntu-
|
|
81
|
+
runs-on: ubuntu-26.04
|
|
87
82
|
steps:
|
|
88
83
|
- name: Checkout
|
|
89
84
|
uses: https://code.forgejo.org/actions/checkout@v5
|
|
90
85
|
|
|
91
|
-
- name:
|
|
92
|
-
|
|
93
|
-
with:
|
|
94
|
-
name: python-dist
|
|
95
|
-
path: dist
|
|
86
|
+
- name: Build dist
|
|
87
|
+
run: just -v build
|
|
96
88
|
|
|
97
89
|
- name: Get Changelog Information
|
|
98
90
|
id: yaclog-show
|
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file
|
|
4
4
|
|
|
5
|
+
## 1.0.2 - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed `--help` option on subcommands requiring a remote be configured
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## 1.0.1 - 2026-10-19
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fixed error with trailing slashes in paths when using the git-pages backend on Python 3.15 (#4)
|
|
17
|
+
|
|
18
|
+
|
|
5
19
|
## 1.0.0 - 2026-08-23
|
|
6
20
|
|
|
7
21
|
### Changed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docput
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Deploy multi-versioned docs to static hosting
|
|
5
5
|
Author-email: Andrew Cassidy <drewcassidy@me.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -65,3 +65,12 @@ $ pip install docput
|
|
|
65
65
|
[documentation]: https://drewcassidy.me/docput/latest/
|
|
66
66
|
[pypi]: https://pypi.org/project/docput
|
|
67
67
|
[source]: https://git.offworld.city/drewcassidy/docput
|
|
68
|
+
|
|
69
|
+
## Licensing
|
|
70
|
+
|
|
71
|
+
Docput is distributed under [the MIT license](LICENSE.md)
|
|
72
|
+
|
|
73
|
+
Note that we *do not* waive the attribution requirements of our
|
|
74
|
+
licenses, including for ingestion into machine learning models. If you
|
|
75
|
+
train on and produce code derived from our work, you must uphold all
|
|
76
|
+
attribution requirements in produced works.
|
|
@@ -34,3 +34,12 @@ $ pip install docput
|
|
|
34
34
|
[documentation]: https://drewcassidy.me/docput/latest/
|
|
35
35
|
[pypi]: https://pypi.org/project/docput
|
|
36
36
|
[source]: https://git.offworld.city/drewcassidy/docput
|
|
37
|
+
|
|
38
|
+
## Licensing
|
|
39
|
+
|
|
40
|
+
Docput is distributed under [the MIT license](LICENSE.md)
|
|
41
|
+
|
|
42
|
+
Note that we *do not* waive the attribution requirements of our
|
|
43
|
+
licenses, including for ingestion into machine learning models. If you
|
|
44
|
+
train on and produce code derived from our work, you must uphold all
|
|
45
|
+
attribution requirements in produced works.
|
|
@@ -11,16 +11,13 @@ format:
|
|
|
11
11
|
sphinx_module := "sphinx"
|
|
12
12
|
|
|
13
13
|
# Build documentation.
|
|
14
|
-
[arg("args", help="Arguments passed to sphinx")]
|
|
15
14
|
build *args:
|
|
16
15
|
python -m {{ sphinx_module }} . _build {{ args }}
|
|
17
16
|
|
|
18
17
|
# Push documentation version
|
|
19
|
-
[arg("args", help="Arguments passed to docput")]
|
|
20
18
|
push *args:
|
|
21
19
|
docput version push {{ args }} _build
|
|
22
20
|
|
|
23
21
|
# Update root files for the documentation site
|
|
24
|
-
[arg("args", help="Arguments passed to docput")]
|
|
25
22
|
update-root *args:
|
|
26
23
|
docput upload --merge _root . {{ args }}
|
|
@@ -40,25 +40,25 @@ dynamic = ["version"]
|
|
|
40
40
|
|
|
41
41
|
[dependency-groups]
|
|
42
42
|
docs = [
|
|
43
|
-
"Sphinx ~= 9.1
|
|
44
|
-
"furo
|
|
45
|
-
"sphinx-inline-tabs
|
|
46
|
-
"sphinx-copybutton ~= 0.5
|
|
47
|
-
"sphinx-click ~= 6.2
|
|
48
|
-
"myst-parser ~= 5.1
|
|
43
|
+
"Sphinx ~= 9.1",
|
|
44
|
+
"furo == 2025.12.19",
|
|
45
|
+
"sphinx-inline-tabs == 2025.12.21.14",
|
|
46
|
+
"sphinx-copybutton ~= 0.5",
|
|
47
|
+
"sphinx-click ~= 6.2",
|
|
48
|
+
"myst-parser ~= 5.1"
|
|
49
49
|
]
|
|
50
50
|
dev = [
|
|
51
51
|
# format
|
|
52
|
-
"black
|
|
52
|
+
"black == 26.3.1",
|
|
53
53
|
"mdformat ~= 1.0.0",
|
|
54
54
|
"mdformat-config",
|
|
55
55
|
"mdformat-black",
|
|
56
56
|
"mdformat-myst",
|
|
57
57
|
# lint
|
|
58
|
-
"pyflakes ~= 3.4
|
|
59
|
-
"zuban ~= 0.
|
|
58
|
+
"pyflakes ~= 3.4",
|
|
59
|
+
"zuban ~= 0.10.0",
|
|
60
60
|
# test
|
|
61
|
-
"pytest ~= 9.0
|
|
61
|
+
"pytest ~= 9.0",
|
|
62
62
|
# build
|
|
63
63
|
"build",
|
|
64
64
|
]
|
|
@@ -47,15 +47,16 @@ def pass_remote[R, **P](f: Callable[Concatenate[Remote, P], R]) -> Callable[P, R
|
|
|
47
47
|
@click.option(
|
|
48
48
|
"--remote",
|
|
49
49
|
"-r",
|
|
50
|
-
required=
|
|
50
|
+
required=False,
|
|
51
51
|
type=RemoteParamType(),
|
|
52
52
|
envvar="DOCPUT_REMOTE",
|
|
53
53
|
show_envvar=True,
|
|
54
54
|
help="Remote to interact with",
|
|
55
55
|
)
|
|
56
56
|
@click.pass_context
|
|
57
|
-
def main_group(ctx: click.Context, remote: Remote):
|
|
58
|
-
|
|
57
|
+
def main_group(ctx: click.Context, remote: Remote | None):
|
|
58
|
+
if remote is not None:
|
|
59
|
+
ctx.obj = remote
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
@main_group.command(short_help="Download a file.")
|
|
@@ -3,6 +3,7 @@ import tarfile
|
|
|
3
3
|
import tempfile
|
|
4
4
|
from io import BytesIO
|
|
5
5
|
from os import PathLike, fspath
|
|
6
|
+
from pathlib import PurePosixPath
|
|
6
7
|
from typing import IO
|
|
7
8
|
|
|
8
9
|
from requests.exceptions import SSLError
|
|
@@ -86,7 +87,7 @@ class GitPagesRemote(Remote):
|
|
|
86
87
|
"""
|
|
87
88
|
|
|
88
89
|
endpoint: URL # URL to push/patch changes to
|
|
89
|
-
root:
|
|
90
|
+
root: PurePosixPath # site root relative to the git-pages endpoint
|
|
90
91
|
|
|
91
92
|
def __init__(
|
|
92
93
|
self,
|
|
@@ -94,7 +95,7 @@ class GitPagesRemote(Remote):
|
|
|
94
95
|
subdirectory: PathLike[str] | str = "",
|
|
95
96
|
):
|
|
96
97
|
self.endpoint = URL(url)
|
|
97
|
-
self.root =
|
|
98
|
+
self.root = PurePosixPath(subdirectory)
|
|
98
99
|
|
|
99
100
|
assert not self.root.is_absolute(), "subdirectory must be a relative reference"
|
|
100
101
|
assert self.endpoint.scheme in [
|
|
@@ -141,7 +142,7 @@ class GitPagesRemote(Remote):
|
|
|
141
142
|
if not self.exists:
|
|
142
143
|
raise FileNotFoundError(path, "Site does not exist")
|
|
143
144
|
|
|
144
|
-
url = self.endpoint / self.root / path
|
|
145
|
+
url: URL = self.endpoint / self.root / path
|
|
145
146
|
response = url.get()
|
|
146
147
|
if response.status_code == 404:
|
|
147
148
|
raise FileNotFoundError(path, "File does not exist in site")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docput
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
4
4
|
Summary: Deploy multi-versioned docs to static hosting
|
|
5
5
|
Author-email: Andrew Cassidy <drewcassidy@me.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -65,3 +65,12 @@ $ pip install docput
|
|
|
65
65
|
[documentation]: https://drewcassidy.me/docput/latest/
|
|
66
66
|
[pypi]: https://pypi.org/project/docput
|
|
67
67
|
[source]: https://git.offworld.city/drewcassidy/docput
|
|
68
|
+
|
|
69
|
+
## Licensing
|
|
70
|
+
|
|
71
|
+
Docput is distributed under [the MIT license](LICENSE.md)
|
|
72
|
+
|
|
73
|
+
Note that we *do not* waive the attribution requirements of our
|
|
74
|
+
licenses, including for ingestion into machine learning models. If you
|
|
75
|
+
train on and produce code derived from our work, you must uphold all
|
|
76
|
+
attribution requirements in produced works.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|