Group :: Development/Python3
RPM: python3-module-asyncmy
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name asyncmy
# tests require running mysqld, so they are disabled
%def_without check
Name: python3-module-%pypi_name
Version: 0.2.5
Release: alt2
Summary: A fast asyncio MySQL/MariaDB driver with replication protocol support
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/asyncmy
Source0: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(cython)
BuildRequires: python3(poetry-core)
BuildRequires: python3(setuptools)
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(pytest-asyncio)
%endif
%description
asyncmy is a fast asyncio MySQL/MariaDB driver, which reuse most of pymysql
and aiomysql but rewrite core protocol with cython to speedup.
%prep
%setup
%build
%pyproject_build --backend-config-settings='{"user-option": ["--inline"]}'
%install
%pyproject_install
# remove wrong-installed docs
rm %buildroot%python3_sitelibdir/{README.md,CHANGELOG.md,LICENSE}
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc README.md LICENSE CHANGELOG.md
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name asyncmy
# tests require running mysqld, so they are disabled
%def_without check
Name: python3-module-%pypi_name
Version: 0.2.5
Release: alt2
Summary: A fast asyncio MySQL/MariaDB driver with replication protocol support
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/asyncmy
Source0: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3(cython)
BuildRequires: python3(poetry-core)
BuildRequires: python3(setuptools)
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(pytest-asyncio)
%endif
%description
asyncmy is a fast asyncio MySQL/MariaDB driver, which reuse most of pymysql
and aiomysql but rewrite core protocol with cython to speedup.
%prep
%setup
%build
%pyproject_build --backend-config-settings='{"user-option": ["--inline"]}'
%install
%pyproject_install
# remove wrong-installed docs
rm %buildroot%python3_sitelibdir/{README.md,CHANGELOG.md,LICENSE}
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc README.md LICENSE CHANGELOG.md
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%changelog
…
Todas as alterações você pod ver aqui