Just normal build, install and test cycle used on building package from non-root account:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-setuptools_scm_git_archive-1.1-8.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-setuptools_scm_git_archive-1.1-8.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra tests.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/setuptools_scm_git_archive-1.1
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, aiohttp-0.3.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, hypothesis-6.14.4, Faker-8.10.3, xprocess-0.18.1, black-0.3.12, checkdocs-2.7.1
collected 3 items
tests.py ... [100%]
============================================================================= warnings summary =============================================================================
tests.py::test_archival_to_version[1.0-data0]
/usr/lib/python3.8/site-packages/setuptools_scm/version.py:69: UserWarning: tag 'foo' no version found
warnings.warn(f"tag {tag!r} no version found")
tests.py::test_archival_to_version[1.0-data0]
tests.py::test_archival_to_version[1.1-data1]
tests.py::test_archival_to_version[1.2-data2]
/usr/lib/python3.8/site-packages/setuptools_scm/version.py:189: UserWarning: meta invoked without explicit configuration, will use defaults where required.
warnings.warn(
tests.py::test_archival_to_version[1.1-data1]
/usr/lib/python3.8/site-packages/setuptools_scm/version.py:69: UserWarning: tag 'bar' no version found
warnings.warn(f"tag {tag!r} no version found")
-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 3 passed, 5 warnings in 0.16s =======================================================================
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(<process_name>).terminate()'.