Hello community,
here is the log from the commit of package python-django-health-check for
openSUSE:Factory checked in at 2020-09-21 17:18:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-health-check (Old)
and /work/SRC/openSUSE:Factory/.python-django-health-check.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-health-check"
Mon Sep 21 17:18:42 2020 rev:6 rq:835769 version:3.14.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-django-health-check/python-django-health-check.changes
2020-09-17 15:08:39.728927719 +0200
+++
/work/SRC/openSUSE:Factory/.python-django-health-check.new.4249/python-django-health-check.changes
2020-09-21 17:20:49.599808566 +0200
@@ -1,0 +2,6 @@
+Thu Sep 17 10:41:14 UTC 2020 - John Vandenberg <[email protected]>
+
+- Workaround upstream packaging problem omitting sub-packages
+ and templates
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-django-health-check.spec ++++++
--- /var/tmp/diff_new_pack.ZykinA/_old 2020-09-21 17:20:53.619811669 +0200
+++ /var/tmp/diff_new_pack.ZykinA/_new 2020-09-21 17:20:53.623811672 +0200
@@ -50,6 +50,10 @@
# setuptools-scm fails for GitHub archives
sed -i 's/use_scm_version=True/version="%{version}"/' setup.py
+# Hot fix: include sub-packages (and a template in %%install)
+# https://github.com/KristianOellegaard/django-health-check/issues/268
+sed -i 's/packages = health_check/packages = find:/' setup.cfg
+
# do not nedlessly pull extra deps
sed -i -e '/sphinx/d;/pytest-runner/d;/--cov[-=]/d' setup.cfg
@@ -58,9 +62,16 @@
%install
%python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
+mkdir -p %{buildroot}%{$python_sitelib}/health_check/templates/health_check
+cp health_check/templates/health_check/index.html
%{buildroot}%{$python_sitelib}/health_check/templates/health_check
+%fdupes %{buildroot}%{$python_sitelib}
+}
%check
+mkdir /tmp/testenv
+mv tests /tmp/testenv
+cd /tmp/testenv
PYTHONPATH=${PWD}
export DJANGO_SETTINGS_MODULE=tests.testapp.settings
%pytest