Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.6.0: pytest warnings #276

Open
kloczek opened this issue Apr 15, 2022 · 0 comments
Open

1.6.0: pytest warnings #276

kloczek opened this issue Apr 15, 2022 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Apr 15, 2022

I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-cftime-1.6.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-cftime-1.6.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/cftime-1.6.0rel, configfile: setup.cfg, testpaths: test
plugins: forked-1.4.0, xdist-2.5.0, cov-3.0.0
collected 2262 items

test/test_cftime.py ................................................................................................................................................ [  6%]
.................................................................................................................................................................... [ 13%]
.................................................................................................................................................................... [ 20%]
.................................................................................................................................................................... [ 28%]
.................................................................................................................................................................... [ 35%]
.................................................................................................................................................................... [ 42%]
.................................................................................................................................................................... [ 49%]
.................................................................................................................................................................... [ 57%]
.................................................................................................................................................................... [ 64%]
.................................................................................................................................................................... [ 71%]
.................................................................................................................................................................... [ 78%]
.................................................................................................................................................................... [ 86%]
.................................................................................................................................................................... [ 93%]
......................................................................................................................................................               [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib64/python3.8/site-packages/coverage/inorout.py:472
  /usr/lib64/python3.8/site-packages/coverage/inorout.py:472: CoverageWarning: --include is ignored because --source is set (include-ignored)
    self.warn("--include is ignored because --source is set", slug="include-ignored")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.8.13-final-0 -----------
Name                                                                                                                       Stmts   Miss Branch BrPart  Cover   Missing
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
/home/tkloczko/rpmbuild/BUILDROOT/python-cftime-1.6.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages/cftime/__init__.py       5      0      0      0   100%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                                                                          5      0      0      0   100%

===================================================================== 2262 passed, 1 warning in 33.44s =====================================================================
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

No branches or pull requests

1 participant