freedos-micro-python 0.1.0__tar.gz → 0.1.2__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 (44) hide show
  1. {freedos_micro_python-0.1.0/src/freedos_micro_python.egg-info → freedos_micro_python-0.1.2}/PKG-INFO +2 -2
  2. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/pyproject.toml +2 -2
  3. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/cli.py +8 -0
  4. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/scripts/build.sh +1 -1
  5. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/scripts/build_port.sh +10 -2
  6. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2/src/freedos_micro_python.egg-info}/PKG-INFO +2 -2
  7. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python.egg-info/requires.txt +1 -1
  8. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/LICENSE +0 -0
  9. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/README.md +0 -0
  10. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/setup.cfg +0 -0
  11. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/__init__.py +0 -0
  12. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/gen_qstrdefs.py +0 -0
  13. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/arch/bpstruct.h +0 -0
  14. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/arch/cc.h +0 -0
  15. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/arch/epstruct.h +0 -0
  16. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/base64_uc386dos.c +0 -0
  17. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/file_uc386dos.c +0 -0
  18. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/lib/axtls/crypto/crypto.h +0 -0
  19. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/lwip-arch-cc.h +0 -0
  20. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/lwip_uc386dos.c +0 -0
  21. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/lwipopts.h +0 -0
  22. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/math_gamma.c +0 -0
  23. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/modtime_uc386dos.c +0 -0
  24. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/modtls_axtls_uc386dos.c +0 -0
  25. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/mpconfigport.h +0 -0
  26. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/mphal_uc386dos.c +0 -0
  27. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/mphalport.h +0 -0
  28. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/os_uc386dos.c +0 -0
  29. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/path_uc386dos.c +0 -0
  30. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/pktdrv_uc386dos.c +0 -0
  31. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/qstrdefsport.h +0 -0
  32. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/shutil_uc386dos.c +0 -0
  33. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/tempfile_uc386dos.c +0 -0
  34. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/time_real_uc386dos.c +0 -0
  35. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/uc386_net_uc386dos.c +0 -0
  36. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/urllib_parse_uc386dos.c +0 -0
  37. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/port/urllib_uc386dos.c +0 -0
  38. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python/scripts/fetch.sh +0 -0
  39. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python.egg-info/SOURCES.txt +0 -0
  40. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python.egg-info/dependency_links.txt +0 -0
  41. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python.egg-info/entry_points.txt +0 -0
  42. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/src/freedos_micro_python.egg-info/top_level.txt +0 -0
  43. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/tests/test_gen_qstrdefs.py +0 -0
  44. {freedos_micro_python-0.1.0 → freedos_micro_python-0.1.2}/tests/test_smoke.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: freedos_micro_python
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: MicroPython port for FreeDOS / i386 — built end-to-end through the uc386 C23 compiler
5
5
  Author: freedos_micro_python contributors
6
6
  License-Expression: MIT
@@ -21,7 +21,7 @@ Classifier: Topic :: System :: Emulators
21
21
  Requires-Python: >=3.10
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
- Requires-Dist: uc386>=0.1.0
24
+ Requires-Dist: uc386>=0.1.1
25
25
  Provides-Extra: dev
26
26
  Requires-Dist: pytest>=7.0; extra == "dev"
27
27
  Dynamic: license-file
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "freedos_micro_python"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "MicroPython port for FreeDOS / i386 — built end-to-end through the uc386 C23 compiler"
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
11
  requires-python = ">=3.10"
12
12
  dependencies = [
13
- "uc386>=0.1.0",
13
+ "uc386>=0.1.1",
14
14
  ]
15
15
  authors = [
16
16
  {name = "freedos_micro_python contributors"}
@@ -65,6 +65,14 @@ def _run_script(name: str, workdir: Path, extra_args: list[str]) -> int:
65
65
  env["UC386_LIB_INCLUDE"] = str(_uc386_lib_include())
66
66
  env["FREEDOS_MP_PORT_DIR"] = str(_port_dir())
67
67
  env["FREEDOS_MP_SCRIPTS_DIR"] = str(_scripts_dir())
68
+ env["FREEDOS_MP_GEN_QSTRDEFS"] = str(
69
+ _scripts_dir().parent / "gen_qstrdefs.py"
70
+ )
71
+ # Pin the python the scripts invoke for `python -m uc386.main` to
72
+ # the same interpreter that's running this CLI — it's the one with
73
+ # uc386 installed. Without this the scripts fall back to
74
+ # `command -v python3.12` and hit the system python without uc386.
75
+ env["PYTHON"] = sys.executable
68
76
  workdir.mkdir(parents=True, exist_ok=True)
69
77
  _ensure_port_symlink(workdir)
70
78
  return subprocess.run(
@@ -219,7 +219,7 @@ if [ ! -f build/genhdr/qstrdefs.generated.h ]; then
219
219
  grep -hoE "^[[:space:]]*X\([A-Z][A-Z0-9_]*\)" \
220
220
  upstream/py/moderrno.c \
221
221
  | sed -E 's/^[[:space:]]*X\(([A-Z][A-Z0-9_]*)\)/MP_QSTR_\1/'
222
- } | "$PYTHON" gen_qstrdefs.py --bytes-hash 2
222
+ } | "$PYTHON" "${FREEDOS_MP_GEN_QSTRDEFS:-$(dirname "$0")/../gen_qstrdefs.py}" --bytes-hash 2
223
223
  } > build/genhdr/qstrdefs.generated.h
224
224
  fi
225
225
  # Always regenerate moduledefs.h — it's small and the cache turned
@@ -63,8 +63,16 @@ fi
63
63
  # moduledefs.h, mpversion.h, root_pointers.h) that py/*.c expects.
64
64
  # Run it first if those aren't here yet.
65
65
  if [ ! -f build/genhdr/qstrdefs.generated.h ]; then
66
- echo "micropython: stub headers missing; running ./build.sh first." >&2
67
- ./build.sh > /dev/null
66
+ # Look for build.sh next to ourselves first (CLI sets
67
+ # FREEDOS_MP_SCRIPTS_DIR; standalone caller likely has it as
68
+ # a sibling of build_port.sh).
69
+ BUILD_SH="${FREEDOS_MP_SCRIPTS_DIR:-$(dirname "$0")}/build.sh"
70
+ if [ ! -x "$BUILD_SH" ]; then
71
+ echo "micropython: cannot find build.sh; tried $BUILD_SH" >&2
72
+ exit 1
73
+ fi
74
+ echo "micropython: stub headers missing; running build.sh first." >&2
75
+ "$BUILD_SH" > /dev/null
68
76
  fi
69
77
 
70
78
  # Two ways this script gets its uc386 paths:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: freedos_micro_python
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: MicroPython port for FreeDOS / i386 — built end-to-end through the uc386 C23 compiler
5
5
  Author: freedos_micro_python contributors
6
6
  License-Expression: MIT
@@ -21,7 +21,7 @@ Classifier: Topic :: System :: Emulators
21
21
  Requires-Python: >=3.10
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
- Requires-Dist: uc386>=0.1.0
24
+ Requires-Dist: uc386>=0.1.1
25
25
  Provides-Extra: dev
26
26
  Requires-Dist: pytest>=7.0; extra == "dev"
27
27
  Dynamic: license-file
@@ -1,4 +1,4 @@
1
- uc386>=0.1.0
1
+ uc386>=0.1.1
2
2
 
3
3
  [dev]
4
4
  pytest>=7.0