yuanbootctl-python 0.2.0__tar.gz → 0.3.0__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.
@@ -0,0 +1,3 @@
1
+ include pyproject.toml README.md LICENSE _build_backend/yuanboot_build.py setup.py MANIFEST.in
2
+ recursive-include src *.py *.json *.tpl *.bin
3
+ global-exclude *.pyc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yuanbootctl-python
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Project scaffolding, run and build tools for yuanboot-python
5
5
  Project-URL: Homepage, https://github.com/liangboceo/yuanboot-python
6
6
  Project-URL: Documentation, https://github.com/liangboceo/yuanboot-python/blob/master/docs/releases.md
@@ -13,19 +13,19 @@ Keywords: cli,fastapi,scaffolding,yuanboot
13
13
  Classifier: Environment :: Console
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Topic :: Software Development :: Code Generators
16
- Requires-Python: >=3.11
17
- Requires-Dist: yuanboot==0.2.0
16
+ Requires-Python: >=3.6.2
17
+ Requires-Dist: yuanboot==0.3.0
18
18
  Provides-Extra: admin
19
- Requires-Dist: yuanboot[admin]==0.2.0; extra == 'admin'
19
+ Requires-Dist: yuanboot[admin]==0.3.0; extra == 'admin'
20
20
  Provides-Extra: all
21
- Requires-Dist: yuanboot[all]==0.2.0; extra == 'all'
21
+ Requires-Dist: yuanboot[all]==0.3.0; extra == 'all'
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  # yuanbootctl-python
25
25
 
26
26
  作者:jackson liang。Copyright (c) 2026 jackson liang。
27
27
 
28
- yuanboot-python 的项目工具,支持创建项目、运行应用和构建业务包。Python 3.11+。
28
+ yuanboot-python 的项目工具,支持创建项目、运行应用和构建业务包。Python 3.6.2+。
29
29
 
30
30
  ## 安装
31
31
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  作者:jackson liang。Copyright (c) 2026 jackson liang。
4
4
 
5
- yuanboot-python 的项目工具,支持创建项目、运行应用和构建业务包。Python 3.11+。
5
+ yuanboot-python 的项目工具,支持创建项目、运行应用和构建业务包。Python 3.6.2+。
6
6
 
7
7
  ## 安装
8
8
 
@@ -0,0 +1,21 @@
1
+ """Select a build backend compatible with the active Python interpreter."""
2
+
3
+ import sys
4
+
5
+ if sys.version_info >= (3, 8):
6
+ from hatchling import build as backend
7
+ else:
8
+ from setuptools import build_meta as backend
9
+
10
+ build_wheel = backend.build_wheel
11
+ build_sdist = backend.build_sdist
12
+ get_requires_for_build_wheel = backend.get_requires_for_build_wheel
13
+ get_requires_for_build_sdist = backend.get_requires_for_build_sdist
14
+ for hook in (
15
+ "prepare_metadata_for_build_wheel",
16
+ "build_editable",
17
+ "get_requires_for_build_editable",
18
+ "prepare_metadata_for_build_editable",
19
+ ):
20
+ if hasattr(backend, hook):
21
+ globals()[hook] = getattr(backend, hook)
@@ -1,13 +1,19 @@
1
1
  [build-system]
2
- requires = ["hatchling>=1.27,<2"]
3
- build-backend = "hatchling.build"
2
+ requires = [
3
+ "hatchling>=1.27,<2; python_version >= '3.8'",
4
+ "setuptools>=59.6,<60; python_version < '3.8'",
5
+ "wheel<0.38; python_version < '3.8'",
6
+ "toml>=0.10.2,<1; python_version < '3.8'",
7
+ ]
8
+ build-backend = "yuanboot_build"
9
+ backend-path = ["_build_backend"]
4
10
 
5
11
  [project]
6
12
  name = "yuanbootctl-python"
7
- version = "0.2.0"
13
+ version = "0.3.0"
8
14
  description = "Project scaffolding, run and build tools for yuanboot-python"
9
15
  readme = "README.md"
10
- requires-python = ">=3.11"
16
+ requires-python = ">=3.6.2"
11
17
  license = "MIT"
12
18
  authors = [{name = "jackson liang"}]
13
19
  keywords = ["yuanboot", "cli", "fastapi", "scaffolding"]
@@ -16,11 +22,11 @@ classifiers = [
16
22
  "Environment :: Console",
17
23
  "Topic :: Software Development :: Code Generators",
18
24
  ]
19
- dependencies = ["yuanboot==0.2.0"]
25
+ dependencies = ["yuanboot==0.3.0"]
20
26
 
21
27
  [project.optional-dependencies]
22
- all = ["yuanboot[all]==0.2.0"]
23
- admin = ["yuanboot[admin]==0.2.0"]
28
+ all = ["yuanboot[all]==0.3.0"]
29
+ admin = ["yuanboot[admin]==0.3.0"]
24
30
 
25
31
  [project.urls]
26
32
  Homepage = "https://github.com/liangboceo/yuanboot-python"
@@ -34,4 +40,4 @@ core-metadata-version = "2.4"
34
40
 
35
41
  [tool.hatch.build.targets.sdist]
36
42
  core-metadata-version = "2.4"
37
- include = ["/pyproject.toml", "/README.md", "/LICENSE"]
43
+ include = ["/pyproject.toml", "/README.md", "/LICENSE", "/_build_backend", "/setup.py", "/MANIFEST.in"]
@@ -0,0 +1,45 @@
1
+ """Source-install metadata for Python 3.6/3.7; shares pyproject.toml metadata."""
2
+
3
+ import runpy
4
+ from pathlib import Path
5
+
6
+ import toml
7
+ from setuptools import find_packages, setup
8
+
9
+ root = Path(__file__).resolve().parent
10
+ metadata = toml.load(str(root / "pyproject.toml"))["project"]
11
+ version = metadata.get("version")
12
+ if version is None:
13
+ version = runpy.run_path(str(root / "src/yuanboot/_version.py"))["__version__"]
14
+ source = "src" if (root / "src/yuanboot").is_dir() else "."
15
+ packages = find_packages(where=source)
16
+ data = {}
17
+ for package in packages:
18
+ folder = root / source / package.replace(".", "/")
19
+ data[package] = [
20
+ str(path.relative_to(folder))
21
+ for path in folder.rglob("*")
22
+ if path.is_file() and path.suffix != ".pyc" and "__pycache__" not in path.parts
23
+ ]
24
+ setup(
25
+ name=metadata["name"],
26
+ version=version,
27
+ description=metadata["description"],
28
+ long_description=(root / metadata["readme"]).read_text(encoding="utf-8"),
29
+ long_description_content_type="text/markdown",
30
+ author="jackson liang",
31
+ license="MIT",
32
+ python_requires=metadata["requires-python"],
33
+ install_requires=metadata.get("dependencies", []),
34
+ extras_require=metadata.get("optional-dependencies", {}),
35
+ packages=packages,
36
+ package_dir={"": source},
37
+ package_data=data,
38
+ classifiers=metadata.get("classifiers", []),
39
+ entry_points={
40
+ "console_scripts": [
41
+ name + "=" + target for name, target in metadata.get("scripts", {}).items()
42
+ ]
43
+ },
44
+ project_urls=metadata.get("urls", {}),
45
+ )