Merge branch 'develop'
This commit is contained in:
6
.github/workflows/python-app.yml
vendored
6
.github/workflows/python-app.yml
vendored
@@ -16,14 +16,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.6
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install flake8==2.5.4 pytest
|
pip install flake8==3.8.4 pytest
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/python-publish.yml
vendored
2
.github/workflows/python-publish.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.8'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|||||||
13
setup.py
13
setup.py
@@ -10,7 +10,7 @@ read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read()
|
|||||||
pkgmeta = {
|
pkgmeta = {
|
||||||
'__title__': 'markdownify',
|
'__title__': 'markdownify',
|
||||||
'__author__': 'Matthew Tretter',
|
'__author__': 'Matthew Tretter',
|
||||||
'__version__': '0.6.4',
|
'__version__': '0.6.5',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ class LintCommand(Command):
|
|||||||
yield "%s.py" % filename
|
yield "%s.py" % filename
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
from flake8.engine import get_style_guide
|
from flake8.api.legacy import get_style_guide
|
||||||
flake8_style = get_style_guide(config_file='setup.cfg')
|
flake8_style = get_style_guide(config_file='setup.cfg')
|
||||||
paths = self.distribution_files()
|
paths = self.distribution_files()
|
||||||
report = flake8_style.check_files(paths)
|
report = flake8_style.check_files(paths)
|
||||||
@@ -70,13 +70,13 @@ setup(
|
|||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
setup_requires=[
|
setup_requires=[
|
||||||
'flake8',
|
'flake8>=3.8,<4',
|
||||||
],
|
],
|
||||||
tests_require=[
|
tests_require=[
|
||||||
'pytest',
|
'pytest>=6.2,<7',
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'beautifulsoup4', 'six'
|
'beautifulsoup4>=4.9,<5', 'six>=1.15,<2'
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Environment :: Web Environment',
|
'Environment :: Web Environment',
|
||||||
@@ -87,6 +87,9 @@ setup(
|
|||||||
'Programming Language :: Python :: 2.5',
|
'Programming Language :: Python :: 2.5',
|
||||||
'Programming Language :: Python :: 2.6',
|
'Programming Language :: Python :: 2.6',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
'Topic :: Utilities'
|
'Topic :: Utilities'
|
||||||
],
|
],
|
||||||
cmdclass={
|
cmdclass={
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from markdownify import markdownify as md
|
|||||||
|
|
||||||
|
|
||||||
def test_underscore():
|
def test_underscore():
|
||||||
assert md('_hey_dude_') == '\_hey\_dude\_'
|
assert md('_hey_dude_') == r'\_hey\_dude\_'
|
||||||
|
|
||||||
|
|
||||||
def test_xml_entities():
|
def test_xml_entities():
|
||||||
|
|||||||
Reference in New Issue
Block a user