!5 update to version 0.1.1

From: @wang--ge 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2023-04-26 02:32:20 +00:00 committed by Gitee
commit 19af339790
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 16 additions and 59 deletions

View File

@ -1,27 +0,0 @@
From b0fa876059f4e9768ed7b85e58a40ab7673b27c8 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 7 Feb 2023 18:00:00 +0800
Subject: [PATCH] rollback setuptools-scm versioning
---
aiomysql/__init__.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/aiomysql/__init__.py b/aiomysql/__init__.py
index a367fcd..a412281 100644
--- a/aiomysql/__init__.py
+++ b/aiomysql/__init__.py
@@ -32,9 +32,8 @@ from pymysql.err import (Warning, Error, InterfaceError, DataError,
from .connection import Connection, connect
from .cursors import Cursor, SSCursor, DictCursor, SSDictCursor
from .pool import create_pool, Pool
-from ._version import version
-__version__ = version
+__version__ = '0.1.0'
__all__ = [
--
2.27.0

BIN
aiomysql-0.1.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-aiomysql
Version: 0.1.0
Version: 0.1.1
Release: 1
Summary: MySQL driver for asyncio.
License: MIT
URL: https://github.com/aio-libs/aiomysql
Source0: https://github.com/aio-libs/aiomysql/archive/refs/tags/v0.1.0.tar.gz
Source1: https://github.com/aio-libs/aiomysql/raw/c93fad378a5d9c823218b0b7fb271d65d6b2835b/setup.py
Patch0: 0001-rollback-setuptools-scm-versioning.patch
Source0: https://files.pythonhosted.org/packages/31/03/1a112200f689892e0faa60d6fa8bff4fffc1d5fa29833c5d1439de808628/aiomysql-0.1.1.tar.gz
BuildArch: noarch
Requires: python3-PyMySQL
@ -23,7 +21,9 @@ preserve same api, look and feel.
Summary: MySQL driver for asyncio.
Provides: python-aiomysql
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-PyMySQL
BuildRequires: python3-wheel
%description -n python3-aiomysql
**aiomysql** is a "driver" for accessing a `MySQL` database
from the asyncio_ (PEP-3156/tulip) framework. It depends on and reuses most
@ -40,47 +40,31 @@ parts of PyMySQL_ . *aiomysql* tries to be like awesome aiopg_ library and
preserve same api, look and feel.
%prep
%autosetup -n aiomysql-0.1.0 -p1
cp %{SOURCE1} .
%autosetup -n aiomysql-%{version} -p1
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install aiomysql==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-aiomysql -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-aiomysql
%doc README.rst
%license LICENSE
%{python3_sitelib}/aiomysql*
%files help -f doclist.lst
%files help
%{_docdir}/*
%changelog
* Sun Apr 23 2023 Ge Wang <wang__ge@126.com> - 0.1.1-1
- Update package to 0.1.1
* Tue Feb 07 2023 Ge Wang <wangge20@h-partners.com> - 0.1.0-1
- update package to 0.1.0

Binary file not shown.