8000 (bug) pytest-runner is deprecated by weikang9009 · Pull Request #157 · pysal/giddy · GitHub
[go: up one dir, main page]

Skip to content

(bug) pytest-runner is deprecated - #157

Merged
weikang9009 merged 1 commit into
pysal:masterfrom
weikang9009:pytest-runner
Jun 10, 2020
Merged

weikang9009 merged 1 commit into
pysal:masterfrom
weikang9009:pytest-runner

Conversation

@weikang9009
Copy link
Copy Markdown
Member

pytest-runner is deprecated as displayed on its pypi project page. And:

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.

The good integration practices with pytest no longer include the configuration of the two parameters ‘setup_requires’ and ‘tests_require’.

giddy has also been running into issues on conda-forge feedstock testing, and I suspect pytest-runner could be the one to blame.

2020-06-10T03:39:09.2504682Z ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)
2020-06-10T03:39:09.2512797Z ERROR: No matching distribution found for pytest-runner

@codecov-commenter
codecov-commenter commented Jun 10, 2020 •
Copy link
Copy Markdown

Codecov Report

Merging #157 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #157   +/-   ##
=======================================
  Coverage   70.46%   70.46%           
=======================================
  Files          15       15           
  Lines        1869     1869           
  Branches      266      266           
=======================================
  Hits         1317     1317           
  Misses        528      528           
  Partials       24       24           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d0b521...7ea5e9a. Read the comment docs.

@weikang9009
weikang9009 merged commit fd5bd8e into pysal:master Jun 10, 2020
@jGaboardi
jGaboardi commented Jun 10, 2020 •
Copy link
Copy Markdown
Member

FWIW, I implemented this solution in spaghetti and have had no issues with pytest-runner.

@weikang9009
Copy link
Copy Markdown
Member Author

@jGaboardi Thanks for the notes. Not sure why we had different results, but after commenting out these two parameters in setup.py, the issues with conda-forge feedstock testing are now resolved.

Since it is pytest-runner is declared to be deprecated, I would stick to the option of excluding it in case we run into anything unexpected in the future.

@jGaboardi
Copy link
Copy Markdown
Member

Since it is pytest-runner is declared to be deprecated, I would stick to the option of excluding it in case we run into anything unexpected in the future.

Your idea is better than the one I am using in spaghetti. I will update setup.py to this method.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0