aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2018-07-24 11:50:02 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2018-07-24 13:14:07 -0400
commitd7764996e4e08faefaf3564fa71c19751847b55f (patch)
tree94345534436cfffd884689807c3070e07797ce11
parentee54678185234f01d3de6a6334f30c9bb3417783 (diff)
downloadmarkdown-d7764996e4e08faefaf3564fa71c19751847b55f.tar.gz
markdown-d7764996e4e08faefaf3564fa71c19751847b55f.tar.bz2
markdown-d7764996e4e08faefaf3564fa71c19751847b55f.zip
Add support for PY37 and PYPY3.
-rw-r--r--.travis.yml7
-rw-r--r--markdown/extensions/legacy_attrs.py2
-rwxr-xr-xsetup.py4
-rw-r--r--tox.ini2
4 files changed, 10 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index bc61d47..01bdbd6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,8 +11,14 @@ matrix:
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
+ - python: '3.7'
+ env: TOXENV=py37
+ dist: xenial
+ sudo: true
- python: 'pypy'
env: TOXENV=pypy
+ - python: 'pypy3'
+ env: TOXENV=pypy3
- env: TOXENV=flake8
- env: TOXENV=checkspelling
@@ -37,4 +43,3 @@ after_success:
branches:
only:
- master
- - md3
diff --git a/markdown/extensions/legacy_attrs.py b/markdown/extensions/legacy_attrs.py
index 280be07..b28223f 100644
--- a/markdown/extensions/legacy_attrs.py
+++ b/markdown/extensions/legacy_attrs.py
@@ -17,7 +17,7 @@ from markdown.treeprocessors import Treeprocessor, isString
from markdown.extensions import Extension
-ATTR_RE = re.compile("\{@([^\}]*)=([^\}]*)}") # {@id=123}
+ATTR_RE = re.compile(r'\{@([^\}]*)=([^\}]*)}') # {@id=123}
class LegacyAttrs(Treeprocessor):
diff --git a/setup.py b/setup.py
index fc9ef0b..9614a49 100755
--- a/setup.py
+++ b/setup.py
@@ -56,6 +56,7 @@ setup(
maintainer_email='waylan.limberg@icloud.com',
license='BSD License',
packages=['markdown', 'markdown.extensions'],
+ python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
entry_points={
'console_scripts': [
'%s = markdown.__main__:run' % SCRIPT_NAME,
@@ -89,11 +90,10 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.2',
- 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
'Topic :: Communications :: Email :: Filters',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
'Topic :: Internet :: WWW/HTTP :: Site Management',
diff --git a/tox.ini b/tox.ini
index 7a415bf..42cdd50 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27, py32, py33, py34, py35, py36, pypy, flake8, checkspelling
+envlist = py27, py34, py35, py36, py37, pypy, pypy3, flake8, checkspelling
[testenv]
deps = -rtest-requirements.txt