Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Add deprecation notice Fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Aug 27, 2019
1 parent 8437c7f commit 78a492c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

Deprecation Notice
==================

pytest-runner depends on deprecated features of setuptools and relys on features that break security
mechanisms in pip. For example `setup_requires` and `tests_require` bypass `pip --require-hashes`.
See also https://github.com/pypa/setuptools/issues/1684.

It is recommended that you:

- Remove 'pytest-runner' from your 'setup_requires', preferably removing the `setup_requires` option.
- Remove 'pytest' and any other testing requirements from 'tests_require', preferably removing the `setup_requires` option.
- Use a requirement-test.txt file to hold test dependencies
- Invoke tests with ``pytest``
- Another good option is to configure a ``tox.ini`` next to your ``setup.cfg`` https://tox.readthedocs.io/en/latest/

Usage
=====

Expand Down

0 comments on commit 78a492c

Please sign in to comment.