Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37912786
en ru br
ALT Linux repositórios
S:0.2.0-alt1

Group :: Development/Python3
RPM: python3-module-aiomysql

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name aiomysql

# tests require running mysql on 127.0.0.1, so they are disabled

%def_without check

Name: python3-module-%pypi_name
Version: 0.2.0
Release: alt1

Summary: A library for accessing a MySQL database from the asyncio
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/aiomysql/
Vcs: https://github.com/aio-libs/aiomysql

BuildArch: noarch

Source0: %name-%version.tar
Source1: %pyproject_deps_config_name

%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%add_pyproject_deps_build_filter setuptools-scm-git-archive
%pyproject_builddeps_build

%if_with check
%pyproject_builddeps_metadata
%pyproject_builddeps_check
%endif

%description
aiomysql is a "driver" for accessing a MySQL database from the asyncio
(PEP-3156/tulip) framework. It depends on and reuses most parts of PyMySQL.
aiomysql tries to be like awesome aiopg library and preserve same api,
look and feel.

Internally aiomysql is copy of PyMySQL, underlying io calls switched to async,
basically yield from and asyncio.coroutine added in proper places)).
sqlalchemy support ported from aiopg.

%prep
%setup
%pyproject_scm_init
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata

%if_with check
%pyproject_deps_resync_check_pipreqfile requirements-dev.txt
%endif

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -vra

%files
%doc README.rst LICENSE CHANGES.txt
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009