afterpython 0.1.0.dev15__tar.gz → 0.1.0.dev17__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 (53) hide show
  1. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/PKG-INFO +1 -1
  2. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/pyproject.toml +1 -1
  3. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/build.py +1 -1
  4. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/bump.py +21 -0
  5. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/init.py +0 -1
  6. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/sync.py +3 -3
  7. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/README.md +0 -0
  8. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/__init__.py +0 -0
  9. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/_io/toml.py +0 -0
  10. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/_io/yaml.py +0 -0
  11. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/_paths.py +0 -0
  12. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/_typing.py +0 -0
  13. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/builders/__init__.py +0 -0
  14. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/builders/metadata.py +0 -0
  15. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/builders/molab.py +0 -0
  16. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/__init__.py +0 -0
  17. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/add.py +0 -0
  18. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/check.py +0 -0
  19. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/clean.py +0 -0
  20. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/commit.py +0 -0
  21. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/commitizen.py +0 -0
  22. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/dev.py +0 -0
  23. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/format.py +0 -0
  24. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/init_branch_rules.py +0 -0
  25. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/install.py +0 -0
  26. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/lock.py +0 -0
  27. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/pre_commit.py +0 -0
  28. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/preview.py +0 -0
  29. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/release.py +0 -0
  30. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/remove.py +0 -0
  31. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/start.py +0 -0
  32. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/commands/update.py +0 -0
  33. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/cli/main.py +0 -0
  34. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/const.py +0 -0
  35. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/main.py +0 -0
  36. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/pcu.py +0 -0
  37. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/ci-workflow-template.yml +0 -0
  38. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/cz-template.toml +0 -0
  39. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/dependabot-template.yml +0 -0
  40. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/deploy-workflow-template.yml +0 -0
  41. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/pre-commit-config-template.yaml +0 -0
  42. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/release-workflow-template.yml +0 -0
  43. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/templates/ruff-template.toml +0 -0
  44. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/_afterpython.py +0 -0
  45. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/_git.py +0 -0
  46. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/branch_rules.py +0 -0
  47. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/commitizen.py +0 -0
  48. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/github_actions.py +0 -0
  49. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/myst.py +0 -0
  50. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/pre_commit.py +0 -0
  51. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/tools/pyproject.py +0 -0
  52. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/utils.py +0 -0
  53. {afterpython-0.1.0.dev15 → afterpython-0.1.0.dev17}/src/afterpython/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afterpython
3
- Version: 0.1.0.dev15
3
+ Version: 0.1.0.dev17
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.1.0.dev15"
3
+ version = "0.1.0.dev17"
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 = [
@@ -37,7 +37,7 @@ def determine_base_path() -> str:
37
37
 
38
38
  # Read website URL from afterpython.toml
39
39
  afterpython = read_afterpython()
40
- website_url = str(_from_tomlkit(afterpython["website"]).get("url", ""))
40
+ website_url = str(_from_tomlkit(afterpython.get("website", {})).get("url", ""))
41
41
 
42
42
  # If custom domain (no github.io), no BASE_PATH needed
43
43
  if "github.io" not in website_url:
@@ -95,3 +95,24 @@ def bump(ctx, release: bool, pre: bool):
95
95
  result = subprocess.run(["pixi", "install"], check=False)
96
96
  if result.returncode != 0:
97
97
  raise Exit(result.returncode)
98
+
99
+ # Check if pixi.lock was modified
100
+ status = subprocess.run(
101
+ ["git", "diff", "--name-only", "pixi.lock"],
102
+ capture_output=True,
103
+ text=True,
104
+ check=False,
105
+ )
106
+ if status.stdout.strip():
107
+ # Stage and commit pixi.lock
108
+ subprocess.run(["git", "add", "pixi.lock"], check=True)
109
+ subprocess.run(
110
+ [
111
+ "git",
112
+ "commit",
113
+ "-m",
114
+ "build: update pixi.lock after version bump",
115
+ ],
116
+ check=True,
117
+ )
118
+ click.echo("✓ Committed pixi.lock update")
@@ -66,7 +66,6 @@ def init(ctx, yes):
66
66
 
67
67
  afterpython_path.mkdir(parents=True, exist_ok=True)
68
68
  static_path.mkdir(parents=True, exist_ok=True)
69
- afterpython_path.joinpath("afterpython.toml").touch()
70
69
 
71
70
  init_pyproject()
72
71
 
@@ -51,9 +51,9 @@ def sync():
51
51
  project_name = str(pyproject.name)
52
52
  afterpython = read_afterpython()
53
53
  github_url = str(pyproject.urls.get("repository", ""))
54
- company_name = str(_from_tomlkit(afterpython["company"]).get("name", ""))
55
- company_url = str(_from_tomlkit(afterpython["company"]).get("url", ""))
56
- website_url = str(_from_tomlkit(afterpython["website"]).get("url", ""))
54
+ company_name = str(_from_tomlkit(afterpython.get("company", {})).get("name", ""))
55
+ company_url = str(_from_tomlkit(afterpython.get("company", {})).get("url", ""))
56
+ website_url = str(_from_tomlkit(afterpython.get("website", {})).get("url", ""))
57
57
  authors = pyproject.authors
58
58
  if company_name and company_url:
59
59
  nav_bar = [{"title": company_name, "url": company_url}]