I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
"setup.py build"
"setup.py install --root </install/prefix>"
"pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Here is the pytest output:
tests/test_api.py: 1 warning
tests/test_uri.py: 254 warnings
tests/test_unicode_support.py: 3 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:172: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed.
warnings.warn(
tests/test_api.py: 1 warning
tests/test_uri.py: 253 warnings
tests/test_unicode_support.py: 3 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:144: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed.
warnings.warn(
tests/test_api.py: 1 warning
tests/test_uri.py: 246 warnings
tests/test_unicode_support.py: 2 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:191: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed.
warnings.warn(
tests/test_api.py: 1 warning
tests/test_uri.py: 245 warnings
tests/test_unicode_support.py: 2 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:210: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed.
warnings.warn(
tests/test_api.py: 1 warning
tests/test_uri.py: 244 warnings
tests/test_unicode_support.py: 2 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:229: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
2811 passed, 1517 warnings in 6.75s
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo().terminate()'.
This is literally a warning in the library itself that's under test because it's testing code that is deprecated. Not going to fix this before removing that code
I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
tests/test_api.py: 1 warning tests/test_uri.py: 254 warnings tests/test_unicode_support.py: 3 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:172: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(
tests/test_api.py: 1 warning tests/test_uri.py: 253 warnings tests/test_unicode_support.py: 3 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:144: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(
tests/test_api.py: 1 warning tests/test_uri.py: 246 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:191: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(
tests/test_api.py: 1 warning tests/test_uri.py: 245 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:210: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(
tests/test_api.py: 1 warning tests/test_uri.py: 244 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:229: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html 2811 passed, 1517 warnings in 6.75s pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo().terminate()'.