-
Notifications
You must be signed in to change notification settings - Fork 217
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 #349 from edx/cdyer/python3
Introduce python 3 compatibility.
- Loading branch information
Showing
47 changed files
with
681 additions
and
384 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
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,12 +1,13 @@ | ||
test: | ||
coverage run -m nose | ||
|
||
docs: | ||
cd doc && make html | ||
|
||
quality: | ||
pep8 | ||
script/max_pylint_violations | ||
pylint --py3k xblock | ||
|
||
package: | ||
python setup.py register sdist upload | ||
python setup.py register sdist upload | ||
|
||
test: | ||
tox -e py27,py35 | ||
|
||
docs: | ||
tox -e docs |
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,4 +1,4 @@ | ||
# Install Django requirements, if we're using the optional Django-integrated | ||
# parts of XBlock | ||
Django >= 1.8, < 1.9 | ||
django-pyfs | ||
django-pyfs >= 1.0.5 |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
lazy | ||
sphinx | ||
sphinxcontrib-napoleon==0.2.6 | ||
sphinx_rtd_theme==0.1.9 | ||
path.py |
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 |
---|---|---|
|
@@ -12,13 +12,14 @@ markupsafe | |
mock | ||
nose | ||
coverage | ||
# pinning astroid b/c it's throwing errors on 2.7.8 altho doc says it shouldn't | ||
astroid == 1.2.1 | ||
pylint == 1.3.1 | ||
astroid | ||
pylint | ||
rednose | ||
pep8 | ||
caniusepython3 | ||
diff-cover >= 0.2.1 | ||
ddt==0.8.0 | ||
tox | ||
|
||
# For docs | ||
-r doc/requirements.txt | ||
|
@@ -28,6 +29,7 @@ cookiecutter | |
|
||
# For web fragments | ||
web-fragments | ||
#git+https://github.com/edx/[email protected]#egg=web_fragments==0.1.1 | ||
|
||
# Our own XBlocks | ||
-e . | ||
|
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ rednose=1 | |
|
||
[pep8] | ||
ignore=E501,E402 | ||
exclude=doc/* | ||
exclude=doc/*,.tox/ |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py27, py35, docs | ||
|
||
[testenv] | ||
setenv = | ||
COVERAGE_FILE={envdir}/.coverage | ||
passenv = | ||
CI | ||
TRAVIS | ||
TRAVIS_* | ||
deps = | ||
-rrequirements.txt | ||
-rdjango_requirements.txt | ||
commands = | ||
coverage run -m nose | ||
coverage xml -o {env:TRAVIS_BUILD_DIR}/coverage.xml | ||
make quality | ||
whitelist_externals = make | ||
|
||
[testenv:docs] | ||
basepython=python2.7 | ||
changedir={toxinidir}/doc | ||
deps= | ||
sphinx | ||
-rrequirements.txt | ||
-rdjango_requirements.txt | ||
-rdoc/requirements.txt | ||
commands=make html |
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 +1 @@ | ||
0.5.0 | ||
1.0.0 |
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.