17
0
Files
python-fastimport/python-fastimport.spec
Markéta Machová 498e2d316e - Update to 0.9.16
* Make original-oid parameter backwards compatible
- from version 0.9.15
  * Update for new description format.
  * Better assertions.
  * Exclude pypy3 on github actions on windows/mac
  * Add typing support.
  * Drop 3.5 support.
  * Install tests in sdist but not wheels
  * s/releaser/disperse/
  * Update disperse.conf.
  * Ship py.typed.
  * add pyproject
  * install py.typed
  * Run mypy.
  * Add make typing target
  * Support Python >= 3.7, <= 3.11
  * Use disperse action
  * Migrate to pyproject.toml
  * Set dependencies field.
  * Add readthedocs configuration
  * Fix pyproject.toml
  * Drop obsolete travis-ci badge
  * Fix readthedocs config
  * Fix flake8
  * Add github metadata
  * Drop unused NEWS file
  * Drop python 3.7 support
  * Bump actions/checkout from 2 to 4
  * Ruff format

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fastimport?expand=0&rev=19
2025-10-17 14:52:10 +00:00

76 lines
2.4 KiB
RPMSpec

#
# spec file for package python-fastimport
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-fastimport
Version: 0.9.16
Release: 0
Summary: Fastimport parser in Python
License: GPL-2.0-or-later
Group: Development/Libraries/Python
URL: https://github.com/jelmer/python-fastimport
Source: https://files.pythonhosted.org/packages/source/f/fastimport/fastimport-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
BuildArch: noarch
%python_subpackages
%description
This is the Python parser that was originally developed for
bzr-fastimport, but extracted so it can be used by other projects.
It is currently used by bzr-fastimport and dulwich. hg-fastimport and
git-remote-hg use a slightly modified version of it.
%prep
%setup -q -n fastimport-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/fast-import-query
%python_clone -a %{buildroot}%{_bindir}/fast-import-info
%python_clone -a %{buildroot}%{_bindir}/fast-import-filter
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest fastimport.tests.test_suite
%pre
%python_libalternatives_reset_alternative fast-import-query
%python_libalternatives_reset_alternative fast-import-info
%python_libalternatives_reset_alternative fast-import-filter
%files %{python_files}
%doc README.md
%license COPYING
%{python_sitelib}/fastimport*
%python_alternative %{_bindir}/fast-import-filter
%python_alternative %{_bindir}/fast-import-info
%python_alternative %{_bindir}/fast-import-query
%changelog