Package init

This commit is contained in:
lauk001 2022-06-20 15:14:04 +08:00
parent 85265daf02
commit 2cf9a8434e
3 changed files with 55 additions and 0 deletions

51
ShellCheck.spec Normal file
View File

@ -0,0 +1,51 @@
%global pypi_name fuzzywuzzy
Name: python-%{pypi_name}
Version: 0.18.0
Release: 1
Summary: Fuzzy string matching in Python
License: GPL-2.0
URL: https://github.com/seatgeek/fuzzywuzzy/
Source0: %{pypi_source}
BuildArch: noarch
%description
Fuzzy string matching module that uses Levenshtein Distance to calculate the
differences between sequences in a simple-to-use package.
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pycodestyle
%description -n python3-%{pypi_name}
Fuzzy string matching module that uses Levenshtein Distance to calculate the
differences between sequences in a simple-to-use package.
%prep
%setup -q -n %{pypi_name}-%{version}
# These scripts shouldn't be executable
sed -i '1d' %{pypi_name}/{fuzz.py,process.py,StringMatcher.py}
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m unittest
%files -n python3-%{pypi_name}
%doc CHANGES.rst README.rst
%license LICENSE.txt
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%changelog
* Mon Jun 20 2022 liukuo <liukuo@kylinos.cn> - 0.18.0-1
- Package init

4
ShellCheck.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: seatgeek/fuzzywuzzy
tag_prefix: "^v"
separator: "."

BIN
fuzzywuzzy-0.18.0.tar.gz Normal file

Binary file not shown.