forked from pool/python-injector
- Switch to github tarball to get both tests and license file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-injector?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
7a1a1aa1aa
commit
ce2b69ea31
@@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-injector
|
||||
@@ -24,9 +25,9 @@ Summary: Python dependency injection framework, inspired by Guice
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/alecthomas/injector
|
||||
Source: https://files.pythonhosted.org/packages/source/i/injector/injector-%{version}.tar.gz
|
||||
Source1: https://github.com/alecthomas/injector/blob/%{version}/COPYING
|
||||
Source: https://github.com/alecthomas/injector/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -48,13 +49,16 @@ API. Providing a Pythonic API trumps faithfulness.
|
||||
|
||||
%prep
|
||||
%setup -q -n injector-%{version}
|
||||
install -m0644 %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
||||
Reference in New Issue
Block a user