init package of version 1.4.3 python-url-normalize

This commit is contained in:
luolu12 2023-08-18 15:13:31 +08:00
parent 8388be8d1d
commit 144d1a7da7
3 changed files with 73 additions and 0 deletions

24
0001-bugfix.patch Normal file
View File

@ -0,0 +1,24 @@
From 3aa78e61e455221c8c9786107f3302f0381c749b Mon Sep 17 00:00:00 2001
From: luolu12 <luluoc@isoftstone.com>
Date: Mon, 21 Aug 2023 14:32:29 +0800
Subject: [PATCH] bugfix
---
pyproject.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index f824aa9..50b60d7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,5 +30,5 @@ pytest-socket = [{version="0.3.3", python="~2.7"}, {version="*", python="^3.6"}]
tox = [{version="*", python="^3.6"}]
[build-system]
-build-backend = "poetry.masonry.api"
-requires = ["poetry>=0.12"]
+build-backend = "poetry.core.masonry.api"
+requires = ["poetry-core>=1.0.0"]
--
2.33.0

49
python-url-normalize.spec Normal file
View File

@ -0,0 +1,49 @@
%global pypi_name url-normalize
Name: python-%{pypi_name}
Version: 1.4.3
Release: 1
Summary: URL normalization for Python
License: MIT
URL: https://github.com/niksite/url-normalize
Source0: https://files.pythonhosted.org/packages/ec/ea/780a38c99fef750897158c0afb83b979def3b379aaac28b31538d24c4e8f/url-normalize-1.4.3.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-poetry-core
Patch001:0001-bugfix.patch
%description
URI Normalization function
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(six)
%description -n python3-%{pypi_name}
URI Normalization function
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/url_normalize*
%changelog
* Fri Aug 18 2023 luolu12 <luluoc@isoftstone.com> - 1.4.3-1
- Initial package.

BIN
url-normalize-1.4.3.tar.gz Normal file

Binary file not shown.