commit b882143402bccda98dc9224589e1b2224b2570aedb5b4066a02507aa91a7175e Author: Markéta Machová Date: Tue Apr 6 09:09:17 2021 +0000 Accepting request 882942 from home:apersaud:branches:devel:languages:python needed for newer versions of curtsies and bpython. I didn't manage to get the test to run, probably something simple, but perhaps this can be fixed in a future SR OBS-URL: https://build.opensuse.org/request/show/882942 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cwcwidth?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/cwcwidth-0.1.4.tar.gz b/cwcwidth-0.1.4.tar.gz new file mode 100644 index 0000000..f9ef77f --- /dev/null +++ b/cwcwidth-0.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:482a937891a6918667436e0a7041aab576c26e4bcbcdddd178ef79362fbcf9ab +size 11190 diff --git a/cwcwidth.changes b/cwcwidth.changes new file mode 100644 index 0000000..6b44883 --- /dev/null +++ b/cwcwidth.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Apr 5 01:36:20 UTC 2021 - Arun Persaud + +- initial version (used in bpython and curtsies) + diff --git a/cwcwidth.spec b/cwcwidth.spec new file mode 100644 index 0000000..5eb7acb --- /dev/null +++ b/cwcwidth.spec @@ -0,0 +1,54 @@ +# +# spec file for package python-cwcwidth +# +# Copyright (c) 2021 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-cwcwidth +Version: 0.1.4 +Release: 0 +Summary: Python bindings for wc(s)width +License: MIT +URL: https://github.com/sebastinas/cwcwidth +Source: https://files.pythonhosted.org/packages/source/c/cwcwidth/cwcwidth-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +%python_subpackages + +%description +Python bindings for wc(s)width + +%prep +%setup -q -n cwcwidth-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pyunittest_arch -v + +%files %{python_files} +%doc CHANGELOG.md README.md +%license LICENSE +%{python_sitearch}/* + +%changelog