summaryrefslogtreecommitdiff
path: root/setup.cfg
AgeCommit message (Collapse)Author
2021-02-10Remove duplicate '>=' in setup.cfgSylvain Bellemare
2020-12-17Add Changelog to setup.cfg (#8166)Adam Johnson
Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
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-17Update mypy 0.782 -> 0.790Ran Benita
2020-10-02py36+: remove pathlib2 compatibility shimAnthony Sottile
2020-10-02py36+: drop python3.5 in CI and setup.cfgAnthony Sottile
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-08-04typing: set warn_unreachableRan Benita
This makes mypy raise an error whenever it detects code which is statically unreachable, e.g. x: int if isinstance(x, str): ... # Statement is unreachable [unreachable] This is really neat and finds quite a few logic and typing bugs. Sometimes the code is intentionally unreachable in terms of types, e.g. raising TypeError when a function is given an argument with a wrong type. In these cases a `type: ignore[unreachable]` is needed, but I think it's a nice code hint.
2020-08-01typing: set disallow_any_genericsRan Benita
This prevents referring to a generic type without filling in its generic type parameters. The FixtureDef typing might need some more refining in the future.
2020-08-01Merge pull request #7593 from bluetech/typing-no-implicit-reexportBruno Oliveira
typing: set no_implicit_reexport
2020-07-31typing: set no_implicit_reexportRan Benita
In Python, if module A defines a name `name`, and module B does `import name from A`, then another module C can `import name from B`. Sometimes it is intentional -- module B is meant to "reexport" `name`. But sometimes it is just confusion/inconsistency on where `name` should be imported from. mypy has a flag `--no-implicit-reexport` which puts some order into this. A name can only be imported from a module if 1. The module defines the name 2. The module's `__all__` includes the name 3. The module imports the name as `from ... import .. as name`. This flag is included in mypy's `--strict` flag. I like this flag, but I realize it is a bit controversial, and in particular item 3 above is a bit unfriendly to contributors who don't know about it. So I didn't intend to add it to pytest. But while investigating issue 7589 I came upon mypy issue 8754 which causes `--no-implicit-reexport` to leak into installed libraries and causes some unexpected typing differences *in pytest* if the user uses this flag. Since the diff mostly makes sense, let's just conform to it.
2020-07-30Stop using more-itertoolsRan Benita
We barely use it; the couple places that do are not really worth the extra dependency, I think the code is clearer without it. Also simplifies one (regular) itertools usage. Also improves a check and an error message in `pytest.raises`.
2020-07-04Publish our typesRan Benita
2020-06-15Require py>=1.8.2 so we can rely on correct hash() of py.path.local on WindowsRan Benita
See https://github.com/pytest-dev/py/blob/1.8.2/CHANGELOG#L4. Fixes #7357.
2020-06-08Add pyproject.toml support (#7247)Bruno Oliveira
2020-06-05Enable check_untyped_defs mypy option for testing/ tooRan Benita
2020-06-05Enable check_untyped_defs mypy option for src/Ran Benita
This option checks even functions which are not annotated. It's a good step to ensure that existing type annotation are correct. In a Pareto fashion, the last few holdouts are always the ugliest, beware.
2020-06-04Run setup-py-upgrade and setup-cfg-fmtAnthony Sottile
- also ran `pre-commit autoupdate` - https://github.com/asottile/setup-py-upgrade - https://github.com/asottile/setup-cfg-fmt
2020-05-08Merge pull request #7185 from bluetech/sigpipeRan Benita
Handle SIGPIPE/BrokenPipeError in pytest's CLI
2020-05-08Handle EPIPE/BrokenPipeError in pytest's CLIRan Benita
Running `pytest | head -1` and similar causes an annoying error to be printed to stderr: Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> BrokenPipeError: [Errno 32] Broken pipe (or possibly even a propagating exception in older/other Python versions). The standard UNIX behavior is to handle the EPIPE silently. To recommended method to do this in Python is described here: https://docs.python.org/3/library/signal.html#note-on-sigpipe It is not appropriate to apply this recommendation to `pytest.main()`, which is used programmatically for in-process runs. Hence, change pytest's entrypoint to a new `pytest.console_main()` function, to be used exclusively by pytest's CLI, and add the SIGPIPE code there. Fixes #4375.
2020-05-07Fix tests for python3.9Anthony Sottile
2020-01-27mypy: show_error_codes=TrueDaniel Hahler
2020-01-25Remove deprecated license_file from setup.cfgHugo
Starting with wheel 0.32.0 (2018-09-29), the `license_file` option is deprecated. * https://wheel.readthedocs.io/en/stable/news.html The wheel will continue to include `LICENSE`, it is now included automatically: * https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file And `LICENSE` is still included in sdists thanks to setuptools-scm: * https://github.com/pytest-dev/pytest/pull/6348#issuecomment-567836331
2019-12-02Convert pytest.py into a packageBruno Oliveira
As discussed in https://github.com/pytest-dev/pytest/issues/3342, this is the first step to make pytest support static typing fully
2019-11-18mypy: config: use mypy_path=srcDaniel Hahler
This allows for checking files inside of "testing" without having "src/…" as an argument also.
2019-11-08setup.cfg: fix check-manifest ignore [ci skip]Daniel Hahler
2019-07-09Add rudimentary mypy type checkingRan Benita
Add a very lax mypy configuration, add it to tox -e linting, and fix/ignore the few errors that come up. The idea is to get it running before diving in too much. This enables: - Progressively adding type annotations and enabling more strict options, which will improve the codebase (IMO). - Annotating the public API in-line, and eventually exposing it to library users who use type checkers (with a py.typed file). Though, none of this is done yet. Refs https://github.com/pytest-dev/pytest/issues/3342.
2019-06-02Drop Python 2.7 and 3.4 supportBruno Oliveira
* Update setup.py requires and classifiers * Drop Python 2.7 and 3.4 from CI * Update docs dropping 2.7 and 3.4 support * Fix mock imports and remove tests related to pypi's mock module * Add py27 and 34 support docs to the sidebar * Remove usage of six from tmpdir * Remove six.PY* code blocks * Remove sys.version_info related code * Cleanup compat * Remove obsolete safe_str * Remove obsolete __unicode__ methods * Remove compat.PY35 and compat.PY36: not really needed anymore * Remove unused UNICODE_TYPES * Remove Jython specific code * Remove some Python 2 references from docs Related to #5275
2019-01-20Fix usages of py.io.safereprAnthony Sottile
2018-10-16fix url quotes in setup.cfg metadataRonny Pfannschmidt
2018-10-15move most setuptools parameters over to setup.cfgRonny Pfannschmidt
2018-10-14modernize packaging for setuptools>30.3Ronny Pfannschmidt
2017-04-23restore setuptools_scm write_to usageRonny Pfannschmidt
2017-01-10Ensure the LICENSE is included in built wheelsPhilippe Ombredanne
Otherwise it is not included by default as wheels do not honor the MANIFEST.in Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2015-07-09configure a plain "devpi upload" to create sdist and universal wheelholger krekel
2015-04-10Add support for building proper wheels (universal and proper dependency ↵Ionel Cristian Maries
evnironment markers for argparse/colorama if setuptools is new-ish). --HG-- branch : pytest-2.7
2014-10-25remove "universal wheel" again until the py26/py27 difference (argparse) ↵holger krekel
does not play a role anymore.
2014-10-24Mark pytest as a universal wheelAlex Gaynor
--HG-- branch : alex_gaynor/mark-pytest-as-a-universal-wheel-1414169551518
2014-08-21Removed marking pytest as universal, py26 and py27 are not compatible.sontek@gmail.com
--HG-- branch : fix_universal
2014-07-13Marked pytest as being a universal wheel.Alex Gaynor
--HG-- branch : alex_gaynor/marked-pytest-as-being-a-universal-wheel-1405267754279
2013-10-03add setup.cfg for building sphinx_docsholger krekel
2008-08-21[svn r57550] * fixing syntax errorhpk
* removing setup.cfg --HG-- branch : trunk
2008-08-21[svn r57529] preparing experiments with "dev" tags and pypi.hpk
--HG-- branch : trunk