Skip to content

Changes to allow packaging

Martin Hoyer requested to merge mhoyer/python-stqe:master into master

The goal of these changes is to prepare the project for being able to be packaged and uploaded pypi.org. If/when this gets merged, changes to gitlab-ci will follow to allow automated packaging on release.

  • Converting 'conf' and 'tests' to project_data

tldr: conf and tests dirs are now under stqe dir.
This is probably the biggest change. The way installation currently works is to gather all files and declare them as data_files. While it was functional, it was broken, as duplicate files or empty directories were observed after installation. I think one of the problem is that find_packages() is also marking conf and tests as python modules.
Having 'conf' and 'tests' as project_data complies current packaging documentation and allow us to find PATH dynamically on all OS/python versions, as it will be a part of the stqe module.

  • Rewriting setup.py
  • fmf_tools.py get_stqe_path() is not hard-coding path anymore and is used in stqe-test
  • Updating license to GNU GPL v3 and correctly specify it in setup.py
  • Updating README

Merge request reports