15
0
forked from pool/python-calmjs

Accepting request 931788 from devel:languages:python

- Remove creation of the unnecessary __init__py, which breaks the test
  suite (gh#calmjs/calmjs#61).

OBS-URL: https://build.opensuse.org/request/show/931788
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-calmjs?expand=0&rev=5
This commit is contained in:
2021-11-17 00:14:18 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 16 14:18:02 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Remove creation of the unnecessary __init__py, which breaks the test
suite (gh#calmjs/calmjs#61).
-------------------------------------------------------------------
Thu Nov 11 22:29:55 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-calmjs
Version: 3.4.2
Release: 0
@@ -60,15 +61,13 @@ export LANG=en_US.UTF-8
%python_clone -a %{buildroot}%{_bindir}/calmjs
# %%python_expand rm -r %%{buildroot}%%{$python_sitelib}/calmjs/testing
# %%python_expand rm -r %%{buildroot}%%{$python_sitelib}/calmjs/tests
%{python_expand touch %{buildroot}%{$python_sitelib}/calmjs/__init__.py
%fdupes %{buildroot}%{$python_sitelib}
}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
# gh#calmjs/calmjs#61
%python_expand rm -v %{buildroot}%{$python_sitelib}/calmjs/tests/test_argparse.py
%pyunittest discover -v -s %{buildroot}%{$python_sitelib}/calmjs/
# %%python_expand rm -v %%{buildroot}%%{$python_sitelib}/calmjs/tests/test_argparse.py
%pyunittest -v calmjs.tests.make_suite
%post
%python_install_alternative calmjs