commit fbf22a8bbe23bece855b73015452c683863be6c77731559a5934214f1d3b9a19 Author: Tomáš Chvátal Date: Tue Dec 10 08:17:56 2019 +0000 Accepting request 755408 from home:emendonca:octoprint Using the proper macros for %check OBS-URL: https://build.opensuse.org/request/show/755408 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dist?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/dist-1.0.3.zip b/dist-1.0.3.zip new file mode 100644 index 0000000..5bb4443 --- /dev/null +++ b/dist-1.0.3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7466ce2d4bce095ca60e204664847055831181d03e26b4e39b08c55c65ac0412 +size 12799 diff --git a/python-dist.changes b/python-dist.changes new file mode 100644 index 0000000..deb1cec --- /dev/null +++ b/python-dist.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Dec 6 20:52:01 UTC 2019 - Erico Mendonca + +- Initial version. + diff --git a/python-dist.spec b/python-dist.spec new file mode 100644 index 0000000..480886a --- /dev/null +++ b/python-dist.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-dist +# +# Copyright (c) 2019 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-dist +Version: 1.0.3 +Release: 0 +Summary: Compute distance between two coordinates on the map +License: MIT +Group: Development/Languages/Python +URL: https://github.com/duboviy/dist +Source: https://files.pythonhosted.org/packages/source/d/dist/dist-%{version}.zip +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +%python_subpackages + +%description +As more and more apps are using maps, the more demand for geolocation capabilities increase. +Geolocation is about the reporting of your location to other users, +as well as associating real-world locations (such as landmarks) to your location. +This repo helps to accurately calculate the distance between two locations +and presents a time efficient practical solution, +that is almost 3 times faster than similar fast pure python implementation. + +%prep +%setup -q -n dist-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitearch}/* + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py + +%changelog