| |
@@ -5,11 +5,16 @@
|
| |
|
| |
License: ASL 2.0
|
| |
URL: https://github.com/IBM/vpc-python-sdk
|
| |
- Source0: %{pypi_source ibm-vpc}
|
| |
+ Source0: %{url}/archive/v%{version}/vpc-python-sdk-%{version}.tar.gz
|
| |
|
| |
BuildArch: noarch
|
| |
BuildRequires: python3-devel
|
| |
|
| |
+ # test dependencies are in requirements-dev.txt but mixed with coverage and linters
|
| |
+ # tox configuration uses the same file
|
| |
+ BuildRequires: python3-pytest
|
| |
+ BuildRequires: python3-responses
|
| |
+
|
| |
%global _description %{expand:
|
| |
Python client library to interact with various IBM Cloud Virtual Private Cloud
|
| |
(VPC) Service APIs.
|
| |
@@ -25,7 +30,7 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %autosetup -p1 -n ibm-vpc-%{version}
|
| |
+ %autosetup -p1 -n vpc-python-sdk-%{version}
|
| |
|
| |
|
| |
%generate_buildrequires
|
| |
@@ -42,7 +47,7 @@
|
| |
|
| |
|
| |
%check
|
| |
- %pyproject_check_import
|
| |
+ %pytest -v test/unit
|
| |
|
| |
|
| |
%files -n python3-ibm-vpc -f %{pyproject_files}
|
| |
Test collection takes a lot of time (not sure why) but at the end, it passes, see e.g. https://koji.fedoraproject.org/koji/taskinfo?taskID=80951691