2021-01-21 11:16:39 +00:00
committed by Git OBS Bridge
commit 972c4a273f
5 changed files with 120 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

3
anymarkup-0.8.1.tar.gz Normal file
View File

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

17
python-anymarkup.changes Normal file
View File

@@ -0,0 +1,17 @@
-------------------------------------------------------------------
Wed Jan 20 16:08:55 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Use python_alternative macro, fixing build
- Add Suggests for optional runtime dependency python-click
- Remove unnecessary build dependency python-devel and tidy spec
- Activate test suite
-------------------------------------------------------------------
Tue Dec 1 15:46:42 UTC 2020 - Marcus Schaefer <ms@suse.com>
- version 0.8.1
-------------------------------------------------------------------
Tue Dec 1 14:46:23 UTC 2020 - Marcus Schaefer <ms@suse.com>
- Initial submission for anymarkup module jsc#SLE-16925

76
python-anymarkup.spec Normal file
View File

@@ -0,0 +1,76 @@
#
# spec file for package python-anymarkup
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020 SUSE Software Solutions Germany GmbH.
#
# 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-%{**}}
Name: python-anymarkup
Version: 0.8.1
Release: 0
Summary: Parse or serialize any markup in Python
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/bkabrda/anymarkup
Source0: https://github.com/bkabrda/anymarkup/archive/v%{version}/anymarkup-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-click
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module anymarkup-core >= 0.8.0}
BuildRequires: %{python_module click}
BuildRequires: %{python_module configobj}
BuildRequires: %{python_module json5}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module xmltodict}
# /SECTION
%python_subpackages
%description
Parse or serialize any markup. Currently supports ini, json, json5, toml,
xml and yaml.
%prep
%setup -q -n anymarkup-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/anymarkup
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative anymarkup
%postun
%python_uninstall_alternative anymarkup
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/anymarkup
%{python_sitelib}/*
%changelog