From c61249c9704d0bea7d7da901bffdf83d575589a4bfa1b0e9755efaba3ee137a6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 23 Jun 2020 16:26:04 +0000 Subject: [PATCH] - 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 --- python-PasteDeploy.changes | 6 ++++++ python-PasteDeploy.spec | 4 ++++ rm_nspace_pkgs.patch | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 rm_nspace_pkgs.patch diff --git a/python-PasteDeploy.changes b/python-PasteDeploy.changes index 5b8c417..2d3283e 100644 --- a/python-PasteDeploy.changes +++ b/python-PasteDeploy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 23 16:24:08 UTC 2020 - Matej Cepl + +- Add rm_nspace_pkgs.patch to poorly used namespace_packages + (gh#Pylons/pastedeploy#27) + ------------------------------------------------------------------- Sat Mar 14 15:42:42 UTC 2020 - Dirk Mueller diff --git a/python-PasteDeploy.spec b/python-PasteDeploy.spec index bed1244..3438854 100644 --- a/python-PasteDeploy.spec +++ b/python-PasteDeploy.spec @@ -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 diff --git a/rm_nspace_pkgs.patch b/rm_nspace_pkgs.patch new file mode 100644 index 0000000..f86f68d --- /dev/null +++ b/rm_nspace_pkgs.patch @@ -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,