python-six: bump version to 1.16.0 & use `%pytest` to enable ptest (#2181)

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Muhammad Falak R Wani 2022-02-11 09:31:33 +05:30 коммит произвёл GitHub
Родитель aafaedbf8b
Коммит 7518bc47f2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 58 добавлений и 41 удалений

Просмотреть файл

@ -1,5 +1,5 @@
{
"Signatures": {
"six-1.11.0.tar.gz": "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
"six-1.16.0.tar.gz": "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"
}
}

Просмотреть файл

@ -2,8 +2,8 @@
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Name: python-six
Version: 1.11.0
Release: 6%{?dist}
Version: 1.16.0
Release: 1%{?dist}
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Languages/Python
@ -22,6 +22,7 @@ BuildRequires: python3-xml
%if %{with_check}
BuildRequires: openssl-devel
BuildRequires: curl-devel
BuildRequires: python3-pip
%endif
Requires: python2
Requires: python2-libs
@ -54,11 +55,9 @@ python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
easy_install_2=$(ls /usr/bin |grep easy_install |grep 2)
$easy_install_2 pytest
python2 test_six.py
pip3 install pytest
python3 test_six.py
export LANG=C.UTF-8
pip install pytest
%pytest test_six.py
%files
@ -71,36 +70,54 @@ python3 test_six.py
%{python3_sitelib}/*
%changelog
* Fri Dec 03 2021 Thomas Crain <thcrain@microsoft.com>
* Thu Feb 10 2022 Muhammad Falak <mwani@microsft.com>- 1.16.0-1
- Bump verstion to 1.16.0
- Add an explicit BR on `pip`
- Use `%pytest` to enable ptest
* Fri Dec 03 2021 Thomas Crain <thcrain@microsoft.com> - 1.11.0-6
- Replace easy_install usage with pip in %%check sections
* Tue Jul 06 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.11.0-5
- Adding an additional "Provides" for "python2-six" as it's the name expected by some packages.
- Removed the "sha1" macro.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 1.11.0-4
- Added %%license line automatically
* Tue Apr 07 2020 Paul Monson <paulmon@microsoft.com> 1.11.0-3
- Initial CBL-Mariner import from Photon (license: Apache2).
- Fix Source0. Fix URL. License verified.
* Mon Nov 26 2018 Tapas Kundu <tkundu@vmware.com> 1.11.0-2
- Fix makecheck
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.11.0-1
- Update to version 1.11.0
* Tue Jun 23 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-8
- Add python-setuptools to BuildRequires to avoid Update issues
* Wed Jun 21 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-7
- Fix make check.
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-6
- Use python2 explicitly
* Wed Apr 05 2017 Sarah Choi <sarahc@vmware.com> 1.10.0-5
- Remove python-setuptools from BuildRequires
* Mon Jan 09 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-4
- Added python3 site-packages.
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 1.10.0-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
- GA - Bump release of all rpms
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
- Upgrade version
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
- Initial packaging for Photon
* Tue Jul 06 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.11.0-5
- Adding an additional "Provides" for "python2-six" as it's the name expected by some packages.
- Removed the "sha1" macro.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 1.11.0-4
- Added %%license line automatically
* Tue Apr 07 2020 Paul Monson <paulmon@microsoft.com> 1.11.0-3
- Initial CBL-Mariner import from Photon (license: Apache2).
- Fix Source0. Fix URL. License verified.
* Mon Nov 26 2018 Tapas Kundu <tkundu@vmware.com> 1.11.0-2
- Fix makecheck
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.11.0-1
- Update to version 1.11.0
* Tue Jun 23 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-8
- Add python-setuptools to BuildRequires to avoid Update issues
* Wed Jun 21 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-7
- Fix make check.
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.10.0-6
- Use python2 explicitly
* Wed Apr 05 2017 Sarah Choi <sarahc@vmware.com> 1.10.0-5
- Remove python-setuptools from BuildRequires
* Mon Jan 09 2017 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-4
- Added python3 site-packages.
* Mon Oct 10 2016 ChangLee <changlee@vmware.com> 1.10.0-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
- GA - Bump release of all rpms
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 1.10.0-1
- Upgrade version
* Wed Mar 04 2015 Mahmoud Bassiouny <mbassiouny@vmware.com>
- Initial packaging for Photon

Просмотреть файл

@ -24544,8 +24544,8 @@
"type": "other",
"other": {
"name": "python-six",
"version": "1.11.0",
"downloadUrl": "https://pypi.python.org/packages/source/s/six/six-1.11.0.tar.gz"
"version": "1.16.0",
"downloadUrl": "https://pypi.python.org/packages/source/s/six/six-1.16.0.tar.gz"
}
}
},