commit d07bc483337f2edc05ee075a771a05102ed5fea810476d40129f9279c2aa190e Author: Tomáš Chvátal Date: Fri Mar 8 13:57:50 2019 +0000 Accepting request 682851 from home:jayvdb:coala:python3-bears - Initial spec for v1.2.0 OBS-URL: https://build.opensuse.org/request/show/682851 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?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/python-pythonfinder.changes b/python-pythonfinder.changes new file mode 100644 index 0000000..c9358c8 --- /dev/null +++ b/python-pythonfinder.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 7 04:01:37 UTC 2019 - John Vandenberg + +- Initial spec for v1.2.0 diff --git a/python-pythonfinder.spec b/python-pythonfinder.spec new file mode 100644 index 0000000..aed603c --- /dev/null +++ b/python-pythonfinder.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-pythonfinder +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pythonfinder +Version: 1.2.0 +Release: 0 +Summary: A cross-platform tool to help locate python on any system +License: MIT +Group: Development/Languages/Python +URL: https://github.com/sarugaku/pythonfinder +Source: https://files.pythonhosted.org/packages/source/p/pythonfinder/pythonfinder-%{version}.tar.gz +# https://github.com/sarugaku/pythonfinder/issues/62 +Patch0: setup-ascii.patch +BuildRequires: %{python_module setuptools >= 36.2.2} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-attrs +Requires: python-cached-property +Requires: python-click +Requires: python-crayons +Requires: python-packaging +Requires: python-six +Requires: python-vistir >= 0.2.5 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module cached-property} +BuildRequires: %{python_module click} +BuildRequires: %{python_module crayons} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module six} +BuildRequires: %{python_module vistir >= 0.2.5} +# /SECTION +%python_subpackages + +%description +A cross-platform python discovery tool to help locate python on any system. + +%prep +%setup -q -n pythonfinder-%{version} +%patch0 -p1 +# Has no direct dependency on pathlib2 or lru_cache, which it obtains from vistir +# https://github.com/sarugaku/pythonfinder/pull/63 +sed -i '/pathlib2/d;/lru_cache/d' setup.cfg + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license LICENSE.txt +%python3_only %{_bindir}/pyfinder +%{python_sitelib}/* + +%changelog diff --git a/pythonfinder-1.2.0.tar.gz b/pythonfinder-1.2.0.tar.gz new file mode 100644 index 0000000..fa6b9f9 --- /dev/null +++ b/pythonfinder-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:288103c4198fade433fef0f15635a3d69622796b844f2b9780812ae8d42db3ae +size 37092 diff --git a/setup-ascii.patch b/setup-ascii.patch new file mode 100644 index 0000000..ae3012b --- /dev/null +++ b/setup-ascii.patch @@ -0,0 +1,17 @@ +--- pythonfinder-1.2.0/setup.py.orig 2019-03-07 11:23:59.616077036 +0700 ++++ pythonfinder-1.2.0/setup.py 2019-03-07 11:28:00.449877443 +0700 +@@ -49,11 +49,11 @@ + pass + + def run(self): +- self.status('Building Source distribution…') ++ self.status('Building Source distribution.') + os.system('{0} setup.py sdist'.format(sys.executable)) +- self.status('Uploading the package to PyPi via Twine…') ++ self.status('Uploading the package to PyPi via Twine.') + os.system('twine upload dist/*') +- self.status('Pushing git tags…') ++ self.status('Pushing git tags.') + os.system('git tag v{0}'.format(find_version("src", "pythonfinder", "__init__.py"))) + os.system('git push --tags') + sys.exit()