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.
Files changed (46) hide show
  1. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/PKG-INFO +2 -2
  2. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/build.py +4 -1
  3. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/deploy-workflow-template.yml +20 -1
  4. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/pyproject.toml +2 -2
  5. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/README.md +0 -0
  6. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/.pre-commit-config.yaml +0 -0
  7. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/__init__.py +0 -0
  8. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_io/toml.py +0 -0
  9. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_io/yaml.py +0 -0
  10. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_paths.py +0 -0
  11. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/_typing.py +0 -0
  12. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/__init__.py +0 -0
  13. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/metadata.py +0 -0
  14. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/builders/molab.py +0 -0
  15. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/__init__.py +0 -0
  16. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/bump.py +0 -0
  17. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/check.py +0 -0
  18. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/clean.py +0 -0
  19. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/commit.py +0 -0
  20. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/commitizen.py +0 -0
  21. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/dev.py +0 -0
  22. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/format.py +0 -0
  23. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/init.py +0 -0
  24. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/install.py +0 -0
  25. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/pre_commit.py +0 -0
  26. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/preview.py +0 -0
  27. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/release.py +0 -0
  28. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/start.py +0 -0
  29. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/sync.py +0 -0
  30. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/commands/update.py +0 -0
  31. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cli/main.py +0 -0
  32. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/const.py +0 -0
  33. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/cz.toml +0 -0
  34. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/main.py +0 -0
  35. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/pcu.py +0 -0
  36. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/release-workflow-template.yml +0 -0
  37. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/templates/ruff-template.toml +0 -0
  38. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/_afterpython.py +0 -0
  39. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/_git.py +0 -0
  40. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/commitizen.py +0 -0
  41. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/github_actions.py +0 -0
  42. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/myst.py +0 -0
  43. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/pre_commit.py +0 -0
  44. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/tools/pyproject.py +0 -0
  45. {afterpython-0.1.0.dev4 → afterpython-0.1.0.dev5}/afterpython/utils.py +0 -0
  46. {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.dev4
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://docs.afterpython.org
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
- build_env = {**node_env, "BASE_URL": f"/{content_type}"}
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",
@@ -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: ap build
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.dev4"
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://docs.afterpython.org"
56
+ documentation = "https://ap.afterpython.org/doc"
57
57
 
58
58
  [project.scripts]
59
59
  ap = "afterpython.main:run_cli"