!1 python-openstacksdk打包材料提交
From: @the-moon-is-blue Reviewed-by: @joec88 Signed-off-by: @joec88
This commit is contained in:
commit
af29299d81
BIN
openstacksdk-0.50.0.tar.gz
Normal file
BIN
openstacksdk-0.50.0.tar.gz
Normal file
Binary file not shown.
132
python-openstacksdk.spec
Normal file
132
python-openstacksdk.spec
Normal file
@ -0,0 +1,132 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
|
||||
%global with_doc 0
|
||||
|
||||
Name: python-openstacksdk
|
||||
Version: 0.50.0
|
||||
Release: 1%{?dist}
|
||||
Summary: An SDK for building applications to work with OpenStack
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://www.openstack.org/
|
||||
Source0: https://pypi.io/packages/source/o/openstacksdk/openstacksdk-0.50.0.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: git
|
||||
|
||||
%description
|
||||
A collection of libraries for building applications to work with OpenStack clouds.
|
||||
|
||||
%package -n python3-openstacksdk
|
||||
Summary: An SDK for building applications to work with OpenStack
|
||||
%{?python_provide:%python_provide python3-openstacksdk}
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pbr >= 2.0.0
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-keystoneauth1
|
||||
BuildRequires: python3-appdirs
|
||||
BuildRequires: python3-requestsexceptions
|
||||
BuildRequires: python3-munch
|
||||
BuildRequires: python3-jmespath
|
||||
BuildRequires: python3-jsonschema
|
||||
BuildRequires: python3-os-service-types
|
||||
# Test requirements
|
||||
BuildRequires: python3-importlib_metadata
|
||||
BuildRequires: python3-iso8601 >= 0.1.11
|
||||
BuildRequires: python3-jsonpatch >= 1.16
|
||||
BuildRequires: python3-subunit
|
||||
BuildRequires: python3-oslotest
|
||||
BuildRequires: python3-oslo-config
|
||||
BuildRequires: python3-stestr
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-testrepository
|
||||
BuildRequires: python3-testscenarios
|
||||
BuildRequires: python3-testtools
|
||||
BuildRequires: python3-requests-mock
|
||||
BuildRequires: python3-dogpile-cache
|
||||
BuildRequires: python3-ddt
|
||||
BuildRequires: python3-decorator
|
||||
BuildRequires: python3-netifaces
|
||||
|
||||
Requires: python3-cryptography >= 2.7
|
||||
Requires: python3-importlib_metadata
|
||||
Requires: python3-jsonpatch >= 1.16
|
||||
Requires: python3-keystoneauth1 >= 3.18.0
|
||||
Requires: python3-pbr >= 2.0.0
|
||||
Requires: python3-appdirs
|
||||
Requires: python3-requestsexceptions >= 1.2.0
|
||||
Requires: python3-munch
|
||||
Requires: python3-jmespath
|
||||
Requires: python3-iso8601
|
||||
Requires: python3-os-service-types >= 1.7.0
|
||||
Requires: python3-dogpile-cache
|
||||
Requires: python3-decorator
|
||||
Requires: python3-netifaces
|
||||
Requires: python3-PyYAML
|
||||
|
||||
%description -n python3-openstacksdk
|
||||
A collection of libraries for building applications to work with OpenStack clouds.
|
||||
|
||||
%package -n python3-openstacksdk-tests
|
||||
Summary: An SDK for building applications to work with OpenStack - test files
|
||||
|
||||
Requires: python3-openstacksdk = 0.50.0-1
|
||||
|
||||
%description -n python3-openstacksdk-tests
|
||||
A collection of libraries for building applications to work with OpenStack - test files
|
||||
|
||||
%if 0%{?with_doc}
|
||||
%package -n python-openstacksdk-doc
|
||||
Summary: An SDK for building applications to work with OpenStack - documentation
|
||||
BuildRequires: python3-openstackdocstheme
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
%description -n python-openstacksdk-doc
|
||||
A collection of libraries for building applications to work with OpenStack
|
||||
clouds - documentation.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -n openstacksdk-0.50.0 -S git
|
||||
rm -rf {,test-}requirements.txt
|
||||
rm -f openstack/tests/unit/test_stats.py
|
||||
|
||||
%build
|
||||
%{py3_build}
|
||||
|
||||
%if 0%{?with_doc}
|
||||
sphinx-build-3 -b html doc/source html
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
%endif
|
||||
|
||||
%install
|
||||
%{py3_install}
|
||||
|
||||
%check
|
||||
rm -f ./openstack/tests/unit/test_hacking.py
|
||||
export OS_STDOUT_CAPTURE=true
|
||||
export OS_STDERR_CAPTURE=true
|
||||
export OS_TEST_TIMEOUT=20
|
||||
PYTHON=python3 stestr --test-path ./openstack/tests/unit run --black-regex '(test_wait_for_task_.*|.*TestOsServiceTypesVersion.*|.*test_timeout_and_failures_not_fail.*)'
|
||||
|
||||
%files -n python3-openstacksdk
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{_bindir}/openstack-inventory
|
||||
%{python3_sitelib}/openstack
|
||||
%{python3_sitelib}/openstacksdk-*.egg-info
|
||||
%exclude %{python3_sitelib}/openstack/tests
|
||||
|
||||
%files -n python3-openstacksdk-tests
|
||||
%{python3_sitelib}/openstack/tests
|
||||
|
||||
%if 0%{?with_doc}
|
||||
%files -n python-openstacksdk-doc
|
||||
%doc html
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jan 26 2021 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
Loading…
x
Reference in New Issue
Block a user