mystmd 1.3.0__py3-none-any.whl → 1.3.1__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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mystmd
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Command line tools for MyST Markdown
5
- Project-URL: Homepage, https://github.com/executablebooks/mystmd
6
- Project-URL: Bug Tracker, https://github.com/executablebooks/mystmd/issues
7
- Project-URL: Repository, https://github.com/executablebooks/mystmd.git
5
+ Project-URL: Homepage, https://github.com/jupyter-book/mystmd
6
+ Project-URL: Bug Tracker, https://github.com/jupyter-book/mystmd/issues
7
+ Project-URL: Repository, https://github.com/jupyter-book/mystmd.git
8
8
  Author-email: Rowan Cockett <rowan@curvenote.com>
9
9
  License-Expression: MIT
10
10
  License-File: LICENSE
@@ -28,8 +28,8 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # MyST Markdown Command Line Interface, `mystmd`
30
30
 
31
- [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/executablebooks/mystmd/blob/main/LICENSE)
32
- ![CI](https://github.com/executablebooks/mystmd/workflows/CI/badge.svg)
31
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jupyter-book/mystmd/blob/main/LICENSE)
32
+ ![CI](https://github.com/jupyter-book/mystmd/workflows/CI/badge.svg)
33
33
 
34
34
  `mystmd` is a set of open-source, community-driven tools designed for scientific communication, including a powerful authoring framework that supports blogs, online books, scientific papers, reports and journals articles.
35
35
 
@@ -69,4 +69,4 @@ conda config --set channel_priority strict
69
69
  conda install mystmd
70
70
  myst init
71
71
  myst build my-doc.md --tex
72
- ```
72
+ ```
@@ -0,0 +1,8 @@
1
+ mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mystmd_py/main.py,sha256=AAcX3rJdJgYboCxwjHoCi1TdHSfBjNstbr562tjey44,1470
3
+ mystmd_py/myst.cjs,sha256=1p7ylti11os-YY6iqcthGEh1cxR5VLuLKRoE8z8XnD0,13059937
4
+ mystmd-1.3.1.dist-info/METADATA,sha256=rZJZREYgrO0lNPuOy06UhLEX1z82HUV1k4IkUBznUCg,2954
5
+ mystmd-1.3.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
6
+ mystmd-1.3.1.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
7
+ mystmd-1.3.1.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
8
+ mystmd-1.3.1.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 ExecutableBookProject
3
+ Copyright (c) 2024 Project Jupyter
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
mystmd_py/myst.cjs CHANGED
@@ -193562,7 +193562,7 @@ var {
193562
193562
  } = import_index.default;
193563
193563
 
193564
193564
  // src/version.ts
193565
- var version = "1.3.0";
193565
+ var version = "1.3.1";
193566
193566
  var version_default = version;
193567
193567
 
193568
193568
  // ../myst-cli/dist/build/build.js
@@ -288217,7 +288217,7 @@ var import_node_path16 = __toESM(require("path"), 1);
288217
288217
  var import_nbtx = __toESM(require_cjs2(), 1);
288218
288218
 
288219
288219
  // ../myst-cli/dist/version.js
288220
- var version2 = "1.3.0";
288220
+ var version2 = "1.3.1";
288221
288221
  var version_default2 = version2;
288222
288222
 
288223
288223
  // ../myst-cli/dist/utils/headers.js
@@ -288567,6 +288567,7 @@ __export(imagemagick_exports, {
288567
288567
  convert: () => convert2,
288568
288568
  convertImageToWebp: () => convertImageToWebp,
288569
288569
  extractFirstFrameOfGif: () => extractFirstFrameOfGif,
288570
+ imageMagickCommand: () => imageMagickCommand,
288570
288571
  isGif2webpAvailable: () => isGif2webpAvailable,
288571
288572
  isImageMagickAvailable: () => isImageMagickAvailable,
288572
288573
  isWebpAvailable: () => isWebpAvailable
@@ -288574,9 +288575,21 @@ __export(imagemagick_exports, {
288574
288575
  var import_node_fs9 = __toESM(require("fs"), 1);
288575
288576
  var import_node_path14 = __toESM(require("path"), 1);
288576
288577
  var import_which = __toESM(require_lib15(), 1);
288577
- function isImageMagickAvailable() {
288578
+ function magickCommandAvailable() {
288578
288579
  return import_which.default.sync("magick", { nothrow: true });
288579
288580
  }
288581
+ function convertCommandAvailable() {
288582
+ return import_which.default.sync("convert", { nothrow: true });
288583
+ }
288584
+ function isImageMagickAvailable() {
288585
+ return magickCommandAvailable() || convertCommandAvailable();
288586
+ }
288587
+ function imageMagickCommand() {
288588
+ if (!magickCommandAvailable() && convertCommandAvailable()) {
288589
+ return "convert";
288590
+ }
288591
+ return "magick";
288592
+ }
288580
288593
  function isWebpAvailable() {
288581
288594
  return import_which.default.sync("cwebp", { nothrow: true });
288582
288595
  }
@@ -288617,7 +288630,7 @@ async function extractFirstFrameOfGif(session, gif, writeFolder) {
288617
288630
  if (import_node_fs9.default.existsSync(png)) {
288618
288631
  session.log.debug(`Cached file found for extracted GIF: ${gif}`);
288619
288632
  } else {
288620
- const executable = `magick -density 600 -colorspace RGB ${gif}[0] ${png}`;
288633
+ const executable = `${imageMagickCommand()} -density 600 -colorspace RGB ${gif}[0] ${png}`;
288621
288634
  session.log.debug(`Executing: ${executable}`);
288622
288635
  const exec3 = makeExecutable(executable, session.log);
288623
288636
  try {
@@ -288645,7 +288658,7 @@ async function convert2(inputExtension, outputExtension, session, input3, writeF
288645
288658
  session.log.debug(`Cached file found for converted ${inputFormatUpper}: ${input3}`);
288646
288659
  return filename;
288647
288660
  } else {
288648
- const executable = `magick -density 600 -colorspace RGB ${input3}${(options === null || options === void 0 ? void 0 : options.trim) ? " -trim" : ""} ${output2}`;
288661
+ const executable = `${imageMagickCommand()} -density 600 -colorspace RGB ${input3}${(options === null || options === void 0 ? void 0 : options.trim) ? " -trim" : ""} ${output2}`;
288649
288662
  session.log.debug(`Executing: ${executable}`);
288650
288663
  const exec3 = makeExecutable(executable, createImagemagikLogger(session));
288651
288664
  try {
@@ -288707,11 +288720,11 @@ async function convertImageToWebp(session, image6, { quality = 80, overwrite = f
288707
288720
  };
288708
288721
  const convertImg = makeExecutable(`cwebp -q ${quality} "${image6}" -o "${webp}"`, debugLogger2);
288709
288722
  const convertGif = makeExecutable(`gif2webp -q ${quality} "${image6}" -o "${webp}"`, debugLogger2);
288710
- const convertPdfPng = makeExecutable(`magick -density 600 -colorspace RGB ${image6} -trim ${png}`, debugLogger2);
288723
+ const convertPdfPng = makeExecutable(`${imageMagickCommand()} -density 600 -colorspace RGB ${image6} -trim ${png}`, debugLogger2);
288711
288724
  const convertPdfWebP = makeExecutable(`cwebp -q ${quality} "${png}" -o "${webp}"`, debugLogger2);
288712
288725
  try {
288713
288726
  if (import_node_path14.default.extname(image6) === ".pdf") {
288714
- if (!isImageMagickAvailable() && !isWebpAvailable()) {
288727
+ if (!isImageMagickAvailable() || !isWebpAvailable()) {
288715
288728
  addWarningForFile(session, image6, `Could not convert from image ${image6} to webp:
288716
288729
  imagemagick and cwebp are required
288717
288730
  `, "warn", { ruleId: RuleId.imageFormatOptimizes });
@@ -296468,7 +296481,7 @@ async function writeTOCToConfigFile(project, srcPath, dstPath) {
296468
296481
  } catch (err) {
296469
296482
  const errorMessage = lines.map((line2) => ` ${line2}`).join("\n");
296470
296483
  throw new Error(`Invalid YAML was generated when attempting to write the table-of-contents to ${dstPath}.
296471
- This should not happenm please file a bug report at https://github.com/executablebooks/mystmd.
296484
+ This should not happenm please file a bug report at https://github.com/jupyter-book/mystmd.
296472
296485
  The invalid TOC contents are as follows:
296473
296486
  ${errorMessage}`);
296474
296487
  }
@@ -302896,7 +302909,7 @@ function renderImports(kind, output2, imports, packages, preamble) {
302896
302909
  }
302897
302910
 
302898
302911
  // ../jtex/dist/version.js
302899
- var version3 = "1.0.17";
302912
+ var version3 = "1.0.18";
302900
302913
  var version_default3 = version3;
302901
302914
 
302902
302915
  // ../jtex/dist/jtex.js
@@ -1,8 +0,0 @@
1
- mystmd_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mystmd_py/main.py,sha256=AAcX3rJdJgYboCxwjHoCi1TdHSfBjNstbr562tjey44,1470
3
- mystmd_py/myst.cjs,sha256=JS-_Zfm1iluAUKLiEzKrfDBp_pJV-lE4uU9gQPmYCwA,13059491
4
- mystmd-1.3.0.dist-info/METADATA,sha256=vmLqEdC0FSajY0EvZnzaUYRlnEDCrIajjDYltUvGV-A,2968
5
- mystmd-1.3.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
6
- mystmd-1.3.0.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
7
- mystmd-1.3.0.dist-info/licenses/LICENSE,sha256=vgXlcTOVbxYpGiMuE9NqgguIBXAH0hJAktlaxiyZ2wg,1088
8
- mystmd-1.3.0.dist-info/RECORD,,
File without changes