Skip to content

Commit

Permalink
fix rebase problems and make it work nice with current master
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Sep 18, 2017
1 parent 0c498dd commit 35c18ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 40 deletions.
22 changes: 0 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
language: python
sudo: false
<<<<<<< HEAD
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- ENVIRON=py
- ENVIRON=py27-datetime,py36-datetime
- ENVIRON=isort,flake8,docs
matrix:
exclude:
- env: ENVIRON=isort,flake8,docs
- env: ENVIRON=py27-datetime,py36-datetime
=======

matrix:
>>>>>>> adjust travis-ci config to reflect new tox settings
include:
- python: "2.7"
env: TOXENV=docs,lint-py2
Expand All @@ -26,11 +10,6 @@ matrix:
- python: "2.7"
env: TOXENV=py27
- python: "2.7"
env: TOXENV=py27-rp3
- python: "2.7"
<<<<<<< HEAD
env: ENVIRON=py27-datetime
=======
env: TOXENV=py27-datetime
- python: "3.4"
env: TOXENV=py34
Expand All @@ -54,7 +33,6 @@ matrix:
- python: "pypy3"
env: TOXENV=pypy

>>>>>>> adjust travis-ci config to reflect new tox settings
install:
- travis_retry pip install -U pip setuptools
- travis_retry pip install -U -c constraints.txt tox coveralls coverage
Expand Down
2 changes: 1 addition & 1 deletion src/RestrictedPython/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
IS_PY35_OR_GREATER = _version.major == 3 and _version.minor >= 5

if IS_PY2:
basestring = basestring
basestring = basestring # NOQA: F821 # Python 2 only built-in function
else:
basestring = str
22 changes: 5 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@ deps =
{[testenv]deps}
DateTime

<<<<<<< HEAD
=======
[testenv:py27-rp3]
basepython = python2.7
commands =
coverage run {envbindir}/zope-testrunner --path=src/RestrictedPython --all -v {posargs}
deps =
-cconstraints.txt
.[test]
zope.testrunner
coverage

>>>>>>> Modification in tox.ini
[testenv:coverage]
basepython = python2.7
skip_install = true
Expand Down Expand Up @@ -139,14 +126,15 @@ commands = {[lint]commands}
whitelist_externals = {[lint]whitelist_externals}

[testenv:docs]
basepython = python2.7
commands =
sphinx-build -b html -d build/docs/doctrees docs build/docs/html
sphinx-build -b doctest docs build/docs/doctrees
deps =
-cconstraints.txt
Sphinx

commands =
python -V
sphinx-build -b html -d build/docs/doctrees docs build/docs/html
sphinx-build -b doctest docs build/docs/doctrees

[testenv:release]
skip_install = true
basepython = python2.7
Expand Down

0 comments on commit 35c18ff

Please sign in to comment.