commit 972c4a273ff9625599afc00548429e082cc9f753994115abbfff87292c5c25cf Author: Matej Cepl Date: Thu Jan 21 11:16:39 2021 +0000 Accepting request 865048 from home:jayvdb:py-submit cf https://build.opensuse.org/request/show/865046 OBS-URL: https://build.opensuse.org/request/show/865048 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-anymarkup?expand=0&rev=1 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/anymarkup-0.8.1.tar.gz b/anymarkup-0.8.1.tar.gz new file mode 100644 index 0000000..05ef2ce --- /dev/null +++ b/anymarkup-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7e4596648ea016d899f7f6cb73152b5ad7d8d59b992db2a38f2f9da29c71852 +size 6952 diff --git a/python-anymarkup.changes b/python-anymarkup.changes new file mode 100644 index 0000000..9feb64c --- /dev/null +++ b/python-anymarkup.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Wed Jan 20 16:08:55 UTC 2021 - John Vandenberg + +- 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 + +- version 0.8.1 + +------------------------------------------------------------------- +Tue Dec 1 14:46:23 UTC 2020 - Marcus Schaefer + +- Initial submission for anymarkup module jsc#SLE-16925 diff --git a/python-anymarkup.spec b/python-anymarkup.spec new file mode 100644 index 0000000..a812a62 --- /dev/null +++ b/python-anymarkup.spec @@ -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