markdown-up 2.0.1__tar.gz → 2.1.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.
- {markdown_up-2.0.1/src/markdown_up.egg-info → markdown_up-2.1.0}/PKG-INFO +2 -2
- {markdown_up-2.0.1 → markdown_up-2.1.0}/setup.cfg +2 -3
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/app.py +1 -15
- {markdown_up-2.0.1 → markdown_up-2.1.0/src/markdown_up.egg-info}/PKG-INFO +2 -2
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up.egg-info/SOURCES.txt +0 -1
- markdown_up-2.1.0/src/markdown_up.egg-info/requires.txt +2 -0
- markdown_up-2.0.1/src/markdown_up/static/markdown-up.tar.gz +0 -0
- markdown_up-2.0.1/src/markdown_up.egg-info/requires.txt +0 -2
- {markdown_up-2.0.1 → markdown_up-2.1.0}/LICENSE +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/README.md +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/pyproject.toml +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/__init__.py +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/__main__.py +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/main.py +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/static/__init__.py +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/static/index.html +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up/static/markdownUpIndex.bare +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up.egg-info/dependency_links.txt +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up.egg-info/entry_points.txt +0 -0
- {markdown_up-2.0.1 → markdown_up-2.1.0}/src/markdown_up.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-up
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: The MarkdownUp launcher
|
|
5
5
|
Home-page: https://github.com/craigahobbs/markdown-up-py
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Utilities
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: chisel
|
|
22
|
+
Requires-Dist: chisel>=1.4.0
|
|
23
23
|
Requires-Dist: waitress>=3.0.0
|
|
24
24
|
Dynamic: license-file
|
|
25
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = markdown-up
|
|
3
|
-
version = 2.0
|
|
3
|
+
version = 2.1.0
|
|
4
4
|
url = https://github.com/craigahobbs/markdown-up-py
|
|
5
5
|
author = Craig A. Hobbs
|
|
6
6
|
author_email = craigahobbs@gmail.com
|
|
@@ -26,7 +26,7 @@ packages = markdown_up, markdown_up.static
|
|
|
26
26
|
package_dir =
|
|
27
27
|
= src
|
|
28
28
|
install_requires =
|
|
29
|
-
chisel >= 1.
|
|
29
|
+
chisel >= 1.4.0
|
|
30
30
|
waitress >= 3.0.0
|
|
31
31
|
|
|
32
32
|
[options.entry_points]
|
|
@@ -37,7 +37,6 @@ console_scripts =
|
|
|
37
37
|
markdown_up =
|
|
38
38
|
static/*.bare
|
|
39
39
|
static/*.html
|
|
40
|
-
static/*.tar.gz
|
|
41
40
|
|
|
42
41
|
[egg_info]
|
|
43
42
|
tag_build =
|
|
@@ -10,7 +10,6 @@ from http import HTTPStatus
|
|
|
10
10
|
import importlib.resources
|
|
11
11
|
import os
|
|
12
12
|
from pathlib import PurePosixPath
|
|
13
|
-
import tarfile
|
|
14
13
|
|
|
15
14
|
import chisel
|
|
16
15
|
|
|
@@ -28,7 +27,7 @@ class MarkdownUpApplication(chisel.Application):
|
|
|
28
27
|
self.root = root
|
|
29
28
|
|
|
30
29
|
# Add the chisel documentation application
|
|
31
|
-
self.add_requests(chisel.create_doc_requests(
|
|
30
|
+
self.add_requests(chisel.create_doc_requests())
|
|
32
31
|
|
|
33
32
|
# Add the markdown-up APIs
|
|
34
33
|
self.add_request(markdown_up_index)
|
|
@@ -37,19 +36,6 @@ class MarkdownUpApplication(chisel.Application):
|
|
|
37
36
|
self.add_static('index.html', urls=(('GET', '/'),))
|
|
38
37
|
self.add_static('markdownUpIndex.bare')
|
|
39
38
|
|
|
40
|
-
# Markdown-Up application statics
|
|
41
|
-
with importlib.resources.files('markdown_up.static').joinpath('markdown-up.tar.gz').open('rb') as tgz:
|
|
42
|
-
with tarfile.open(fileobj=tgz, mode='r:gz') as tar:
|
|
43
|
-
for member in tar.getmembers():
|
|
44
|
-
if member.isfile():
|
|
45
|
-
self.add_request(chisel.StaticRequest(
|
|
46
|
-
member.name,
|
|
47
|
-
tar.extractfile(member).read(),
|
|
48
|
-
content_type=_CONTENT_TYPES.get(os.path.splitext(member.name)[1], 'text/plain; charset=utf-8'),
|
|
49
|
-
urls=(('GET', None),),
|
|
50
|
-
doc_group='MarkdownUp Statics'
|
|
51
|
-
))
|
|
52
|
-
|
|
53
39
|
|
|
54
40
|
def add_static(self, filename, urls=(('GET', None),), doc_group='MarkdownUp Index Statics'):
|
|
55
41
|
content_type = _CONTENT_TYPES.get(os.path.splitext(filename)[1], 'text/plain; charset=utf-8')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-up
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: The MarkdownUp launcher
|
|
5
5
|
Home-page: https://github.com/craigahobbs/markdown-up-py
|
|
6
6
|
Author: Craig A. Hobbs
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Utilities
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: chisel
|
|
22
|
+
Requires-Dist: chisel>=1.4.0
|
|
23
23
|
Requires-Dist: waitress>=3.0.0
|
|
24
24
|
Dynamic: license-file
|
|
25
25
|
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|