afterpython 0.1.0.dev15__py3-none-any.whl → 0.1.0.dev17__py3-none-any.whl

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.
@@ -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}]
@@ -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
@@ -8,15 +8,15 @@ afterpython/builders/metadata.py,sha256=NkhKQLCmdzRId_tHNldIC3h3an3QQPjqBRGnhr9a
8
8
  afterpython/builders/molab.py,sha256=viQ3HY5tnMiHjrgsm4BAMuYtTpiFJ0SDYzcm1TyoRDI,3715
9
9
  afterpython/cli/__init__.py,sha256=G4AB-rllhmr7tURFc5cXJfkjZZ2bXtMBg3oy4zUGEFw,84
10
10
  afterpython/cli/commands/add.py,sha256=Ppp4msdvOwN9_-fdG5-b0-IV9p0Eef9CiIEU3srUjYk,1792
11
- afterpython/cli/commands/build.py,sha256=kFVdu0tNn82qaHVDS9tUKHYwH73zE3adkRBG_c2t44c,8020
12
- afterpython/cli/commands/bump.py,sha256=SczcDBkdabqaP72EKP2sfiFDGOosZIui2iKcGnGEXZA,3408
11
+ afterpython/cli/commands/build.py,sha256=Yc80e1xoZaZCioPKmayOe2i5eJJjOvi79lTu6GQaqOY,8028
12
+ afterpython/cli/commands/bump.py,sha256=2MZBQ1kxjr0bWhA--_xHwdwjsUlCyrXPn3pJ5NDZO4k,4088
13
13
  afterpython/cli/commands/check.py,sha256=cLP4Vle3ENQHCXBv1okDlWK-L1XK-fv80m66xW3LQkg,1097
14
14
  afterpython/cli/commands/clean.py,sha256=ZNhOwxcdxhkzqLPwDJ2_NPLnvMz3C1EKyNttXTyIHnI,2532
15
15
  afterpython/cli/commands/commit.py,sha256=TKhlybJxbcChMzZJuTfYafCrYUraqyBpLJ4TP0WA-xs,1335
16
16
  afterpython/cli/commands/commitizen.py,sha256=naI8j4pfXIMsiOLmPMeZTGh831I3665_1_Sbn7yoKyE,811
17
17
  afterpython/cli/commands/dev.py,sha256=zuto7Z6nfD1FAhZkhZNoLhxVH78Eo3W3iO6QujOMXII,6753
18
18
  afterpython/cli/commands/format.py,sha256=cXvuc-6XwULM1VJjS2B2bJBvnV1TVHFl1CeSs0SYQ24,738
19
- afterpython/cli/commands/init.py,sha256=TW8uIl_pt0HH9QCQLgFkJhM86VF_vwP1Wlqq0fXR8VI,3124
19
+ afterpython/cli/commands/init.py,sha256=rsUfqtwSBQ6tkf6vYX6qfuHRXIdNsRkVgFYcIRorhCA,3066
20
20
  afterpython/cli/commands/init_branch_rules.py,sha256=fzAm8D5qbW3u4bEMpqPuRgO-0akuCGG7pu09JlKhYn4,243
21
21
  afterpython/cli/commands/install.py,sha256=K3xYzU7XOts_xdERyd4q3wUFv0hythy7ZP6jr9N_6L4,777
22
22
  afterpython/cli/commands/lock.py,sha256=WAfZY4Jb7XLl7_zcjxCAs8VCGitX-zPlkXLTkPtOqDs,605
@@ -25,7 +25,7 @@ afterpython/cli/commands/preview.py,sha256=EbuB-dFcgonmqumTb2aHlLpXRiXkGE4DI3ddJ
25
25
  afterpython/cli/commands/release.py,sha256=6SDEnPtuCL0_XUqWUlvRSKxAv011QqOD0kc5pKu7378,2479
26
26
  afterpython/cli/commands/remove.py,sha256=Fl79JSI9IdHyzYflocXxcxgBkBPkNFAW98Yuijly26g,1812
27
27
  afterpython/cli/commands/start.py,sha256=nXMOYQmAWqsqLphm09qxag83aLI7_w3TxjJQQt2CQjk,3992
28
- afterpython/cli/commands/sync.py,sha256=2PQA_jxH701l_Ijmr4hZV6K-f_G1Wx7lRScDttT3-9E,4669
28
+ afterpython/cli/commands/sync.py,sha256=7JQT4gXTJLqCpenvgBuzNaQt62jZwidMPeWnAJxn-I0,4693
29
29
  afterpython/cli/commands/update.py,sha256=inMdpNNtyDdh7311sIFwEiNzetXCzjSFG8YhyM9GVh0,6393
30
30
  afterpython/cli/main.py,sha256=m3BJ5rOlllUyOngD2HF2fosDLrduREzAQKpsTqcYPZc,4956
31
31
  afterpython/const.py,sha256=B_yUBmHPyu98aOibwt7idWbhKNBBed0TeYXNBd8tPTk,157
@@ -48,7 +48,7 @@ afterpython/tools/pre_commit.py,sha256=oNsrUkPI13rSSBSyhyTTKPnQGhDxLIPYhxu6kL0fD
48
48
  afterpython/tools/pyproject.py,sha256=kb7BDn24yH_xS2F5_L0dK-GL4KgOJS-MIIUQhHnLorI,3507
49
49
  afterpython/utils.py,sha256=Uh4pTGeavH5pf8GCeMYQGqs3iPpZzjjAJ_R7t2mhEyY,7045
50
50
  afterpython/version.py,sha256=hihRV1S-gc1m46OaXD32ikkEkqzs-Gtq7AcAqOQV-wY,1603
51
- afterpython-0.1.0.dev15.dist-info/WHEEL,sha256=3id4o64OvRm9dUknh3mMJNcfoTRK08ua5cU6DFyVy-4,79
52
- afterpython-0.1.0.dev15.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
53
- afterpython-0.1.0.dev15.dist-info/METADATA,sha256=xcVL1wJJ5Tk0F2UvwCHzvZKU7uXoQKddOcdF9HdURH4,5907
54
- afterpython-0.1.0.dev15.dist-info/RECORD,,
51
+ afterpython-0.1.0.dev17.dist-info/WHEEL,sha256=3id4o64OvRm9dUknh3mMJNcfoTRK08ua5cU6DFyVy-4,79
52
+ afterpython-0.1.0.dev17.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
53
+ afterpython-0.1.0.dev17.dist-info/METADATA,sha256=CBqK0pMxXyNTtyL3oYtOVnVzLGvVpynYQoISoigJC14,5907
54
+ afterpython-0.1.0.dev17.dist-info/RECORD,,