14
0

Accepting request 848183 from home:bnavigator:branches:devel:languages:python

.

OBS-URL: https://build.opensuse.org/request/show/848183
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-three-merge?expand=0&rev=1
This commit is contained in:
2020-11-12 22:51:30 +00:00
committed by Git OBS Bridge
commit f0d09605d8
5 changed files with 95 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Nov 12 16:24:00 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Initial specfile for version 0.1.1

64
python-three-merge.spec Normal file
View File

@@ -0,0 +1,64 @@
#
# spec file for package python-three-merge
#
# 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
# 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
Name: python-three-merge
Version: 0.1.1
Release: 0
Summary: Simple library for merging two strings with respect to a base one
License: MIT
URL: https://github.com/spyder-ide/three-merge
# Use GitHub archive instead of PyPI sdist because of test files
Source: %{url}/archive/v%{version}.tar.gz#/three-merge-%{version}-gh.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-diff-match-patch
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module diff-match-patch}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Simple Python library to perform a 3-way merge between strings, based on
diff-match-patch. This library performs merges at a character level, as
opposed to most VCS systems, which opt for a line-based approach.
%prep
%setup -q -n three-merge-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%{python_sitelib}/three_merge
%{python_sitelib}/three_merge-%{version}*-info
%changelog

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6ab2231fd349cdf03be5be04f28c1d59d5a475f7396dcf8fd8b0597981d113e
size 7312