- Add rm_nspace_pkgs.patch to poorly used namespace_packages

(gh#Pylons/pastedeploy#27)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PasteDeploy?expand=0&rev=31
This commit is contained in:
Matej Cepl 2020-06-23 16:26:04 +00:00 committed by Git OBS Bridge
parent 00982259e4
commit c61249c970
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 23 16:24:08 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Add rm_nspace_pkgs.patch to poorly used namespace_packages
(gh#Pylons/pastedeploy#27)
-------------------------------------------------------------------
Sat Mar 14 15:42:42 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -26,6 +26,9 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/Pylons/pastedeploy
Source: https://github.com/Pylons/pastedeploy/archive/%{version}.tar.gz
# PATCH-FIX-UPSTREAM rm_nspace_pkgs.patch gh#Pylons/pastedeploy#27 mcepl@suse.com
# Package uses namespace_packages, when it shouldn't.
Patch0: rm_nspace_pkgs.patch
BuildRequires: %{python_module Paste}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@ -49,6 +52,7 @@ provides commands to serve applications based on this configuration file.
%prep
%setup -q -n pastedeploy-%{version}
%autopatch -p1
%build
%python_build

10
rm_nspace_pkgs.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,6 @@ setup(
"Issue Tracker": "https://github.com/Pylons/pastedeploy/issues",
},
license="MIT",
- namespace_packages=["paste"],
packages=find_packages(exclude=["tests"]),
include_package_data=True,
zip_safe=False,