7ee2f07 Move module under src/, add pyproject.toml, drop pytest-cov

Authored and Committed by adamwill 4 years ago
    Move module under src/, add pyproject.toml, drop pytest-cov
    
    This moves the Python module under src/ , for reasons discussed
    at https://hynek.me/articles/testing-packaging/ : essentially
    it's good practice to *not* have the module directly importable
    from the top-level working directory.
    
    The convenience wrapper for running the CLI direct from the
    top-level directory and the `checkwiki` test script are updated
    to still work with the module moved like this. We also update the
    tox (CI) configuration to work with it, by building an sdist and
    testing that, rather than testing the contents of the working
    directory: this is a stronger test (as we ultimately deploy via
    sdist, so we need to make sure the sdist we build works). We also
    update setup.py for the change.
    
    We add pyproject.toml to express that setuptools-git is needed
    to build the sdist correctly, and we switch to running coverage
    and having it call pytest versus using pytest-cov as this is
    necessary for coverage diffing to work correctly with the layout
    change.
    
    Signed-off-by: Adam Williamson <awilliam@redhat.com>
    
        
file modified
+3 -0
file modified
+6 -0
file added
+14
file modified
+1 -0
src/fedora_openqa/__init__.py fedora_openqa/__init__.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/cli.py fedora_openqa/cli.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/conf_test_suites.py fedora_openqa/conf_test_suites.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/config.py fedora_openqa/config.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/consumer.py fedora_openqa/consumer.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/report.py fedora_openqa/report.py
file renamed
file was renamed with no change to the file
src/fedora_openqa/schedule.py fedora_openqa/schedule.py
file renamed
file was renamed with no change to the file
file modified
+6 -5
file modified
+0 -1