forked from pool/python-geolib
- Add patch fix-setup.py.patch, correct version, drop unused
requirements. - Switch to pyproject and autosetup macros. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geolib?expand=0&rev=6
This commit is contained in:
parent
0e099076bd
commit
d8fcb9b4f8
30
fix-setup.py.patch
Normal file
30
fix-setup.py.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Index: geolib-1.0.7/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- geolib-1.0.7.orig/setup.py
|
||||||
|
+++ geolib-1.0.7/setup.py
|
||||||
|
@@ -3,17 +3,14 @@ import setuptools
|
||||||
|
with open("README.md", "r") as fh:
|
||||||
|
long_description = fh.read()
|
||||||
|
|
||||||
|
-requires = [
|
||||||
|
- 'future'
|
||||||
|
-]
|
||||||
|
+requires = []
|
||||||
|
test_requirements = [
|
||||||
|
- 'future',
|
||||||
|
'pytest'
|
||||||
|
]
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
name="geolib",
|
||||||
|
- version="1.0.6",
|
||||||
|
+ version="1.0.7",
|
||||||
|
author="Anu Joy",
|
||||||
|
author_email="oss@cartographix.org",
|
||||||
|
description="A library for geohash encoding, decoding and associated functions",
|
||||||
|
Index: geolib-1.0.7/requirements.txt
|
||||||
|
===================================================================
|
||||||
|
--- geolib-1.0.7.orig/requirements.txt
|
||||||
|
+++ geolib-1.0.7/requirements.txt
|
||||||
|
@@ -1 +0,0 @@
|
||||||
|
-future>=0.16.0
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 11 05:55:24 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch fix-setup.py.patch, correct version, drop unused
|
||||||
|
requirements.
|
||||||
|
- Switch to pyproject and autosetup macros.
|
||||||
|
- Stop using greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 3 12:52:49 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Wed Jul 3 12:52:49 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-geolib
|
# spec file for package python-geolib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,30 +16,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-geolib
|
Name: python-geolib
|
||||||
Version: 1.0.7
|
Version: 1.0.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for geohash encoding, decoding and associated functions
|
Summary: A library for geohash encoding, decoding and associated functions
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://geolib.readthedocs.io/en/latest/
|
URL: https://geolib.readthedocs.io/en/latest/
|
||||||
# does not include license, docs, tests: https://github.com/joyanujoy/geolib/issues/1
|
|
||||||
#Source: https://files.pythonhosted.org/packages/source/g/geolib/geolib-%{version}.tar.gz
|
|
||||||
Source: https://github.com/joyanujoy/geolib/archive/%{version}.tar.gz#/geolib-%{version}.tar.gz
|
Source: https://github.com/joyanujoy/geolib/archive/%{version}.tar.gz#/geolib-%{version}.tar.gz
|
||||||
|
Patch0: fix-setup.py.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module future}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
# SECTION docs requirements
|
# SECTION docs requirements
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-future
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,10 +44,10 @@ This is a Python port of Chris Veness's Javascript implementation,
|
|||||||
https://www.movable-type.co.uk/scripts/geohash.html .
|
https://www.movable-type.co.uk/scripts/geohash.html .
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n geolib-%{version}
|
%autosetup -p1 -n geolib-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
pushd docs
|
pushd docs
|
||||||
make html
|
make html
|
||||||
rm _build/html/.buildinfo
|
rm _build/html/.buildinfo
|
||||||
@ -59,8 +55,8 @@ rm _build/html/.nojekyll
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}a
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
@ -68,6 +64,7 @@ popd
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md docs/_build/html/
|
%doc README.md docs/_build/html/
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/geolib
|
||||||
|
%{python_sitelib}/geolib-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user