diff --git a/aiomysql-0.1.1.tar.gz b/aiomysql-0.1.1.tar.gz deleted file mode 100644 index 29570bd..0000000 Binary files a/aiomysql-0.1.1.tar.gz and /dev/null differ diff --git a/aiomysql-0.2.0.tar.gz b/aiomysql-0.2.0.tar.gz new file mode 100644 index 0000000..6a73028 Binary files /dev/null and b/aiomysql-0.2.0.tar.gz differ diff --git a/python-aiomysql.spec b/python-aiomysql.spec index 678e579..0a70749 100644 --- a/python-aiomysql.spec +++ b/python-aiomysql.spec @@ -1,15 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-aiomysql -Version: 0.1.1 +Version: 0.2.0 Release: 1 Summary: MySQL driver for asyncio. License: MIT URL: https://github.com/aio-libs/aiomysql -Source0: https://files.pythonhosted.org/packages/31/03/1a112200f689892e0faa60d6fa8bff4fffc1d5fa29833c5d1439de808628/aiomysql-0.1.1.tar.gz +Source0: https://files.pythonhosted.org/packages/67/76/2c5b55e4406a1957ffdfd933a94c2517455291c97d2b81cec6813754791a/aiomysql-0.2.0.tar.gz BuildArch: noarch -Requires: python3-PyMySQL -Requires: python3-sqlalchemy %description **aiomysql** is a "driver" for accessing a `MySQL` database @@ -19,11 +17,13 @@ preserve same api, look and feel. %package -n python3-aiomysql Summary: MySQL driver for asyncio. -Provides: python-aiomysql +Provides: python-aiomysql = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-PyMySQL BuildRequires: python3-wheel +Requires: python3-PyMySQL +Requires: python3-sqlalchemy %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 @@ -62,6 +62,9 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi %{_docdir}/* %changelog +* Wed Jun 21 2023 jiangxinyu - 0.2.0-1 +- Update package to 0.2.0 + * Sun Apr 23 2023 Ge Wang - 0.1.1-1 - Update package to 0.1.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 0cdacf2..0000000 --- a/setup.py +++ /dev/null @@ -1,70 +0,0 @@ -import os -import re -import sys -from setuptools import setup, find_packages - - -install_requires = ['PyMySQL>=1.0.0,<=1.0.2'] - -PY_VER = sys.version_info - - -if not PY_VER >= (3, 7, 0): - raise RuntimeError("aiomysql doesn't support Python earlier than 3.7.0") - - -def read(f): - return open(os.path.join(os.path.dirname(__file__), f)).read().strip() - - -extras_require = {'sa': ['sqlalchemy>=1.0'], } - - -def read_version(): - regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'") - init_py = os.path.join(os.path.dirname(__file__), - 'aiomysql', '__init__.py') - with open(init_py) as f: - for line in f: - match = regexp.match(line) - if match is not None: - return match.group(1) - else: - raise RuntimeError('Cannot find version in aiomysql/__init__.py') - - -classifiers = [ - 'License :: OSI Approved :: MIT License', - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Operating System :: POSIX', - 'Environment :: Web Environment', - 'Development Status :: 3 - Alpha', - 'Topic :: Database', - 'Topic :: Database :: Front-Ends', - 'Framework :: AsyncIO', -] - -keywords = ["mysql", "asyncio", "aiomysql"] - - -setup(name='aiomysql', - version=read_version(), - description=('MySQL driver for asyncio.'), - long_description='\n\n'.join((read('README.rst'), read('CHANGES.txt'))), - classifiers=classifiers, - platforms=['POSIX'], - author="Nikolay Novik", - author_email="nickolainovik@gmail.com", - url='https://github.com/aio-libs/aiomysql', - download_url='https://pypi.python.org/pypi/aiomysql', - license='MIT', - packages=find_packages(exclude=['tests', 'tests.*']), - install_requires=install_requires, - extras_require=extras_require, - keywords=keywords, - include_package_data=True)