neoave / mrack

Multicloud use-case based multihost async provisioner for CIs and testing during development
Apache License 2.0
11 stars 14 forks source link

fix: mrack spec fix, tox update and import fix #205

Closed Tiboris closed 1 year ago

Tiboris commented 1 year ago

fix(Podman): Fix action ssh import failing if podman provider not found

When podman provider is not installed as plugin
we should not import it in ssh.
Ignoring the import error will fix tracebacks.

chore: bump python version in tox.ini

In our automation we rely on python 3.9
setting tox.ini to same version

fix(mrack.spec): remove unecessary statement

the python_provide should be used
for python*- packages only thus removing.

fix(mrack.spec): cli package files and deps

Fixing the cli package dependency by adding
the Requires: python3-click and removing
unnecessary file run.py from lib package
and move it to cli package where it belongs
Tiboris commented 1 year ago

These are the steps where i build the image:

➜  cd mrack
➜  mrack git:(spec) ✗ python3 setup.py sdist
➜  mrack git:(spec) ✗ ls dist 
mrack-1.10.0.tar.gz
➜  mrack git:(spec) ✗ cp dist/mrack-1.10.0.tar.gz ~/rpmbuild/SOURCES 
➜  mrack git:(spec) ✗ rpmbuild -ba mrack.spec
➜  mrack git:(spec) ✗ ls ~/rpmbuild/RPMS/noarch 
mrack-1.10.0-1.fc36.noarch.rpm
mrack-cli-1.10.0-1.fc36.noarch.rpm
python3-mrack-aws-1.10.0-1.fc36.noarch.rpm
python3-mrack-beaker-1.10.0-1.fc36.noarch.rpm
python3-mracklib-1.10.0-1.fc36.noarch.rpm
python3-mrack-openstack-1.10.0-1.fc36.noarch.rpm
python3-mrack-podman-1.10.0-1.fc36.noarch.rpm
python3-mrack-virt-1.10.0-1.fc36.noarch.rpm