Update to 6.0.0

Use unittest instead of nose and run under Xvfb
This commit is contained in:
Orion Poplawski 2020-05-10 21:21:54 -06:00
parent 29ac197402
commit 6a84b0c24f
3 changed files with 14 additions and 5 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ Traits-3.4.0.tar.gz
/traits-5.1.1.tar.gz
/traits-5.1.2.tar.gz
/traits-5.2.0.tar.gz
/traits-6.0.0.tar.gz

View File

@ -4,8 +4,8 @@
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: python-%{srcname}
Version: 5.2.0
Release: 2%{?dist}
Version: 6.0.0
Release: 1%{?dist}
Summary: Explicitly typed attributes for Python
# Images have different licenses. For image license breakdown check
# image_LICENSE.txt file.
@ -14,6 +14,7 @@ URL: http://docs.enthought.com/traits/
#Source0: https://github.com/enthought/traits/archive/%{commit}/%{modname}-%{shortcommit}.tar.gz
Source0: https://github.com/enthought/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: xorg-x11-server-Xvfb
# we don't want to provide private python extension libs
#global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
@ -39,9 +40,12 @@ Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-Cython
BuildRequires: python%{python3_pkgversion}-mock
BuildRequires: python%{python3_pkgversion}-nose
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-six
BuildRequires: python%{python3_pkgversion}-sphinx
BuildRequires: python%{python3_pkgversion}-traitsui
Requires: python%{python3_pkgversion}-numpy
Requires: python%{python3_pkgversion}-six
Provides: python%{python3_pkgversion}-%{modname} = %{version}-%{release}
@ -76,7 +80,7 @@ sed -i -e '/extra_compile_args=/d' setup.py
%check
pushd build/lib.%{python3_platform}-%{python3_version}
nosetests-%{python3_version} -v
xvfb-run %__python3 -m unittest discover -v
popd
%files -n python%{python3_pkgversion}-%{srcname}
@ -85,6 +89,10 @@ popd
%{python3_sitearch}/%{modname}*
%changelog
* Sun May 10 2020 Orion Poplawski <orion@nwra.com> - 6.0.0-1
- Update to 6.0.0
- Use unittest instead of nose and run under Xvfb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (traits-5.2.0.tar.gz) = 8673778499d294ae49952994cf5721a966c62723204dff256fbe0dc736ebccb2ea264a856bd69d15b72d2e660bac03e8a3860af7bb34a69175e7d9822be1a259
SHA512 (traits-6.0.0.tar.gz) = a49e54cab3b388a584a9009ccdb4f0ce47ddae238fa0eb7f8a9d6a91b54bf2e23f02c185c0aa278676d0887421246347a9434d59f15638ce4d8830baceef8417