devmap 0.3.3__py3-none-any.whl → 0.3.4__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.
devmap/_devmap.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  // @bun
3
3
 
4
4
  // src/version.ts
5
- var VERSION = "0.3.3";
5
+ var VERSION = "0.3.4";
6
6
 
7
7
  // src/install.ts
8
8
  function isIsolated(i) {
@@ -1215,6 +1215,12 @@ var CANDIDATES = [
1215
1215
  "C:\\tools\\vcpkg\\vcpkg.exe",
1216
1216
  "C:\\vcpkg\\vcpkg"
1217
1217
  ];
1218
+ function parseVcpkgVersion(out) {
1219
+ if (!out)
1220
+ return null;
1221
+ const m = out.match(/version\s+(\d{4}-\d{2}-\d{2}(?:-[0-9a-f]+)?)/i);
1222
+ return m ? m[1] : null;
1223
+ }
1218
1224
  async function findVcpkg() {
1219
1225
  const cands = [];
1220
1226
  const seen = new Set;
@@ -1235,7 +1241,7 @@ async function findVcpkg() {
1235
1241
  }
1236
1242
  for (const p of whichInDirs("vcpkg", pathDirs()))
1237
1243
  add(p, true);
1238
- const versions = await pool(cands, 8, (c) => versionOfAsync(c.path, ["version", "--version"]));
1244
+ const versions = await pool(cands, 8, (c) => runBinAsync(c.path, ["version"], 9000).then(parseVcpkgVersion));
1239
1245
  return cands.map((c, i) => ({ path: c.path, onPath: c.onPath, version: versions[i] }));
1240
1246
  }
1241
1247
  function parseList(out) {
@@ -2063,7 +2069,7 @@ function renderEnvironments(env) {
2063
2069
  const rule = " " + "─".repeat(40);
2064
2070
  if (env.vcpkg?.installed) {
2065
2071
  console.log(rule);
2066
- console.log(` \x1B[1mvcpkg\x1B[0m ${plur(env.vcpkg.packages.length, "package")} (\x1B[33m${plur(env.vcpkg.installs.length, "install")}\x1B[0m)`);
2072
+ console.log(` \x1B[1mvcpkg\x1B[0m ${plur(env.vcpkg.packages.length, "package")} (\x1B[33m${plur(env.vcpkg.installs.length, "vcpkg copy", "vcpkg copies")}\x1B[0m)`);
2067
2073
  for (const p of env.vcpkg.packages.slice(0, 6))
2068
2074
  console.log(` ${p.name}@${p.version} \x1B[2m${p.triplet}\x1B[0m`);
2069
2075
  }
@@ -2143,7 +2149,7 @@ function renderMarkdownLite(m) {
2143
2149
  const env = m.environments || {};
2144
2150
  const envLines = [];
2145
2151
  if (env.vcpkg?.installed)
2146
- envLines.push(`- vcpkg: ${plur(env.vcpkg.packages.length, "package")} / ${plur(env.vcpkg.installs.length, "install")}`);
2152
+ envLines.push(`- vcpkg: ${plur(env.vcpkg.packages.length, "package")} / ${plur(env.vcpkg.installs.length, "vcpkg copy", "vcpkg copies")}`);
2147
2153
  if (env.pip?.perInterpreter?.length)
2148
2154
  envLines.push(`- pip: ${plur(env.pip.perInterpreter.length, "interpreter")} / ${plur(env.pip.perInterpreter.reduce((a, p) => a + p.packages.length, 0), "package")}`);
2149
2155
  if (env.apt?.available)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmap
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Map your machine's dev environment and surface issues (PATH conflicts, ghost binaries, multi-version collisions). fastfetch-for-dev-tools. This PyPI package ships the real devmap CLI (a bundled JavaScript app launched via Node.js or Bun), so `pip install devmap && devmap` works standalone.
5
5
  Author: devmap contributors
6
6
  License: MIT
@@ -0,0 +1,7 @@
1
+ devmap/__init__.py,sha256=4Ek7Di0FYYl76FKnHJ8VYiJPHlUTfoqyBB_hul_pFbk,1728
2
+ devmap/_devmap.mjs,sha256=CiAlcYxdruTFDH2BqFIulpEq1DQ0-HRZGKMg9zP4UQU,79539
3
+ devmap-0.3.4.dist-info/METADATA,sha256=0VC6E7S2d6h97lFCi2_vc3mT6d20BqQXi0PJ1JJNwZA,1633
4
+ devmap-0.3.4.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
5
+ devmap-0.3.4.dist-info/entry_points.txt,sha256=FOQKZCLz0WGWemrTw0suYRqKWrUB4_XJ2Gkrw60ZEcg,39
6
+ devmap-0.3.4.dist-info/top_level.txt,sha256=QeomiD_JKcjSd_jTZv0WJF3darUb2sUsxmocjgYJ6Qc,7
7
+ devmap-0.3.4.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- devmap/__init__.py,sha256=4Ek7Di0FYYl76FKnHJ8VYiJPHlUTfoqyBB_hul_pFbk,1728
2
- devmap/_devmap.mjs,sha256=nV-CLxBCkJuZlOpjpZsCfeLy72cziE37my4FDn7mrSM,79324
3
- devmap-0.3.3.dist-info/METADATA,sha256=bHUZrZxoalNghQbLYBAfbt4JCPUKRQME6laOV8N-VFc,1633
4
- devmap-0.3.3.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
5
- devmap-0.3.3.dist-info/entry_points.txt,sha256=FOQKZCLz0WGWemrTw0suYRqKWrUB4_XJ2Gkrw60ZEcg,39
6
- devmap-0.3.3.dist-info/top_level.txt,sha256=QeomiD_JKcjSd_jTZv0WJF3darUb2sUsxmocjgYJ6Qc,7
7
- devmap-0.3.3.dist-info/RECORD,,
File without changes