forked from pool/python-dist
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 0fd643800a | |||
| 908b583290 | |||
| fecc9c351a | |||
| 43eb7829b3 | |||
| 3df180da34 | |||
| 4486296b66 |
44
fix-version-number.patch
Normal file
44
fix-version-number.patch
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
From dc41696801eb78ce47ef3964fd5e057ef4a971b5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Eugene Dubovoy <eugene.dubovoy@gmail.com>
|
||||||
|
Date: Mon, 30 Jan 2017 22:57:09 +0200
|
||||||
|
Subject: [PATCH] Prepare to PyPI release of version 1.0.2
|
||||||
|
|
||||||
|
---
|
||||||
|
README.md | 3 +++
|
||||||
|
setup.py | 4 ++--
|
||||||
|
2 files changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/README.md b/README.md
|
||||||
|
index c9bb451..2c5b363 100644
|
||||||
|
--- a/README.md
|
||||||
|
+++ b/README.md
|
||||||
|
@@ -17,7 +17,10 @@ Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
python setup.py install
|
||||||
|
+
|
||||||
|
+Or using alternative command:
|
||||||
|
|
||||||
|
+ pip install https://github.com/duboviy/dist/archive/master.zip
|
||||||
|
|
||||||
|
Input and output data
|
||||||
|
----------
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index bd264d3..ba865f3 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -12,12 +12,12 @@
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="dist",
|
||||||
|
- version="1.0.2",
|
||||||
|
+ version="1.0.3",
|
||||||
|
description="Compute distance between two coordinates on the map",
|
||||||
|
author='Eugene Duboviy',
|
||||||
|
author_email='eugene.dubovoy@gmail.com',
|
||||||
|
url='https://github.com/duboviy/dist',
|
||||||
|
- download_url = 'https://github.com/duboviy/dist/tarball/1.0.2',
|
||||||
|
+ download_url = 'https://github.com/duboviy/dist/tarball/1.0.3',
|
||||||
|
keywords = ['distance', 'coordinates', 'map', 'performance'],
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python",
|
||||||
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 20 12:53:53 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 5 06:03:04 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
- Add patch fix-version-number.patch:
|
||||||
|
* Actually have this report itself as the correct version.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 13 10:37:20 UTC 2023 - pgajdos@suse.com
|
Thu Apr 13 10:37:20 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-dist
|
# spec file for package python-dist
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 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,19 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-dist
|
Name: python-dist
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Compute distance between two coordinates on the map
|
Summary: Compute distance between two coordinates on the map
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/duboviy/dist
|
URL: https://github.com/duboviy/dist
|
||||||
Source: https://github.com/duboviy/dist/archive/%{version}.tar.gz
|
Source: https://github.com/duboviy/dist/archive/%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM gh#duboviy/dist#dc41696801eb78ce47ef3964fd5e057ef4a971b5
|
||||||
|
Patch0: fix-version-number.patch
|
||||||
# https://github.com/duboviy/dist/issues/8
|
# https://github.com/duboviy/dist/issues/8
|
||||||
Patch0: python-dist-no-six.patch
|
Patch1: python-dist-no-six.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
@@ -47,10 +50,10 @@ that is almost 3 times faster than similar fast pure python implementation.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -59,6 +62,7 @@ export CFLAGS="%{optflags}"
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/dist.cpython-*-linux-gnu.so
|
||||||
|
%{python_sitearch}/dist-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user