afterpython 0.3.17__py3-none-any.whl → 0.3.18__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.
afterpython/pcu.py CHANGED
@@ -60,18 +60,18 @@ async def get_latest_versions(
60
60
  requirements: list[Requirement],
61
61
  ) -> dict[str, Version | None]:
62
62
  """Get latest versions for a list of dependencies from PyPI."""
63
- import httpx
63
+ import httpx2
64
64
 
65
65
  from afterpython.utils import fetch_pypi_json
66
66
 
67
67
  async def fetch_version(
68
- client: httpx.AsyncClient, package_name: str
68
+ client: httpx2.AsyncClient, package_name: str
69
69
  ) -> Version | None:
70
70
  """Fetch the latest version of a package from PyPI."""
71
71
  data = await fetch_pypi_json(client, package_name)
72
72
  return Version(data["info"]["version"]) if data else None
73
73
 
74
- async with httpx.AsyncClient(timeout=10.0) as client:
74
+ async with httpx2.AsyncClient(timeout=10.0) as client:
75
75
  tasks = [fetch_version(client, req.name) for req in requirements]
76
76
  results = await asyncio.gather(*tasks, return_exceptions=True)
77
77
  return dict(zip([req.name for req in requirements], results, strict=False))
@@ -74,7 +74,7 @@ def init_pyproject():
74
74
  - add [build-system] section with uv build backend (same as `uv init --package`)
75
75
  - add [project.urls] section with homepage, repository, and documentation URLs
76
76
  """
77
- import httpx
77
+ import httpx2
78
78
 
79
79
  from afterpython.tools._git import get_git_user_config, get_github_url
80
80
  from afterpython.utils import fetch_pypi_json
@@ -83,7 +83,7 @@ def init_pyproject():
83
83
 
84
84
  async def fetch_build_backend_version() -> str | None:
85
85
  """Fetch the latest version of build backend package from PyPI."""
86
- async with httpx.AsyncClient() as client:
86
+ async with httpx2.AsyncClient() as client:
87
87
  data = await fetch_pypi_json(client, build_backend)
88
88
  return data["info"]["version"] if data else None
89
89
 
afterpython/utils.py CHANGED
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING
5
5
  if TYPE_CHECKING:
6
6
  from pathlib import Path
7
7
 
8
- from httpx import AsyncClient
8
+ from httpx2 import AsyncClient
9
9
 
10
10
  from afterpython._typing import NodeEnv
11
11
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afterpython
3
- Version: 0.3.17
3
+ Version: 0.3.18
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
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
17
  Requires-Dist: click>=8.1.8
18
18
  Requires-Dist: trogon>=0.6.0
19
- Requires-Dist: httpx>=0.28.1
19
+ Requires-Dist: httpx2>=2.5.0
20
20
  Requires-Dist: tomlkit>=0.15.0
21
21
  Requires-Dist: ruamel-yaml>=0.19.1
22
22
  Requires-Dist: gitpython>=3.1.50
@@ -25,9 +25,9 @@ Requires-Dist: pyproject-metadata>=0.11.0
25
25
  Requires-Dist: jupytext>=1.19.4
26
26
  Requires-Dist: mystmd>=1.10.1
27
27
  Requires-Dist: pdoc>=16.0.0
28
- Requires-Dist: ruff>=0.15.22
28
+ Requires-Dist: ruff>=0.15.21
29
29
  Requires-Dist: pre-commit>=4.6.0
30
- Requires-Dist: commitizen>=4.16.5
30
+ Requires-Dist: commitizen>=4.16.4
31
31
  Requires-Python: >=3.11
32
32
  Project-URL: homepage, https://afterpython.afterpython.org
33
33
  Project-URL: repository, https://github.com/AfterPythonOrg/afterpython
@@ -39,7 +39,7 @@ afterpython/cli/commands/update.py,sha256=s84yzIBsG1lQQ61gWkLLP-KzxZ3GIfwosb0Ge2
39
39
  afterpython/cli/main.py,sha256=-9eQiIrUViSvof-Ic2RHF3AVZharPSQh9sJ7tkhvf6Q,5042
40
40
  afterpython/const.py,sha256=pZERFcKA60HsTob9kFCh34M_bZhyphHgLKUHab9pNFg,225
41
41
  afterpython/main.py,sha256=w0z6mTib3u4p2HxMrk-tIJlZtur7uRaqsbE0ewlYlSs,490
42
- afterpython/pcu.py,sha256=EoEhSzFZ49b5qc9KH2RLxIHSzY8YFM5uhtw07chcrr8,6093
42
+ afterpython/pcu.py,sha256=8VmCYWdfPIdHuf-JivoFxd0v2JWVZVkCURTu0P8EFvU,6096
43
43
  afterpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  afterpython/templates/ci-workflow-template.yml,sha256=aI_bX42RjHxWDeI6E7tiSLoLQ8xbavvVziN5Xr2Vg2A,7116
45
45
  afterpython/templates/cz-template.toml,sha256=2qwbQLb0nbZaA63oWXFFzvzPNBsFZHATL1C2rdNdjjs,185
@@ -56,10 +56,10 @@ afterpython/tools/commitizen.py,sha256=ZO1qHmzUU0myd85tncv76WtIR7DB_AoQGSUvaf78O
56
56
  afterpython/tools/github_actions.py,sha256=0xzOc41QF1PKagD1CW7BAt_Rugy0KCEx_KfcrPKVl3c,3168
57
57
  afterpython/tools/myst.py,sha256=zlZcrofF8OAtg6UymF3b8xirV0KG1MXoMnpNaat5MAQ,9374
58
58
  afterpython/tools/pre_commit.py,sha256=oNsrUkPI13rSSBSyhyTTKPnQGhDxLIPYhxu6kL0fDmo,1206
59
- afterpython/tools/pyproject.py,sha256=hz-DOf-pkGBF2m_RqEZipAaO-NDbsLxrrc65LWAIwLA,3698
60
- afterpython/utils.py,sha256=VN6NBO2TKTFvqEvcxiHZrcmNuhl6wDlb0xFnlgqq9xk,12402
59
+ afterpython/tools/pyproject.py,sha256=Slhxo-Z9M7Gn9ZGL2BKmbPONpDgAJ1g33TdiulxwEyQ,3700
60
+ afterpython/utils.py,sha256=lsMaMRFAn37rIBxL8EAca_JKWOgC1pQ0NAvhazmMB-I,12403
61
61
  afterpython/version.py,sha256=hihRV1S-gc1m46OaXD32ikkEkqzs-Gtq7AcAqOQV-wY,1603
62
- afterpython-0.3.17.dist-info/WHEEL,sha256=LxHbYWzW7e46NaLs5XCk4QzC6UTgGl9kfPztDG7w374,81
63
- afterpython-0.3.17.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
64
- afterpython-0.3.17.dist-info/METADATA,sha256=C5k3Gei0SPrQK7LmRyAAnlrBw1UZmD3qNWApaQkyEf0,6182
65
- afterpython-0.3.17.dist-info/RECORD,,
62
+ afterpython-0.3.18.dist-info/WHEEL,sha256=l3MmIxu8qaet7ng2J9fFoJnYGj8IREj7jXTbgsuzmy4,81
63
+ afterpython-0.3.18.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
64
+ afterpython-0.3.18.dist-info/METADATA,sha256=MOvNmn2eOu8_WCBJX-nbYiDYqKjSUsuYwbJgErYMFk8,6182
65
+ afterpython-0.3.18.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.11.30
2
+ Generator: uv 0.11.32
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any