afterpython 0.1.0.dev4__tar.gz → 0.1.0.dev5__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.
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/PKG-INFO +2 -2
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/build.py +4 -1
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/deploy-workflow-template.yml +20 -1
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/pyproject.toml +2 -2
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/README.md +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/.pre-commit-config.yaml +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/__init__.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_io/toml.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_io/yaml.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_paths.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_typing.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/__init__.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/metadata.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/molab.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/__init__.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/bump.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/check.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/clean.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/commit.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/commitizen.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/dev.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/format.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/init.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/install.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/pre_commit.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/preview.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/release.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/start.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/sync.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/update.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/main.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/const.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cz.toml +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/main.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/pcu.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/release-workflow-template.yml +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/ruff-template.toml +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/_afterpython.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/_git.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/commitizen.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/github_actions.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/myst.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/pre_commit.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/pyproject.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/utils.py +0 -0
- {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: afterpython
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.dev5
|
|
4
4
|
Summary: CLI tool for AfterPython
|
|
5
5
|
Keywords: package-maintenance,project-website,static-site-generator,developer-tools,documentation,cli-tool,ci/cd,mystmd,semantic-release,python-packaging
|
|
6
6
|
Author: Stephen Yau
|
|
@@ -29,7 +29,7 @@ Requires-Dist: ruff>=0.14.5
|
|
|
29
29
|
Requires-Dist: pre-commit>=4.4.0
|
|
30
30
|
Requires-Dist: commitizen>=4.10.0
|
|
31
31
|
Requires-Python: >=3.11
|
|
32
|
-
Project-URL: documentation, https://
|
|
32
|
+
Project-URL: documentation, https://ap.afterpython.org/doc
|
|
33
33
|
Project-URL: homepage, https://afterpython.org
|
|
34
34
|
Project-URL: repository, https://github.com/AfterPythonOrg/afterpython
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
@@ -159,7 +159,10 @@ def build(ctx, dev: bool, execute: bool):
|
|
|
159
159
|
|
|
160
160
|
click.echo(f"Building {content_type}/...")
|
|
161
161
|
# NOTE: needs to set BASE_URL so that the project website can link to the content pages correctly at e.g. localhost:5173/doc
|
|
162
|
-
|
|
162
|
+
# BASE_PATH is set by the GitHub Actions workflow
|
|
163
|
+
base_path = os.getenv("BASE_PATH", "")
|
|
164
|
+
base_url = f"{base_path}/{content_type}"
|
|
165
|
+
build_env = {**node_env, "BASE_URL": base_url}
|
|
163
166
|
result = subprocess.run(
|
|
164
167
|
[
|
|
165
168
|
"myst",
|
{afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/deploy-workflow-template.yml
RENAMED
|
@@ -37,6 +37,18 @@ jobs:
|
|
|
37
37
|
- name: Checkout code
|
|
38
38
|
uses: actions/checkout@v4
|
|
39
39
|
|
|
40
|
+
- name: Install pnpm
|
|
41
|
+
uses: pnpm/action-setup@v4
|
|
42
|
+
with:
|
|
43
|
+
version: 10
|
|
44
|
+
|
|
45
|
+
- name: Set up Node.js
|
|
46
|
+
uses: actions/setup-node@v4
|
|
47
|
+
with:
|
|
48
|
+
node-version: '24'
|
|
49
|
+
cache: 'pnpm'
|
|
50
|
+
cache-dependency-path: './afterpython/_website/pnpm-lock.yaml'
|
|
51
|
+
|
|
40
52
|
- name: Set up Python
|
|
41
53
|
uses: actions/setup-python@v5
|
|
42
54
|
with:
|
|
@@ -50,8 +62,15 @@ jobs:
|
|
|
50
62
|
- name: Install afterpython
|
|
51
63
|
run: uv pip install --system afterpython
|
|
52
64
|
|
|
65
|
+
- name: Install website dependencies
|
|
66
|
+
run: pnpm install
|
|
67
|
+
working-directory: ./afterpython/_website
|
|
68
|
+
|
|
53
69
|
- name: Build website
|
|
54
|
-
run:
|
|
70
|
+
run: |
|
|
71
|
+
ap build
|
|
72
|
+
env:
|
|
73
|
+
BASE_PATH: '/${{ github.event.repository.name }}'
|
|
55
74
|
|
|
56
75
|
- name: Upload artifact
|
|
57
76
|
uses: actions/upload-pages-artifact@v3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "afterpython"
|
|
3
|
-
version = "0.1.0.
|
|
3
|
+
version = "0.1.0.dev5"
|
|
4
4
|
description = "CLI tool for AfterPython"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
authors = [
|
|
@@ -53,7 +53,7 @@ dependencies = [
|
|
|
53
53
|
[project.urls]
|
|
54
54
|
homepage = "https://afterpython.org"
|
|
55
55
|
repository = "https://github.com/AfterPythonOrg/afterpython"
|
|
56
|
-
documentation = "https://
|
|
56
|
+
documentation = "https://ap.afterpython.org/doc"
|
|
57
57
|
|
|
58
58
|
[project.scripts]
|
|
59
59
|
ap = "afterpython.main:run_cli"
|
|
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
|
|
File without changes
|