Accepting request 634722 from devel:languages:python

- Revert removal of the code fixing egginfo (boo#1107798)
- Actually we don't need remove-setuptools-dependency.patch,
  when we don't run python setup.py test anymore. So, remove it.

- Clean SPEC and remove circular dependency on python-setuptools
  (Add remove-setuptools-dependency.patch patch to do this)

OBS-URL: https://build.opensuse.org/request/show/634722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-appdirs?expand=0&rev=6
This commit is contained in:
Yuchen Lin 2018-09-20 09:40:01 +00:00 committed by Git OBS Bridge
commit 6880c1348f
2 changed files with 38 additions and 6 deletions

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Mon Sep 10 12:07:53 CEST 2018 - Matěj Cepl <mcepl@suse.com>
- Revert removal of the code fixing egginfo (boo#1107798)
- Actually we don't need remove-setuptools-dependency.patch,
when we don't run python setup.py test anymore. So, remove it.
-------------------------------------------------------------------
Tue Sep 4 15:23:26 UTC 2018 - Matěj Cepl <mcepl@suse.com>
- Clean SPEC and remove circular dependency on python-setuptools
(Add remove-setuptools-dependency.patch patch to do this)
-------------------------------------------------------------------
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
- Submission to SUSE:SLE-12-SP3:Update:PubClouds
This commit tracks the submission for fate#326575
and bsc#1103542
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 8 06:11:57 UTC 2017 - tbechtold@suse.com Tue Aug 8 06:11:57 UTC 2017 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-appdirs # spec file for package python-appdirs
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -23,11 +23,11 @@ Release: 0
Summary: A small Python module for determining platform-specific dirs Summary: A small Python module for determining platform-specific dirs
License: MIT 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 base} BuildRequires: %{python_module base}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -53,12 +53,17 @@ sed -r -i '1s/^#!.*$//' appdirs.py
%python_install %python_install
# fix up egg-info because distutils is bad and should feel bad # fix up egg-info because distutils is bad and should feel bad
%{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info %{python_expand rm %{buildroot}%{$python_sitelib}/*.egg-info
cp -r appdirs.egg-info %{buildroot}%{$python_sitelib}/appdirs-%{version}-py%{$python_version}.egg-info cp -r appdirs.egg-info \
%{buildroot}%{$python_sitelib}/appdirs-%{version}-py%{$python_version}.egg-info
%fdupes %{buildroot}%{$python_sitelib}
} }
%check
%python_exec -munittest discover -v
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE.txt
%doc CHANGES.rst LICENSE.txt README.rst %doc CHANGES.rst README.rst
%pycache_only %{python_sitelib}/__pycache__/* %pycache_only %{python_sitelib}/__pycache__/*
%{python_sitelib}/appdirs.py* %{python_sitelib}/appdirs.py*
%{python_sitelib}/appdirs-%{version}-py%{python_version}.egg-info %{python_sitelib}/appdirs-%{version}-py%{python_version}.egg-info