Init Train release

(cherry picked from commit 8a63922032f546c4848b14be3ab6b3914cde3c34)
This commit is contained in:
wangxiyuan 2021-11-16 03:27:53 +00:00 committed by openeuler-sync-bot
parent 8af3d71e28
commit 7b0a0f753d
3 changed files with 72 additions and 102 deletions

BIN
openstacksdk-0.36.5.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,136 +1,106 @@
%global _empty_manifest_terminate_build 0
%global with_doc 0
Name: python-openstacksdk
Version: 0.55.0
Release: 2
Version: 0.36.5
Release: 1
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-%{version}.tar.gz
License: Apache-2.0
URL: https://docs.openstack.org/openstacksdk/
Source0: https://files.pythonhosted.org/packages/f3/9d/82e377c5fed02d6feaf110f8679839f56b4395380400c0e366a9e30918b8/openstacksdk-0.36.5.tar.gz
BuildArch: noarch
%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}
Provides: python-openstacksdk
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-pbr >= 2.0.0
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-keystoneauth1
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-pyyaml
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
BuildRequires: python3-jsonpatch
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-cryptography
BuildRequires: python3-decorator
BuildRequires: python3-dogpile-cache
BuildRequires: python3-iso8601
BuildRequires: python3-jmespath
BuildRequires: python3-jsonpatch
BuildRequires: python3-keystoneauth1
BuildRequires: python3-munch
BuildRequires: python3-netifaces
BuildRequires: python3-os-service-types
BuildRequires: python3-requestsexceptions
BuildRequires: python3-six
# General requires
Requires: python3-pyyaml
Requires: python3-appdirs
Requires: python3-cryptography
Requires: python3-importlib_metadata
Requires: python3-decorator
Requires: python3-dogpile-cache
Requires: python3-iso8601
Requires: python3-jmespath
Requires: python3-jsonpatch
Requires: python3-keystoneauth1
Requires: python3-pbr
Requires: python3-appdirs
Requires: python3-requestsexceptions
Requires: python3-munch
Requires: python3-jmespath
Requires: python3-iso8601
Requires: python3-os-service-types
Requires: python3-dogpile-cache
Requires: python3-decorator
Requires: python3-netifaces
Requires: python3-PyYAML
Requires: python3-os-service-types
Requires: python3-pbr
Requires: python3-requestsexceptions
Requires: python3-six
%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
%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
%package help
Summary: An SDK for building applications to work with OpenStack
Provides: python3-openstacksdk-doc
%description help
A collection of libraries for building applications to work with OpenStack clouds.
%prep
%autosetup -n openstacksdk-%{version} -p1
rm -rf {,test-}requirements.txt
rm -f openstack/tests/unit/test_stats.py
%autosetup -n openstacksdk-%{version}
%build
%{py3_build}
%if 0%{?with_doc}
sphinx-build-3 -b html doc/source html
rm -rf html/.{doctrees,buildinfo}
%endif
%py3_build
%install
%{py3_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
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%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 -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-openstacksdk-tests
%{python3_sitelib}/openstack/tests
%if 0%{?with_doc}
%files -n python-openstacksdk-doc
%doc html
%license LICENSE
%endif
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.55.0-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Tue Nov 16 2021 OpenStack_SIG <openstack@openeuler.org> - 0.36.5-1
- Init package python3-openstacksdk of version 0.36.5
* Wed Jul 28 2021 huangtianhua <huangtianhua@huawei.com> 0.55.0-1
- Upgrade to 0.55.0
* Thu Jan 26 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated