Skip to content

setup_requires -> tests_requires, for pytest#296

Open
jonringer wants to merge 1 commit into
fugue:masterfrom
jonringer:patch-1
Open

setup_requires -> tests_requires, for pytest#296
jonringer wants to merge 1 commit into
fugue:masterfrom
jonringer:patch-1

Conversation

@jonringer

Copy link
Copy Markdown

pytest>=5 isn't compatible with python2 https://github.com/pytest-dev/pytest/blob/eaf7ce9a992cea7506553b7d77fdf9622900ae36/setup.cfg#L43

This makes the python2 version fail, even though it may be compatible, as noted: NixOS/nixpkgs#92561 (review)

For your CI, it looks like this is irrelevant because your tox.ini will install it anyway, and the python setup.py test command is deprecated anyway.

@jason-fugue jason-fugue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Left a small question about tests_requires vs tests_require inline.

Comment thread setup.py
setup_requires=[
'pytest>=5.4.1'
],
tests_requires=tests_requires,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this kw be tests_require?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should, sorry this PR got buried

@jonringer

Copy link
Copy Markdown
Author

Is this is still relevant? sorry, i get ~100 notifications a day and this got buried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants