forked from pool/python-perky
Accepting request 990000 from home:ojkastl_buildservice:Systemsmanagement_Ansible
new package perky, needed as build dependency for the Ansible antsibull* packages OBS-URL: https://build.opensuse.org/request/show/990000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-perky?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
perky-0.5.5.tar.gz
Normal file
3
perky-0.5.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7998a8131fd2313ce948e27e290e49764837d99dd6133e2ee88f05e12561aaa1
|
||||
size 18162
|
||||
9
python-perky.changes
Normal file
9
python-perky.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 25 20:01:02 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
- specfile cleanup, added tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 22 21:05:33 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||
|
||||
- first version of package perky at version 0.5.5
|
||||
57
python-perky.spec
Normal file
57
python-perky.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package python-perky
|
||||
#
|
||||
# Copyright (c) 2022 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-%{**}}
|
||||
Name: python-perky
|
||||
Version: 0.5.5
|
||||
Release: 0
|
||||
Summary: A parser for the perky text file format
|
||||
License: MIT
|
||||
URL: https://github.com/larryhastings/perky/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/perky/perky-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
An "rcfile" text file format for Python programs solving the same problem as "INI" files, "TOML" files, and "JSON" files.
|
||||
|
||||
%prep
|
||||
%setup -q -n perky-%{version}
|
||||
sed -i '1{/\/usr\/bin\/env python*/d;}' perky/utility.py perky/__init__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# tests need to be executed directly, otherwise (pytest, unittest discover) they fail
|
||||
%python_exec tests/test_perky.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/perky/
|
||||
%{python_sitelib}/perky-%{version}*-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user