commit d16b2f53267bf31a8bc4c73ae9ed6c8868b98cb4baac65b33b0b9c76f98d7090 Author: Tomáš Chvátal Date: Mon Feb 10 08:27:18 2020 +0000 Accepting request 772534 from home:mnhauke Initial pakckage for python-pathvalidate OBS-URL: https://build.opensuse.org/request/show/772534 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathvalidate?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/pathvalidate-2.1.0.tar.gz b/pathvalidate-2.1.0.tar.gz new file mode 100644 index 0000000..7ad36b2 --- /dev/null +++ b/pathvalidate-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62d1a0aa4923e6b3c46c34b47e0810f088b3ddde57e228dab0c493435040f154 +size 23800 diff --git a/python-pathvalidate.changes b/python-pathvalidate.changes new file mode 100644 index 0000000..fc0e4be --- /dev/null +++ b/python-pathvalidate.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Feb 8 09:47:08 UTC 2020 - Martin Hauke + +- Initial package, version 2.1.0 diff --git a/python-pathvalidate.spec b/python-pathvalidate.spec new file mode 100644 index 0000000..25ae73a --- /dev/null +++ b/python-pathvalidate.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pathvalidate +# +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-pathvalidate +Version: 2.1.0 +Release: 0 +Summary: Python library to sanitize/validate a string such as filenames +License: MIT +Group: Development/Languages/Python +URL: https://github.com/thombashi/pathvalidate +Source: https://files.pythonhosted.org/packages/source/p/pathvalidate/pathvalidate-%{version}.tar.gz +BuildRequires: %{python_module setuptools >= 38.3.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module Faker} +BuildRequires: %{python_module click} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools >= 38.3.0} +# /SECTION +Requires: python-setuptools >= 38.3.0 +BuildArch: noarch +%python_subpackages + +%description +pathvalidate is a Python library to sanitize/validate a string such as +filenames/file-paths/etc. + +%prep +%setup -q -n pathvalidate-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pathvalidate* + +%changelog