diff --git a/0001-rollback-setuptools-scm-versioning.patch b/0001-rollback-setuptools-scm-versioning.patch deleted file mode 100644 index 9e6601d9123b34d34e05cc94ee21810ebd4a1bb3..0000000000000000000000000000000000000000 --- a/0001-rollback-setuptools-scm-versioning.patch +++ /dev/null @@ -1,27 +0,0 @@ -From b0fa876059f4e9768ed7b85e58a40ab7673b27c8 Mon Sep 17 00:00:00 2001 -From: wang--ge -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 - diff --git a/aiomysql-0.1.1.tar.gz b/aiomysql-0.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..29570bdc9ff0f7e89b8fb31433a4140b2c1575fe Binary files /dev/null and b/aiomysql-0.1.1.tar.gz differ diff --git a/python-aiomysql.spec b/python-aiomysql.spec index 62d6de4de79709973b9c73112e2fe15a5055fdd6..678e579234ad6cfa73ef17ecef62921ed952b1f2 100644 --- a/python-aiomysql.spec +++ b/python-aiomysql.spec @@ -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 - 0.1.1-1 +- Update package to 0.1.1 + * Tue Feb 07 2023 Ge Wang - 0.1.0-1 - update package to 0.1.0 diff --git a/v0.1.0.tar.gz b/v0.1.0.tar.gz deleted file mode 100644 index 9a43c2c1c14c01dc7924574deafe99ac106102a4..0000000000000000000000000000000000000000 Binary files a/v0.1.0.tar.gz and /dev/null differ