From 5b470d45626f3151f7488d7de01e25da793ab76addd4b54043b031ae4b96b2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Jan 2020 08:16:58 +0000 Subject: [PATCH] - Switch to github archive in order to get tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=2 --- 0.2.1.tar.gz | 3 +++ geomet-0.2.1.post1.tar.gz | 3 --- python-geomet.changes | 5 +++++ python-geomet.spec | 10 ++++++++-- 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 0.2.1.tar.gz delete mode 100644 geomet-0.2.1.post1.tar.gz diff --git a/0.2.1.tar.gz b/0.2.1.tar.gz new file mode 100644 index 0000000..cb15017 --- /dev/null +++ b/0.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:210ee7c945319c7c3a29ebc0faba240aec644f09570130020d4268f115254856 +size 34466 diff --git a/geomet-0.2.1.post1.tar.gz b/geomet-0.2.1.post1.tar.gz deleted file mode 100644 index 628ee49..0000000 --- a/geomet-0.2.1.post1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91d754f7c298cbfcabd3befdb69c641c27fe75e808b27aa55028605761d17e95 -size 19728 diff --git a/python-geomet.changes b/python-geomet.changes index 5aa7b7d..f471b27 100644 --- a/python-geomet.changes +++ b/python-geomet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 20 08:14:34 UTC 2020 - Tomáš Chvátal + +- Switch to github archive in order to get tests + ------------------------------------------------------------------- Sat Jan 18 18:50:57 UTC 2020 - Arun Persaud diff --git a/python-geomet.spec b/python-geomet.spec index 3ad1e9d..8bcf409 100644 --- a/python-geomet.spec +++ b/python-geomet.spec @@ -18,13 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geomet -Version: 0.2.1.post1 +Version: 0.2.1 Release: 0 Summary: GeoJSON <-> WKT/WKB conversion utilities License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/geomet/geomet -Source: https://files.pythonhosted.org/packages/source/g/geomet/geomet-%{version}.tar.gz +Source: https://github.com/geomet/geomet/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -33,6 +33,7 @@ Requires: python-six BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} # /SECTION %python_subpackages @@ -48,8 +49,13 @@ GeoJSON <-> WKT/WKB conversion utilities %install %python_install +rm %{buildroot}%{_prefix}/LICENSE %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +export PATH=$PATH:%{buildroot}%{_bindir} +%pytest + %files %{python_files} %doc AUTHORS.txt README.md %license LICENSE