The forge macros are recommended in the packaging guide and making this
change now would make it a little easier when doing the work to move to
awscli-v2.
Signed-off-by: Major Hayden <major@mhtx.net>
The python-unversioned-command package is required during the testing
phase because one of the tests, `test_which_with_existing_command`,
expects `/usr/bin/python` to be `$PATH`, but Fedora only includes
`/usr/bin/python3` by default.
Signed-off-by: Major Hayden <major@redhat.com>
The source from pypi does not contain the testing files for the awscli
package. Switch to the GitHub release source to ensure testing files are
included. Add a `source_name` variable to handle the dashed name in
GitHub source and the non-dashed name in the Fedora package.
Also add python3-pyyaml for testing dependencies.
Signed-off-by: Major Hayden <major@redhat.com>
Allow unit tests to run during RPM builds.
Fedora 34/33 have botocore 1.19, but some of the new EMR-related actions in aws-cli require botocore 1.20+. By skipping those unit tests, we can run the vast majority of the other tests without issues.