pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
5.89k stars 292 forks source link

1.4.1: pytest still cannot find any units in backend/ #329

Open kloczek opened 2 years ago

kloczek commented 2 years ago

I'm packaging 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.

Here is pytest output:

```console + cd hatch-hatchling-v1.4.1 + cd backend + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hatchling-1.4.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hatchling-1.4.1-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/tkloczko/rpmbuild/BUILD/hatch-hatchling-v1.4.1/backend plugins: cov-3.0.0, mock-3.8.2 collected 0 items ========================================================================== no tests ran in 0.05s =========================================================================== ```
kloczek commented 2 years ago

ping ..

ofek commented 2 years ago

This is low priority with high effort required

kloczek commented 2 years ago

No problem. Take your time 😋 As I don't see any other effects I've temporary disabled test suite execution in my rpm spec file assuming that it is probably more likely test suite issue than issue with tested code 😄

mtelka commented 1 year ago

It looks like tests are located in https://github.com/pypa/hatch/tree/master/tests/backend but it is unclear how to run them for hatchling sdist. Any suggestion?