Skip to content

Commit

Permalink
Add Python 3.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Jan 29, 2017
1 parent acb3366 commit dd5f6af
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"

install:
- "pip install -e '.[test]'"
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PYPI_REPO ?= pypi
NOSETESTS ?= $(shell command -v nosetests3 nosetests | head -n 1)
NOSE2 ?= $(shell command -v nose2-3 nose2-3.4 | head -n 1)
SHELL := /bin/bash
PYTHON_VERSION := $(shell python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)")

.PHONY: FORCE_MAKE

Expand Down Expand Up @@ -55,7 +56,11 @@ check-flake8:

.PHONY: check-pylint
check-pylint: yaml4rst/
pylint "$<" --reports=n --rcfile .pylintrc --disable=C,I,R
if [[ "$(PYTHON_VERSION)" == "3.6" ]]; then \
echo "Skip test as pylint had issues with this version"; \
else \
pylint "$<" --reports=n --rcfile .pylintrc --disable=C,I,R; \
fi

.PHONY: check-pylint-tests
check-pylint-tests: tests/
Expand Down Expand Up @@ -145,7 +150,11 @@ install-dev: setup.py

.PHONY: docs
docs:
$(MAKE) -C "docs" html
if [[ "$(PYTHON_VERSION)" == "3.3" ]]; then \
echo "Skip test as sphinx has dropped support for this version"; \
else \
$(MAKE) -C "docs" html; \
fi

.PHONY: release-versionbump
release-versionbump: yaml4rst/_meta.py CHANGES.rst
Expand Down
4 changes: 1 addition & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Last release with Python 3.3 support
sphinx==1.4.9

sphinx
sphinx_rtd_theme
sphinx-argparse
sphinxcontrib-programoutput
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
# 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Documentation',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Text Processing',
Expand Down

0 comments on commit dd5f6af

Please sign in to comment.