forked from pool/python-PyInstaller
Accepting request 765242 from home:aplanas:branches:devel:languages:python
- Temporary disabled of tests test_egg* and test_nspkg1* - Update to version 3.4 * See changelog at https://github.com/pyinstaller/pyinstaller/blob/v3.6/doc/CHANGES.rst - Add %bcond_with python2 OBS-URL: https://build.opensuse.org/request/show/765242 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyInstaller?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
3254b43659
commit
26c6afde9a
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-PyInstaller
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,9 +17,15 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%if 0%{suse_version} > 1500
|
||||
%bcond_with python2
|
||||
%define skip_python2 1
|
||||
%else
|
||||
%bcond_without python2
|
||||
%endif
|
||||
%bcond_without test
|
||||
Name: python-PyInstaller
|
||||
Version: 3.5
|
||||
Version: 3.6
|
||||
Release: 0
|
||||
Summary: Bundle a Python application and all its dependencies into a single package
|
||||
License: GPL-2.0-only
|
||||
@@ -57,7 +63,7 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-dis3
|
||||
BuildRequires: upx
|
||||
%endif
|
||||
%ifpython2
|
||||
%if %{with python2}
|
||||
Requires: python-dis3
|
||||
%endif
|
||||
%python_subpackages
|
||||
@@ -99,7 +105,7 @@ fi
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest_arch tests/unit tests/functional --ignore=tests/functional/test_libraries.py --ignore=tests/functional/test_hooks -k 'not test_find_module'
|
||||
%pytest_arch tests/unit tests/functional --ignore=tests/functional/test_libraries.py --ignore=tests/functional/test_hooks -k 'not test_find_module and not test_egg and not test_nspkg1'
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
Reference in New Issue
Block a user