-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Drop (unreleased) support for Python 3.3 and Python 3.4 (the ``pers…
…istent`` package no longer supports these versions). - Drop (unreleased) support for Python 3.5 (too difficult to build correctly -- even with pyenv -- to bother). - Drop (released) support for Python 2.6 and 3.2. - Add support for Python 3.6, 3.7, 3.8, 3.9, 3.10 (thanks to Thierry Florac). - Use pytest instead of python setup.py test -q in tox.ini. - Change how cross-version coverage is computed in tests. - Remove unused hypatia/text/ricecode.py file. - Change building of docs slightly to cope with modified github protocols. Some warnings are unearthed with newer Sphinx, which I've not caught by turning warnings into errors yet, because I don't understand them.
- Loading branch information
Showing
9 changed files
with
77 additions
and
244 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
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 @@ | ||
:mod:`hypatia` Change History | ||
============================= | ||
|
||
.. literalinclude:: ../CHANGES.txt | ||
.. include:: ../CHANGES.rst |
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
[pytest] | ||
python_files = test*.py | ||
addopts = --deselect=hypatia/tests/test_functional.py::TestCatalogQueryBase | ||
|
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,26 +1,55 @@ | ||
[tox] | ||
envlist = | ||
py27,py34,py35,py36,py37,py38,py39,py310,cover,docs | ||
py27,py36,py37,py38,py39,py310,{py2,py3}-cover,coverage,docs | ||
|
||
[testenv] | ||
commands = | ||
python setup.py -q test -q | ||
pip install -e .[testing] | ||
pytest | ||
extras = | ||
testing | ||
|
||
[testenv:cover] | ||
basepython = | ||
python3.9 | ||
commands = | ||
pip install hypatia[testing] | ||
nosetests --with-xunit --with-xcoverage | ||
[testenv:py2-cover] | ||
basepython = python2.7 | ||
commands = | ||
#coverage run setup.py -q test -q | ||
pip install -e .[testing] | ||
coverage run --source=hypatia {envbindir}/pytest | ||
coverage xml -o coverage-py2.xml | ||
setenv = | ||
COVERAGE_FILE=.coverage.py2 | ||
extras = | ||
testing | ||
|
||
# we separate coverage into its own testenv because a) "last run wins" wrt | ||
# cobertura jenkins reporting and b) pypy and jython can't handle any | ||
# combination of versions of coverage and nosexcover that i can find. | ||
[testenv:py3-cover] | ||
basepython = python3.10 | ||
commands = | ||
#coverage run setup.py -q test -q | ||
pip install -e .[testing] | ||
coverage run --source=hypatia {envbindir}/pytest | ||
coverage xml -o coverage-py3.xml | ||
setenv = | ||
COVERAGE_FILE=.coverage.py3 | ||
extras = | ||
testing | ||
|
||
[testenv:docs] | ||
[testenv:coverage] | ||
basepython = | ||
python3.9 | ||
commands = | ||
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html | ||
python2.7 | ||
skip_install = true | ||
commands = | ||
coverage erase | ||
coverage combine | ||
coverage xml | ||
coverage report -m --fail-under=100 | ||
deps = | ||
Sphinx | ||
coverage | ||
setenv = | ||
COVERAGE_FILE=.coverage | ||
|
||
[testenv:docs] | ||
whitelist_externals = make | ||
commands = | ||
make -C docs {posargs:html} BUILDDIR={envdir} "SPHINXOPTS=-E" | ||
extras = | ||
docs |