mystmd 1.3.0__py3-none-any.whl → 1.3.2__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.2
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=BaPniv8thshA5DKIBoq2huFUs1Jb0zFkMxN2UIHXUkw,1511
3
+ mystmd_py/myst.cjs,sha256=XFX9-H6815oyW_UX3uV22wfn0sGx6EVLfKqIAuyV_40,13092642
4
+ mystmd-1.3.2.dist-info/METADATA,sha256=h9ZahRILugoBihFXbMxfab8I76niKxwJ77pBQCWbG54,2954
5
+ mystmd-1.3.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
6
+ mystmd-1.3.2.dist-info/entry_points.txt,sha256=eC2ol2gqS2q5E-ktkMrBSvV0tckGUcNGS-c4hEQ-_V4,45
7
+ mystmd-1.3.2.dist-info/licenses/LICENSE,sha256=4BcikqvulW5nh_MxaocO-lC7ydIX23dMbcqtNTUSxr4,1082
8
+ mystmd-1.3.2.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/main.py CHANGED
@@ -18,23 +18,29 @@ def main():
18
18
  "We recommend installing the latest LTS release, using your preferred package manager\n"
19
19
  "or following instructions here: https://nodejs.org/en/download"
20
20
  )
21
- node = pathlib.Path(NODE_LOCATION).resolve()
21
+ node = pathlib.Path(NODE_LOCATION).absolute()
22
22
 
23
- _version = subprocess.run([node, "-v"], capture_output=True, check=True, text=True).stdout
23
+ _version = subprocess.run(
24
+ [node, "-v"], capture_output=True, check=True, text=True
25
+ ).stdout
24
26
  major_version_match = re.match(r"v(\d+).*", _version)
25
-
27
+
26
28
  if major_version_match is None:
27
29
  raise SystemExit(f"MyST could not determine the version of Node.js: {_version}")
28
30
 
29
31
  major_version = int(major_version_match[1])
30
32
  if not (major_version in {18, 20, 22} or major_version > 22):
31
33
  raise SystemExit(
32
- f"MyST requires node 18, 20, or 22+; you are running node {version[1:3]}.\n\n"
34
+ f"MyST requires node 18, 20, or 22+; you are running node {major_version}.\n\n"
33
35
  "Please update to the latest LTS release, using your preferred package manager\n"
34
36
  "or following instructions here: https://nodejs.org/en/download"
35
37
  )
36
- os.execve(node, [node.name, PATH_TO_BIN_JS, *sys.argv[1:]], {**os.environ, "MYST_LANG": "PYTHON"})
37
-
38
+ os.execve(
39
+ node,
40
+ [node.name, PATH_TO_BIN_JS, *sys.argv[1:]],
41
+ {**os.environ, "MYST_LANG": "PYTHON"},
42
+ )
43
+
38
44
 
39
45
  if __name__ == "__main__":
40
46
  main()