Update package to 0.2.0
This commit is contained in:
parent
19af339790
commit
626dd08f49
Binary file not shown.
BIN
aiomysql-0.2.0.tar.gz
Normal file
BIN
aiomysql-0.2.0.tar.gz
Normal file
Binary file not shown.
@ -1,15 +1,13 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-aiomysql
|
Name: python-aiomysql
|
||||||
Version: 0.1.1
|
Version: 0.2.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: MySQL driver for asyncio.
|
Summary: MySQL driver for asyncio.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/aio-libs/aiomysql
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-PyMySQL
|
|
||||||
Requires: python3-sqlalchemy
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
**aiomysql** is a "driver" for accessing a `MySQL` database
|
**aiomysql** is a "driver" for accessing a `MySQL` database
|
||||||
@ -19,11 +17,13 @@ preserve same api, look and feel.
|
|||||||
|
|
||||||
%package -n python3-aiomysql
|
%package -n python3-aiomysql
|
||||||
Summary: MySQL driver for asyncio.
|
Summary: MySQL driver for asyncio.
|
||||||
Provides: python-aiomysql
|
Provides: python-aiomysql = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-PyMySQL
|
BuildRequires: python3-PyMySQL
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
|
Requires: python3-PyMySQL
|
||||||
|
Requires: python3-sqlalchemy
|
||||||
%description -n python3-aiomysql
|
%description -n python3-aiomysql
|
||||||
**aiomysql** is a "driver" for accessing a `MySQL` database
|
**aiomysql** is a "driver" for accessing a `MySQL` database
|
||||||
from the asyncio_ (PEP-3156/tulip) framework. It depends on and reuses most
|
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}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 21 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.2.0-1
|
||||||
|
- Update package to 0.2.0
|
||||||
|
|
||||||
* Sun Apr 23 2023 Ge Wang <wang__ge@126.com> - 0.1.1-1
|
* Sun Apr 23 2023 Ge Wang <wang__ge@126.com> - 0.1.1-1
|
||||||
- Update package to 0.1.1
|
- Update package to 0.1.1
|
||||||
|
|
||||||
|
|||||||
70
setup.py
70
setup.py
@ -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)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user