From c22f5bca53e1a3ab902dfea353c7cd9e628de7b0964f51a701d13700ea028b0d Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 20 May 2019 18:19:01 +0000 Subject: [PATCH] Accepting request 704286 from home:pgajdos - version update to 0.6 * no changelog available - run tests - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/704286 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requirements-detector?expand=0&rev=5 --- 0.6.tar.gz | 3 ++ python-requirements-detector.changes | 8 +++++ python-requirements-detector.spec | 48 ++++++++++++++++++---------- requirements-detector-0.4.tar.gz | 3 -- 4 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 0.6.tar.gz delete mode 100644 requirements-detector-0.4.tar.gz diff --git a/0.6.tar.gz b/0.6.tar.gz new file mode 100644 index 0000000..713a4ee --- /dev/null +++ b/0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9d80949bfd1761c80c94f2731a6cbd5aee67f0dc120eadd076443a77c4ee9ae +size 10937 diff --git a/python-requirements-detector.changes b/python-requirements-detector.changes index afaae80..caf822a 100644 --- a/python-requirements-detector.changes +++ b/python-requirements-detector.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon May 20 12:56:43 UTC 2019 - pgajdos@suse.com + +- version update to 0.6 + * no changelog available +- run tests +- convert to singlespec + ------------------------------------------------------------------- Tue May 12 14:22:20 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-requirements-detector.spec b/python-requirements-detector.spec index 7948f63..7a64e85 100644 --- a/python-requirements-detector.spec +++ b/python-requirements-detector.spec @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,31 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requirements-detector -Version: 0.4 +Version: 0.6 Release: 0 Summary: Python tool to find and list requirements of a Python project License: MIT Group: Development/Languages/Python Url: https://github.com/landscapeio/requirements-detector -Source: https://pypi.python.org/packages/source/r/requirements-detector/requirements-detector-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +# https://github.com/landscapeio/requirements-detector/issues/25 +Source: https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module astroid} +BuildRequires: %{python_module nose} +# /SECTION Requires: python-astroid >= 1.0.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: fdupes BuildArch: noarch -%endif + +%python_subpackages %description requirements-detector is a simple Python tool which attempts to find and list the requirements of a Python project. @@ -43,14 +47,26 @@ When run from the root of a Python project, it will try to ascertain which libra %setup -q -n requirements-detector-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/detect-requirements +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%{_bindir}/detect-requirements +%check +%python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} + +%post +%python_install_alternative detect-requirements + +%postun +%python_uninstall_alternative detect-requirements + +%files %{python_files} +%doc README.md +%license LICENSE %{python_sitelib}/* +%python_alternative %{_bindir}/detect-requirements %changelog diff --git a/requirements-detector-0.4.tar.gz b/requirements-detector-0.4.tar.gz deleted file mode 100644 index cfca019..0000000 --- a/requirements-detector-0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f20820d242d9942f5530ace8de12102867975023a7c137c5ddd5ebbeb466f577 -size 5932