From 498e2d316ee1aedb19e19755ab646b2fad8c53213c50886c2e7da2becee2a538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 17 Oct 2025 14:52:10 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + fastimport-0.9.14.tar.gz | 3 + fastimport-0.9.16.tar.gz | 3 + python-fastimport.changes | 119 ++++++++++++++++++++++++++++++++++++++ python-fastimport.spec | 75 ++++++++++++++++++++++++ 6 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fastimport-0.9.14.tar.gz create mode 100644 fastimport-0.9.16.tar.gz create mode 100644 python-fastimport.changes create mode 100644 python-fastimport.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fastimport-0.9.14.tar.gz b/fastimport-0.9.14.tar.gz new file mode 100644 index 0000000..5a51a37 --- /dev/null +++ b/fastimport-0.9.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ac99dda4e7b0b3ae831507b6d0094802e6dd95891feafde8cc5c405b6c149ca +size 41791 diff --git a/fastimport-0.9.16.tar.gz b/fastimport-0.9.16.tar.gz new file mode 100644 index 0000000..6619c7e --- /dev/null +++ b/fastimport-0.9.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a0a6fb56aa3607de71ad4e7abd551afe9bdac94bab8d2dd74d8e0f98f52e35e +size 50475 diff --git a/python-fastimport.changes b/python-fastimport.changes new file mode 100644 index 0000000..df41bc9 --- /dev/null +++ b/python-fastimport.changes @@ -0,0 +1,119 @@ +------------------------------------------------------------------- +Fri Oct 17 09:27:39 UTC 2025 - John Paul Adrian Glaubitz + +- 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 + * Bump actions/setup-python from 4 to 5 + * Use ruff rather than flake8 + * Fix disperse.conf + * Bump python to 3.13 + * Migrate to disperse.toml + * Use disperse action + * Bumping python versions in GitHub workflows and pyproject.toml + * Add code of conduct + * Fix spelling errors + * Bump actions/checkout from 2 to 4 + * Bump jelmer/action-disperse-validate from 1 to 2 + * Bump actions/checkout from 4 to 5 + * Bump actions/setup-python from 5 to 6 + * Fix format + * Add typing + * Partial implementation of #12 + * Add tests for original-oid support + * Extend README.md + * Include README in project description + * Automatically publish wheels +- Drop NEWS file from %doc section + +------------------------------------------------------------------- +Mon Jun 9 13:57:36 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Tue May 27 11:29:09 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Apr 21 12:24:57 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Sat Jan 15 16:07:38 UTC 2022 - Dirk Müller + +- update to 0.9.14: + * Declare python 3.5 requirement in setup.py. + * Drop various other python2 helpers, test on newer versions of Python. + +------------------------------------------------------------------- +Tue May 26 06:34:12 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Thu Aug 23 09:48:00 UTC 2018 - tchvatal@suse.com + +- Switch to singlespec +- Version update to 0.9.8: + * Support py3 + +------------------------------------------------------------------- +Tue May 5 08:59:16 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.9.4: + * Get handlers from class object using getattr() for possible + inheritance (Cécile Tonglet) + * Fix 'check-pypy' by removing use of nonexistant target. + (masklinn) + * Use namedtuple for authorship tuple in + Commit.{author,committer}.(masklinn) +- additional changes from version 0.9.3: + * Remove unused and untested helper single_plural, invert_dict, + invert_dictset, defines_to_dict and binary_stream. + (Jelmer Vernooij) + * Install NEWS and README files. +- point the source URL to pypi +- pass -n to setup macro: source archive is now named fastimport +- remove documentation: not provided anymore by upstream + +------------------------------------------------------------------- +Mon Jul 2 07:37:20 UTC 2012 - saschpe@suse.de + +- Only SLE-11 needs %pyrequires and there it is not noarch +- Explicit dependency on Python >= 2.4 isn't needed, %py_requires does that + for SLE-11 (>2.6) and a more recent RPM does it automatically + +------------------------------------------------------------------- +Wed Jun 27 11:26:03 UTC 2012 - jengelh@inai.de + +- Initial package (0.9.2) for build.opensuse.org diff --git a/python-fastimport.spec b/python-fastimport.spec new file mode 100644 index 0000000..d56559e --- /dev/null +++ b/python-fastimport.spec @@ -0,0 +1,75 @@ +# +# 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