lexicon icon indicating copy to clipboard operation
lexicon copied to clipboard

2.0.1: pytest cannot find any units

Open kloczek opened this issue 4 years ago • 4 comments

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>

Looks like pytest cannot find any units

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-lexicon-2.0.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-lexicon-2.0.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, 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)
Using --randomly-seed=815990216
rootdir: /home/tkloczko/rpmbuild/BUILD/lexicon-2.0.1, configfile: pytest.ini, testpaths: tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, 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, xprocess-0.18.1, black-0.3.12, asyncio-0.15.1, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, Faker-8.12.1, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3, aiohttp-0.3.0, localserver-0.5.0, anyio-3.3.1
collected 0 items

========================================================================== no tests ran in 0.14s ===========================================================================
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()'.

kloczek avatar Sep 12 '21 22:09 kloczek

If you're using the source distribution from pypi, it's because it doesn't include pytest.ini, grabbing that from github solves it.

s-t-e-v-e-n-k avatar Sep 17 '21 03:09 s-t-e-v-e-n-k

In my build procedure I'm using tar ball from git tag https://github.com/bitprophet/lexicon/archive/refs/tags/2.0.1.tar.gz

kloczek avatar Sep 17 '21 08:09 kloczek

gentle ping .. 😋

kloczek avatar Oct 06 '22 11:10 kloczek