Accepting request 487997 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/487997 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-traitlets?expand=0&rev=3
This commit is contained in:
parent
1633e07766
commit
22c35d6736
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 14 17:05:33 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 18:54:06 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-traitlets
|
||||
Version: 4.3.2
|
||||
Release: 0
|
||||
@ -24,20 +25,25 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://ipython.org
|
||||
Source: https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-decorator
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module decorator}
|
||||
BuildRequires: %{python_module ipython_genutils}
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python-ipython_genutils
|
||||
# Test requirements
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: %{python_module pytest}
|
||||
# Python 2 test requirements
|
||||
BuildRequires: python-mock
|
||||
Requires: python-decorator
|
||||
Requires: python-enum34
|
||||
Requires: python-ipython_genutils
|
||||
%ifpython2
|
||||
Requires: python-enum34
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A configuration system for Python applications.
|
||||
@ -46,17 +52,22 @@ A configuration system for Python applications.
|
||||
%setup -q -n traitlets-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
py.test
|
||||
pushd docs
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_bin_suffix} ../traitlets/tests
|
||||
}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc examples/
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/traitlets/
|
||||
%{python_sitelib}/traitlets-%{version}-py*.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user