mirror of
https://github.com/venthur/blag.git
synced 2025-11-26 13:13:06 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
713b53d0d9 | ||
|
|
2d1d0ab302 | ||
|
|
572710fab1 | ||
|
|
0b66c5fbf4 | ||
|
|
18ecd82c5a | ||
|
|
a74f36be8a | ||
|
|
dd7d6cdae2 | ||
|
|
39e6aa2676 | ||
|
|
93f6840168 | ||
|
|
e27d82ac2a | ||
|
|
88b4fc8233 | ||
|
|
8923b0bb6e | ||
|
|
2671239ac1 | ||
|
|
7aa6cebb63 | ||
|
|
4869ea0fd2 | ||
|
|
aeedd9b73a | ||
|
|
52412b8926 | ||
|
|
c0dae31b60 | ||
|
|
2366ee2def | ||
|
|
67f24642e5 | ||
|
|
f1020637e6 | ||
|
|
a4d596b79d | ||
|
|
79edd04ee8 |
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "pip"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
1
.github/workflows/python-package.yaml
vendored
1
.github/workflows/python-package.yaml
vendored
@@ -19,6 +19,7 @@ jobs:
|
|||||||
python-version:
|
python-version:
|
||||||
- 3.8
|
- 3.8
|
||||||
- 3.9
|
- 3.9
|
||||||
|
- "3.10"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
22
CHANGELOG.md
22
CHANGELOG.md
@@ -1,6 +1,24 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [0.0.0] - YYYY-MM-DD
|
## [1.1.0] - 2021-1006
|
||||||
|
|
||||||
*
|
* added Python 3.10 to list of supported versions to test against
|
||||||
|
* added dependabot to github workflows
|
||||||
|
* updated various dependencies:
|
||||||
|
* pygments 2.10.0
|
||||||
|
* sphinx 4.2.0
|
||||||
|
* twine 3.4.2
|
||||||
|
* wheel 0.37.0
|
||||||
|
* pytest 6.2.5
|
||||||
|
|
||||||
|
## [1.0.0] - 2021-08-18
|
||||||
|
|
||||||
|
* first 1.0 release!
|
||||||
|
* bump requirements of feedgenerator to 1.9.2. this version uses the
|
||||||
|
description to provide a subtitle for the feed
|
||||||
|
|
||||||
|
## [0.0.9] - 2021-06-22
|
||||||
|
|
||||||
|
* updated to jinja 3.0
|
||||||
|
* updated to sphinx 4.0
|
||||||
|
* added link to changelog
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def markdown_factory():
|
|||||||
"""
|
"""
|
||||||
md = Markdown(
|
md = Markdown(
|
||||||
extensions=[
|
extensions=[
|
||||||
'meta', 'fenced_code', 'codehilite',
|
'meta', 'fenced_code', 'codehilite', 'smarty',
|
||||||
MarkdownLinkExtension()
|
MarkdownLinkExtension()
|
||||||
],
|
],
|
||||||
output_format='html5',
|
output_format='html5',
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__VERSION__ = '0.0.7'
|
__VERSION__ = '1.1.0'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
sphinx==3.5.3
|
sphinx==4.2.0
|
||||||
twine==3.4.1
|
twine==3.4.2
|
||||||
wheel==0.36.2
|
wheel==0.37.0
|
||||||
pytest==6.2.2
|
pytest==6.2.5
|
||||||
pytest-cov==2.11.1
|
pytest-cov==2.12.1
|
||||||
flake8==3.9.0
|
flake8==3.9.2
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
markdown==3.3.4
|
markdown==3.3.4
|
||||||
feedgenerator==1.9.1
|
feedgenerator==1.9.2
|
||||||
jinja2==2.11.3
|
jinja2==3.0.1
|
||||||
pygments==2.8.1
|
pygments==2.10.0
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
meta = {}
|
meta = {}
|
||||||
@@ -20,6 +19,8 @@ setup(
|
|||||||
project_urls={
|
project_urls={
|
||||||
'Documentation': 'https://blag.readthedocs.io/',
|
'Documentation': 'https://blag.readthedocs.io/',
|
||||||
'Source': 'https://github.com/venthur/blag',
|
'Source': 'https://github.com/venthur/blag',
|
||||||
|
'Changelog':
|
||||||
|
'https://github.com/venthur/blag/blob/master/CHANGELOG.md',
|
||||||
},
|
},
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
package_data={
|
package_data={
|
||||||
|
|||||||
@@ -49,3 +49,31 @@ def test_convert_metadata(input_, expected):
|
|||||||
def test_markdown_factory():
|
def test_markdown_factory():
|
||||||
md = markdown_factory()
|
md = markdown_factory()
|
||||||
assert isinstance(md, markdown.Markdown)
|
assert isinstance(md, markdown.Markdown)
|
||||||
|
|
||||||
|
|
||||||
|
def test_smarty():
|
||||||
|
md = markdown_factory()
|
||||||
|
|
||||||
|
md1 = """
|
||||||
|
|
||||||
|
this --- is -- a test ...
|
||||||
|
|
||||||
|
"""
|
||||||
|
html, meta = convert_markdown(md, md1)
|
||||||
|
assert 'mdash' in html
|
||||||
|
assert 'ndash' in html
|
||||||
|
assert 'hellip' in html
|
||||||
|
|
||||||
|
|
||||||
|
def test_smarty_code():
|
||||||
|
md = markdown_factory()
|
||||||
|
|
||||||
|
md1 = """
|
||||||
|
```
|
||||||
|
this --- is -- a test ...
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
html, meta = convert_markdown(md, md1)
|
||||||
|
assert 'mdash' not in html
|
||||||
|
assert 'ndash' not in html
|
||||||
|
assert 'hellip' not in html
|
||||||
|
|||||||
Reference in New Issue
Block a user