Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
python-aiocsv
python-aiocsv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-aiocsv.spec of Package python-aiocsv
# # spec file for package python-aiocsv # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?sle15_python_module_pythons} Name: python-aiocsv Version: 1.3.2 Release: 0 Summary: Asynchronous CSV reading/writing in Python License: MIT URL: https://github.com/MKuranowski/aiocsv Source: https://files.pythonhosted.org/packages/source/a/aiocsv/aiocsv-%{version}.tar.gz BuildRequires: %{python_module aiofiles} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 61.0} BuildRequires: %{python_module typing_extensions} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-typing_extensions %python_subpackages %description Asynchronous CSV reading and writing AsyncReader & AsyncDictReader accept any object that has a read(size: int) coroutine, which should return a string. AsyncWriter & AsyncDictWriter accept any object that has a write(b: str) coroutine. Reading is implemented using a custom CSV parser, which should behave exactly like the CPython parser. Writing is implemented using the synchronous csv.writer and csv.DictWriter objects - the serializers write data to a StringIO, and that buffer is then rewritten to the underlying asynchronous file. %prep %autosetup -p1 -n aiocsv-%{version} %build export CFLAGS="%{optflags}" %pyproject_wheel %install %pyproject_install %{python_expand # rm %{buildroot}%{$python_sitearch}/aiocsv/_parser.c sed -i '/_parser.c/d' %{buildroot}%{$python_sitearch}/aiocsv-%{version}.dist-info/RECORD %fdupes %{buildroot}%{$python_sitearch} } %check %pytest_arch %files %{python_files} %doc readme.md %license LICENSE %{python_sitearch}/aiocsv %{python_sitearch}/aiocsv-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor