From d7764996e4e08faefaf3564fa71c19751847b55f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 24 Jul 2018 11:50:02 -0400 Subject: Add support for PY37 and PYPY3. --- .travis.yml | 7 ++++++- markdown/extensions/legacy_attrs.py | 2 +- setup.py | 4 ++-- tox.ini | 2 +- 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 -- cgit v1.2.3