forked from pool/python-easydev
- Update to 0.12.0:
* Fixing a warning from deprecated get_platform function. * Applied black * some cleanups * removed the package module (not used) * more tests * logging slightly improved - Actually run tests, skipping one test that requires network. - Stop installing easydev_buildPackage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-easydev?expand=0&rev=9
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-easydev
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,11 +18,10 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-easydev
|
||||
Version: 0.9.38
|
||||
Version: 0.12.0
|
||||
Release: 0
|
||||
Summary: Common utilities to ease the development of Python packages
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/cokelaer/easydev
|
||||
Source: https://files.pythonhosted.org/packages/source/e/easydev/easydev-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -33,7 +32,7 @@ Requires: python-colorlog
|
||||
Requires: python-pexpect
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: python-line_profiler
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
@@ -41,9 +40,9 @@ BuildRequires: %{python_module colorama}
|
||||
BuildRequires: %{python_module colorlog}
|
||||
BuildRequires: %{python_module line_profiler}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pexpect}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -57,30 +56,29 @@ also as an incubator for other packages and is stable.
|
||||
%prep
|
||||
%setup -q -n easydev-%{version}
|
||||
sed -i -e '/^#!\//, 1d' easydev/appdirs.py
|
||||
rm -r easydev/share/__pycache__
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/easydev_buildPackage
|
||||
%python_clone -a %{buildroot}%{_bindir}/browse
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Requires network access
|
||||
%pytest -k 'not test_isurl'
|
||||
|
||||
%post
|
||||
%python_install_alternative easydev_buildPackage
|
||||
%python_install_alternative browse
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative easydev_buildPackage
|
||||
%python_uninstall_alternative browse
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license COPYING
|
||||
%python_alternative %{_bindir}/browse
|
||||
%python_alternative %{_bindir}/easydev_buildPackage
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user