From 6c7fd671b7dcc2a511ef2ad985ae8fc286de174bed0a308871610df606f379e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 17 Aug 2018 13:47:54 +0000 Subject: [PATCH] - Use setuptools normally - Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-appdirs?expand=0&rev=10 --- python-appdirs.changes | 6 ++++++ python-appdirs.spec | 16 +++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/python-appdirs.changes b/python-appdirs.changes index 37afd1f..062f48d 100644 --- a/python-appdirs.changes +++ b/python-appdirs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 17 13:47:34 UTC 2018 - tchvatal@suse.com + +- Use setuptools normally +- Run tests + ------------------------------------------------------------------- Tue Aug 14 10:13:51 UTC 2018 - ms@suse.com diff --git a/python-appdirs.spec b/python-appdirs.spec index 37ca9fa..9b7b1c7 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -23,11 +23,10 @@ Release: 0 Summary: A small Python module for determining platform-specific dirs License: MIT Group: Development/Languages/Python -Url: http://github.com/ActiveState/appdirs +URL: http://github.com/ActiveState/appdirs Source: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz -BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -51,14 +50,13 @@ sed -r -i '1s/^#!.*$//' appdirs.py %install %python_install -# fix up egg-info because distutils is bad and should feel bad -%{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info -cp -r appdirs.egg-info %{buildroot}%{$python_sitelib}/appdirs-%{version}-py%{$python_version}.egg-info -} + +%check +%python_exec setup.py test %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst LICENSE.txt README.rst +%license LICENSE.txt +%doc CHANGES.rst README.rst %pycache_only %{python_sitelib}/__pycache__/* %{python_sitelib}/appdirs.py* %{python_sitelib}/appdirs-%{version}-py%{python_version}.egg-info