15
0
Files
python-importlab/python-importlab.spec
Markéta Machová 107e5bcee1 Accepting request 1006807 from home:yarunachalam:branches:devel:languages:python
- Update Version 0.8 (2022-09-22)
  * Add --version to bin importlab.
  * Use ImportStatement.source to impove import resolution.
- Update Version 0.7 (2022-01-07)
  * Fix path resolution for case-insensitive filesystems.
- Update Version 0.6.1 (2021-01-14)
  * Include .so files in the dependency graph.
  * Drop support for running under Python 2 and modernize the code.
  * MANIFEST.in: Add tests to sdist

OBS-URL: https://build.opensuse.org/request/show/1006807
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-importlab?expand=0&rev=15
2022-09-29 09:17:35 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-importlab
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
# python36-networkx no longer exists in Tumbleweed (due to SciPy following NEP 29)
%define skip_python36 1
Name: python-importlab
Version: 0.7
Release: 0
Summary: A library to calculate python dependency graphs
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/google/importlab
Source: https://files.pythonhosted.org/packages/source/i/importlab/importlab-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-networkx
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module networkx}
# /SECTION
%python_subpackages
%description
A library to calculate python dependency graphs.
%prep
%setup -q -n importlab-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/importlab
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative importlab
%postun
%python_uninstall_alternative importlab
%files %{python_files}
%doc CHANGELOG README.rst
%license LICENSE
%python_alternative %{_bindir}/importlab
%{python_sitelib}/*
%changelog