-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from firedrakeproject/py3-compat
Make GEM and TSFC mostly Python 3 compatible
- Loading branch information
Showing
32 changed files
with
110 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
notifications: | ||
slack: | ||
secure: ZaeRnZLbnqMqFoH10X6U9ylAM4f9Up3ebgA097FVy71VD8hjMiw3lYZb7p/WxxsaQAplOykLQ8PUeuV7rOhotzT23xYijh3TpDrmxs+TnZ6HhHnILvV85YNfLyrvniPb6kHQHVcMTDPvIVqR9MP6gZqxZlnpqUttzYgr2rCv0vl98XE/TeY+IRUldsGEdZ84WTrWsNCb/LqCyM3+FJCHaXRZcmokHJsdStZNWpC4S9MfiDzd9DzH4pg4PT4xKLIRCtguhxnc/or56LYCnTV4PRRk4rdVaHOHRoN/0EGKOG9eWTInhDY33me7cCEAtqGsngBzpehQXDfd7YI6lnWriGpYRk+BmZaRrcuA40QEQa5z0WoHA/m7ev+3S6PGniI+ZZg2OuAw2gUgRIHfqwQ/oVREvVzR0HM9yia5JkyH9y6HtbCB9GBpt8mB+kIWQ8BIhk4sdHnKbUuEumjr9msnLQwqpI4jLoN0Ap+ZNnwoK8Lzjf/qGlcSsmkCQ2H3aI0s+q7mqHg9ZqDn0cph8qAkdCpnedHYk/itK/tPssN0O9jgOgqseVV8p2BWxR39LnHEE9F1ghTtHuW1wmBfokEa9JD6OraG/jG3Og9lqulnsNNk3bHf4digrVaHKQkprI0jeAfO0QcyuMGuAsvuY++CwzVC7SjRf02S555E9jFqnek= | ||
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
|
||
env: | ||
- NUMPY_VERSION="==1.9.0" | ||
- NUMPY_VERSION=">=1.10" | ||
|
||
matrix: | ||
exclude: | ||
- python: "3.5" | ||
include: | ||
- python: "3.5" | ||
env: NUMPY_VERSION=">=1.10" | ||
|
||
before_install: | ||
- pip install -r requirements.txt | ||
- pip install flake8 | ||
- pip install flake8-future-import | ||
- pip install --upgrade pytest | ||
- pip install --upgrade "numpy$NUMPY_VERSION" | ||
|
||
install: | ||
- python setup.py install | ||
|
||
script: | ||
- py.test tests | ||
- flake8 . | ||
- py.test tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from __future__ import absolute_import | ||
from __future__ import absolute_import, print_function, division | ||
|
||
from gem.gem import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
numpy | ||
singledispatch | ||
six |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[flake8] | ||
ignore = E501,E226,E731 | ||
exclude = .git,__pycache__ | ||
ignore = | ||
E501,E226,E731, | ||
FI14,FI54, | ||
FI50,FI51,FI53 | ||
exclude = .git,__pycache__,build,dist | ||
min-version = 2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from __future__ import absolute_import, print_function, division | ||
|
||
import pytest | ||
|
||
from gem import impero_utils | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from __future__ import absolute_import | ||
from __future__ import absolute_import, print_function, division | ||
|
||
from tsfc.driver import compile_form # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.