Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC/WIP] move tests and avoid packaging them #1031

Merged
merged 5 commits into from
Jul 13, 2020
Merged

[RFC/WIP] move tests and avoid packaging them #1031

merged 5 commits into from
Jul 13, 2020

Commits on Jul 12, 2020

  1. tests: move to root dir

    This should ensure that tests are NOT packaged into
    release package by setuptools, as tests are development
    only
    + fixtures after moving
    
    Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
    priv-kweihmann committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    0374d7c View commit details
    Browse the repository at this point in the history
  2. setup.py: exclude all test files

    by using exclude feature of find_packages.
    py_modules are determined by new function, which
    recursively scans the base dir but omits the
    external modules.
    Plus remove now obselete package_data setting
    
    Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
    priv-kweihmann committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    c7e0979 View commit details
    Browse the repository at this point in the history
  3. MANIFEST.in: update to exclude tests

    and remove all previously used test related settings
    
    Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
    priv-kweihmann committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    7e7045c View commit details
    Browse the repository at this point in the history
  4. tools: update tool scripts after moving tests

    Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
    priv-kweihmann committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    961539c View commit details
    Browse the repository at this point in the history
  5. test: add installation test

    which installs the current codebase in a venv
    and runs 'import git' to test if codebase can be
    installed properly.
    This adds virtualenv to the test requirements
    
    Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
    priv-kweihmann committed Jul 12, 2020
    Configuration menu
    Copy the full SHA
    e0b10d9 View commit details
    Browse the repository at this point in the history