Accepting request 633053 from home:mcepl:work
- Clean SPEC and remove circular dependency on python-setuptools OBS-URL: https://build.opensuse.org/request/show/633053 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-appdirs?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 4 15:23:26 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean SPEC and remove circular dependency on python-setuptools
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 17 13:47:34 UTC 2018 - tchvatal@suse.com
|
Fri Aug 17 13:47:34 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@@ -25,7 +25,8 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/a/appdirs/appdirs-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
Patch: remove-setuptools-dependency.patch
|
||||||
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -52,7 +53,7 @@ sed -r -i '1s/^#!.*$//' appdirs.py
|
|||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_exec -munittest discover -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
22
remove-setuptools-dependency.patch
Normal file
22
remove-setuptools-dependency.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -9,10 +9,6 @@ except ImportError:
|
||||||
|
from distutils.core import setup
|
||||||
|
import appdirs
|
||||||
|
|
||||||
|
-tests_require = []
|
||||||
|
-if sys.version_info < (2, 7):
|
||||||
|
- tests_require.append("unittest2")
|
||||||
|
-
|
||||||
|
|
||||||
|
def read(fname):
|
||||||
|
inf = open(os.path.join(os.path.dirname(__file__), fname))
|
||||||
|
@@ -45,8 +41,6 @@ setup(
|
||||||
|
Programming Language :: Python :: Implementation :: CPython
|
||||||
|
Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
""".split('\n') if c.strip()],
|
||||||
|
- test_suite='test.test_api',
|
||||||
|
- tests_require=tests_require,
|
||||||
|
keywords='application directory log cache user',
|
||||||
|
author='Trent Mick',
|
||||||
|
author_email='trentm@gmail.com',
|
Reference in New Issue
Block a user