summaryrefslogtreecommitdiff
path: root/tox.ini
AgeCommit message (Collapse)Author
2020-12-17Remove other references to TravisBruno Oliveira
2020-12-16Use manual trigger to prepare release PRs (#8150)Bruno Oliveira
Co-authored-by: Ran Benita <ran@unusedvar.com>
2020-12-12tox: use pip legacy resolver for regen jobRan Benita
The env var effects all of the pip installs, including regendoc which also uses setuptools-scm, so it gets the wrong version, and fails to install with the new pip resolver: ERROR: Requested regendoc from https://files.pythonhosted.org/packages/a8/5d/206e4951420bf5bbe1475c66eb06ec40d9177035e223858fee890eed0188/regendoc-0.6.1.tar.gz#sha256=db1e8c9ae02c1af559eae105bfd77ba41ed07fc8ca7030ea59db5f3f161236a4 has different version in metadata: '6.2.0'
2020-12-12tox: remove requires: pip>=20.3.1Ran Benita
Causes some trouble in CI and not really needed as old pip should still work.
2020-12-12infrastructure: Stricter tox dependensies (#8119)Anton
2020-10-28tox: remove checkqa-mypy environmentRan Benita
We run mypy through pre-commit, and we don't keep duplicate targets in tox for all of the other linters. Since this adds some (small) maintenance overhead, remove it.
2020-10-10Put smoke test deps in requirements.txt for Dependabot (#7806)Hugo van Kemenade
2020-10-03Merge pull request #7805 from hugovk/pytest-rerunfailuresHugo van Kemenade
Smoke test pytest-rerunfailures
2020-10-02Fake setuptools-scm into using version 6.2.0a1Bruno Oliveira
Due to pytest-rerunfailures latest version requiring 6.1.0, which is not tagged on master.
2020-10-02py36+: drop python3.5 in CI and setup.cfgAnthony Sottile
2020-09-29Smoke test pytest-rerunfailuresHugo van Kemenade
2020-09-27Bump attrs requirement from >=17.4.0 to >=19.2.0Ran Benita
This allows us to remove the `ATTRS_EQ_FIELD` thing which is causing some annoyance.
2020-09-23Use new pip resolver in plugins tox envBruno Oliveira
Fix #7783
2020-09-19Smoke tests for assorted plugins (#7721)Sorin Sbarnea
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Kyle Altendorf <sda@fstab.net>
2020-08-03Enforce some pydocstyle lints with flake8-docstringsRan Benita
There are some ones we *would* like to enforce, like D401 First line should be in imperative mood but have too many false positives, so I left them out.
2020-07-08Set correct version during regenBruno Oliveira
2020-06-08Add pyproject.toml support (#7247)Bruno Oliveira
2020-05-31adding towncrier wrapper script so 'tox -e docs' works natively on windows ↵Simon K
(#7266) * enable tox -e docs natively on windows using a wrapper * rename the towncrier script; run the towncrier command in a safer manner * use subprocess.call; call exit() around main on towncrier wrapper * change to sys.exit() instead of builtin exit()
2020-05-07Fix tests for python3.9Anthony Sottile
2020-05-01Let unittest frameworks deal with async functionsBruno Oliveira
Instead of trying to handle unittest-async functions in pytest_pyfunc_call, let the unittest framework handle them instead. This lets us remove the hack in pytest_pyfunc_call, with the upside that we should support any unittest-async based framework. Also included 'asynctest' as test dependency for py37-twisted, and renamed 'twisted' to 'unittestextras' to better reflect that we install 'twisted' and 'asynctest' now. This also fixes the problem of cleanUp functions not being properly called for async functions. Fix #7110 Fix #6924
2020-04-14Remove pypy (2) environment from tox.iniRan Benita
pypy refers to Pypy 2 which implements Python 2 which pytest does not support. Keep only pypy3.
2020-03-01Automate release by comment notifications (#6823)Bruno Oliveira
* Automate release by comment notifications * Only run if @pytestbot is mentioned
2020-02-29docs: use doc/en/_build/html for html output (#6842)Daniel Hahler
This will use the same directory as `make -C doc/en` then, and reflects the default location that Sphinx uses.
2020-02-12Use code highlighting if pygments is installed (#6658)Bruno Oliveira
* Use code highlighting if pygments is installed * Use colorama constants instead of bare ascii codes Could not find the exact equivalent of 'hl-reset' code using colorama constants though. * Refactor ASCII color handling into a fixture * Revert back to using explicit color codes * In Python 3.5 skip rest of tests that require ordered markup in colored output
2020-01-31tests: use `-rfEX`Daniel Hahler
`-fE` is the default in `features` now [1], but the idea is to add `X` also to it in the long run, so let's dogfood it ourselves. 1: https://github.com/pytest-dev/pytest/pull/6524 2: https://github.com/pytest-dev/pytest/pull/6524#issuecomment-577650703
2020-01-22tox: move doctesting into main testenvDaniel Hahler
This allows for `tox -e doctesting-coverage`, which would otherwise not use the "doctesting" testenv.
2020-01-20tox: add mypy-diff testenvDaniel Hahler
2020-01-15Add deploy step: publish package and release notesBruno Oliveira
Fix #6369
2020-01-14Merge pull request #6446 from blueyed/tox-mypyDaniel Hahler
tox: add mypy toxenv
2020-01-14Implement code coverage in GitHub actions (#6441)Bruno Oliveira
Implement code coverage in GitHub actions
2020-01-14tox: add mypy toxenvDaniel Hahler
This is different from what pre-commit (in "linting") runs in that it uses stubs from (test) dependencies. It would make sense to run this on CI additionally (since there is no "pre-commit --skip mypy", and a separate config is not worth it). But currently it triggers a false positive though anyway (https://github.com/erikrose/more-itertools/pull/374).
2020-01-12tox: linting: pass posargsDaniel Hahler
2020-01-11Implement code coverage in GitHub actionsBruno Oliveira
This overwrites the `codecov.yml` file in the root of the repository with `codecov-upstream.yml` file (which contains the code-cov token)´, so PRs and branches on the repository can upload coverage. Suggestion from here: https://github.com/pytest-dev/pytest/pull/6421#issuecomment-571934112 Security concerns: the token might be misused, but only to upload bogus coverage to `codecov.io`, so the team believe this is harmless. If we decide to fallback from this decision , we just need to revoke the token. Related to #6369
2019-12-20Update release notes script after CHANGELOG changed locationBruno Oliveira
2019-11-28docs: move changelog to docs/en and allow sphinx directivesDaniel Hahler
Now `tox -e docs` will also include the draft changelog for the next version (locally only). `CHANGELOG.rst` now only points to the changelog on READTHEDOCS so sphinx diretives can be used. Followup to https://github.com/pytest-dev/pytest/pull/6272
2019-11-24tox: docs: --keep-going and posargsDaniel Hahler
`--keep-going` makes sense with `-W` to see all warnings/errors. `{posargs:}` is useful for passing in custom args.
2019-11-21Added link checking to tox and release.py (#5614)Zac Hatfield-Dodds
Added link checking to tox and release.py
2019-11-12filterwarnings: ignore DeprecationWarning from noseDaniel Hahler
This comes via hypothesis: ``` % COLUMNS=80 p testing/python/metafunc.py::TestMetafunc::test_idval_hypothesis -vv --tb=short ============================= test session starts ============================== platform linux -- Python 3.7.4, pytest-3.1.4.dev721+g3367bf03b.d20191112, py-1.8.1.dev11+g34f716fe, pluggy-0.13.1.dev8+ga5130ac.d20191103 -- …/Vcs/pytest/.venv/bin/python cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('…/Vcs/pytest/.hypothesis/examples') rootdir: …/Vcs/pytest, inifile: tox.ini plugins: forked-1.1.3, hypothesis-4.44.1, cov-2.8.1, coverage-pytest-plugin-0.1, enhancements-0.0.5.dev1-gf361636-dirty, xdist-1.30.0 collected 1 item testing/python/metafunc.py::TestMetafunc::test_idval_hypothesis FAILED [100%] =================================== FAILURES =================================== ______________________ TestMetafunc.test_idval_hypothesis ______________________ .venv/lib/python3.7/site-packages/hypothesis/core.py:588: in evaluate_test_data result = self.execute(data) .venv/lib/python3.7/site-packages/hypothesis/core.py:553: in execute result = self.test_runner(data, run) .venv/lib/python3.7/site-packages/hypothesis/executors.py:56: in default_new_style_executor return function(data) .venv/lib/python3.7/site-packages/hypothesis/core.py:536: in run args, kwargs = data.draw(self.search_strategy) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:857: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/core.py:223: in do_draw return self.mapped_strategy.do_draw(data) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/collections.py:60: in do_draw return tuple(data.draw(e) for e in self.element_strategies) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/collections.py:60: in <genexpr> return tuple(data.draw(e) for e in self.element_strategies) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/strategies.py:570: in do_draw result = self.pack(data.draw(self.mapped_strategy)) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/lazy.py:156: in do_draw return data.draw(self.wrapped_strategy) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/strategies.py:570: in do_draw result = self.pack(data.draw(self.mapped_strategy)) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/collections.py:60: in do_draw return tuple(data.draw(e) for e in self.element_strategies) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/collections.py:60: in <genexpr> return tuple(data.draw(e) for e in self.element_strategies) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/strategies.py:508: in do_draw return data.draw(self.element_strategies[i], label=self.branch_labels[i]) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/lazy.py:156: in do_draw return data.draw(self.wrapped_strategy) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/strategies.py:570: in do_draw result = self.pack(data.draw(self.mapped_strategy)) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/lazy.py:156: in do_draw return data.draw(self.wrapped_strategy) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/collections.py:120: in do_draw result.append(data.draw(self.element_strategy)) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:852: in draw return strategy.do_draw(self) .venv/lib/python3.7/site-packages/hypothesis/searchstrategy/numbers.py:62: in do_draw return d.integer_range(data, self.start, self.end) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/utils.py:105: in integer_range probe = data.draw_bits(bits) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:974: in draw_bits self.__check_capacity(n_bytes) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:1019: in __check_capacity self.mark_overrun() .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:1036: in mark_overrun self.conclude_test(Status.OVERRUN) .venv/lib/python3.7/site-packages/hypothesis/internal/conjecture/data.py:1027: in conclude_test raise StopTest(self.testcounter) E hypothesis.errors.StopTest: 0 During handling of the above exception, another exception occurred: testing/python/metafunc.py:195: in test_idval_hypothesis @hypothesis.settings( .venv/lib/python3.7/site-packages/nose/__init__.py:1: in <module> from nose.core import collector, main, run, run_exit, runmodule .venv/lib/python3.7/site-packages/nose/core.py:12: in <module> from nose.loader import defaultTestLoader .venv/lib/python3.7/site-packages/nose/loader.py:21: in <module> from nose.importer import Importer, add_path, remove_path .venv/lib/python3.7/site-packages/nose/importer.py:12: in <module> from imp import find_module, load_module, acquire_model1, release_model1 /usr/lib/python3.7/imp.py:33: in <module> DeprecationWarning, stacklevel=2) E DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses ---------------------------------- Hypothesis ---------------------------------- You can add @seed(198901559535749756451579900660745168041) to this test or run pytest with --hypothesis-seed=198901559535749756451579900660745168041 to reproduce this failure. =============================== warnings summary =============================== testing/python/metafunc.py::TestMetafunc::test_idval_hypothesis …/Vcs/pytest/.venv/lib/python3.7/site-packages/unittest2/compatibility.py:143: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working class ChainMap(collections.MutableMapping): -- Docs: https://docs.pytest.org/en/latest/warnings.html =========================== short test summary info ============================ FAILED testing/python/metafunc.py::TestMetafunc::test_idval_hypothesis - Depr... ```
2019-11-06Fixed broken linksSteffen Schroeder
2019-11-06Added checklinks to tox and release.pySteffen Schroeder
2019-11-06[RDY] tox: remove platform restriction, only used for pexpect (#6068)Bruno Oliveira
[RDY] tox: remove platform restriction, only used for pexpect
2019-11-05Revert "tests: filterwarnings: do not crash with "(rm_rf)" warning"Daniel Hahler
This reverts commit 6b2bae9392f4fdbf295fbca8082e58f280c90aac.
2019-10-27tox: remove platform restriction, only used for pexpectDaniel Hahler
This would prevent TOXENV=py37-pexpect-… from running on e.g. FreeBSD. And even on Windows it is pytest's job of skipping the tests then. This was probably still from when the pexpect env was only running pexpect-based tests.
2019-10-18tox: pass TERMDaniel Hahler
Ref: https://github.com/tox-dev/tox/issues/1441
2019-10-18tests: filterwarnings: do not crash with "(rm_rf)" warningDaniel Hahler
Ref: https://github.com/pytest-dev/pytest/issues/5974
2019-10-06ci: test oldest supported attrsDaniel Hahler
2019-09-28Use 'python3' instead of 'python3.6' on toxBruno Oliveira
This allows us to use python3.7+ to use tox
2019-08-15Forward TRAVIS_REPO_SLUG env var for GH publish notesBruno Oliveira
Fix #5749
2019-08-12Publish GitHub release notes after deploymentBruno Oliveira
Fix #2933
2019-08-02Merge master into featuresDaniel Hahler
Several conflicts, mostly due to 2c402f4bd. Conflicts: .pre-commit-config.yaml src/_pytest/outcomes.py src/_pytest/python_api.py tox.ini