afterpython 0.3.4__tar.gz → 0.3.6__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 (64) hide show
  1. {afterpython-0.3.4 → afterpython-0.3.6}/PKG-INFO +1 -1
  2. {afterpython-0.3.4 → afterpython-0.3.6}/pyproject.toml +1 -1
  3. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/update.py +10 -2
  4. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/deploy-workflow-template.yml +3 -3
  5. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/release-workflow-template.yml +1 -1
  6. {afterpython-0.3.4 → afterpython-0.3.6}/README.md +0 -0
  7. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/__init__.py +0 -0
  8. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/_io/toml.py +0 -0
  9. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/_io/yaml.py +0 -0
  10. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/_paths.py +0 -0
  11. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/_typing.py +0 -0
  12. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/__init__.py +0 -0
  13. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/build_pdoc.py +0 -0
  14. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/content_json.py +0 -0
  15. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/faq_json.py +0 -0
  16. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/index_md.py +0 -0
  17. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/jupyter_notebook.py +0 -0
  18. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/llms_txt.py +0 -0
  19. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/marimo_notebook.py +0 -0
  20. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/markdown.py +0 -0
  21. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/metadata.py +0 -0
  22. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/builders/url_md.py +0 -0
  23. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/__init__.py +0 -0
  24. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/add.py +0 -0
  25. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/build.py +0 -0
  26. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/bump.py +0 -0
  27. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/check.py +0 -0
  28. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/clean.py +0 -0
  29. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/commit.py +0 -0
  30. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/commitizen.py +0 -0
  31. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/dev.py +0 -0
  32. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/format.py +0 -0
  33. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/init.py +0 -0
  34. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/init_branch_rules.py +0 -0
  35. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/install.py +0 -0
  36. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/lock.py +0 -0
  37. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/pre_commit.py +0 -0
  38. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/preview.py +0 -0
  39. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/release.py +0 -0
  40. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/remove.py +0 -0
  41. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/serve.py +0 -0
  42. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/start.py +0 -0
  43. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/commands/sync.py +0 -0
  44. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/cli/main.py +0 -0
  45. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/const.py +0 -0
  46. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/main.py +0 -0
  47. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/pcu.py +0 -0
  48. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/py.typed +0 -0
  49. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/ci-workflow-template.yml +0 -0
  50. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/cz-template.toml +0 -0
  51. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/dependabot-template.yml +0 -0
  52. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/pdoc/frame.html.jinja2 +0 -0
  53. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/pre-commit-config-template.yaml +0 -0
  54. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/templates/ruff-template.toml +0 -0
  55. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/_afterpython.py +0 -0
  56. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/_git.py +0 -0
  57. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/branch_rules.py +0 -0
  58. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/commitizen.py +0 -0
  59. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/github_actions.py +0 -0
  60. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/myst.py +0 -0
  61. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/pre_commit.py +0 -0
  62. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/tools/pyproject.py +0 -0
  63. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/utils.py +0 -0
  64. {afterpython-0.3.4 → afterpython-0.3.6}/src/afterpython/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afterpython
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: CLI tool to streamline Python package maintenance and generate a dedicated project website
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "afterpython"
3
- version = "0.3.4"
3
+ version = "0.3.6"
4
4
  description = "CLI tool to streamline Python package maintenance and generate a dedicated project website"
5
5
  license = "Apache-2.0"
6
6
  authors = [
@@ -112,8 +112,6 @@ def dependencies(upgrade: bool, all_: bool, exclude: tuple[str, ...]):
112
112
  "uv not found. Updated pyproject.toml only (packages not installed)."
113
113
  )
114
114
  if upgrade and all_:
115
- subprocess.run(["ap", "pre-commit", "autoupdate"])
116
- click.echo("All pre-commit hooks updated successfully.")
117
115
  if has_pixi():
118
116
  click.echo("Upgrading dependencies with pixi...")
119
117
  pixi_exclude_args = ["--exclude", "python"]
@@ -137,6 +135,16 @@ def dependencies(upgrade: bool, all_: bool, exclude: tuple[str, ...]):
137
135
  bold=True,
138
136
  )
139
137
  )
138
+ result = subprocess.run(["ap", "pre-commit", "autoupdate"], check=False)
139
+ if result.returncode == 0:
140
+ click.echo("All pre-commit hooks updated successfully.")
141
+ else:
142
+ click.echo(
143
+ click.style(
144
+ "Skipped pre-commit autoupdate (no config or command failed).",
145
+ fg="yellow",
146
+ )
147
+ )
140
148
 
141
149
 
142
150
  update.add_command(dependencies, name="deps") # alias for "dependencies"
@@ -39,7 +39,7 @@ jobs:
39
39
  uses: actions/checkout@v6
40
40
 
41
41
  - name: Install pnpm
42
- uses: pnpm/action-setup@v4
42
+ uses: pnpm/action-setup@v6
43
43
  with:
44
44
  version: 10
45
45
 
@@ -72,7 +72,7 @@ jobs:
72
72
  ap build
73
73
 
74
74
  - name: Upload artifact
75
- uses: actions/upload-pages-artifact@v4
75
+ uses: actions/upload-pages-artifact@v5
76
76
  with:
77
77
  path: './afterpython/_website/build'
78
78
 
@@ -86,4 +86,4 @@ jobs:
86
86
  steps:
87
87
  - name: Deploy to GitHub Pages
88
88
  id: deployment
89
- uses: actions/deploy-pages@v4
89
+ uses: actions/deploy-pages@v5
@@ -47,7 +47,7 @@ jobs:
47
47
  fi
48
48
 
49
49
  - name: Create GitHub Release
50
- uses: softprops/action-gh-release@v2
50
+ uses: softprops/action-gh-release@v3
51
51
  with:
52
52
  tag_name: ${{ github.ref_name }}
53
53
  name: ${{ github.ref_name }}
File without changes