diff options
| author | Zoltán Böszörményi <zboszor@gmail.com> | 2025-10-06 07:50:16 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-06 11:34:43 -0700 |
| commit | b1140390b6b14352e14754fb9a05bd019eee6c86 (patch) | |
| tree | c6e4a37014e564567a2ce86628552aa61f950e65 /meta-python/recipes-devtools/python | |
| parent | f1b10c2686ba12e64136862fb545f3c195494c90 (diff) | |
| download | meta-openembedded-b1140390b6b14352e14754fb9a05bd019eee6c86.tar.gz | |
python3-odfpy: New recipe for version 1.4.1
It's an optional dependency for pandas to provide ODS reader
and writer support. It complements spreadsheet support along
with python3-xlrd and python3-openpyxl, both of which are
part of meta-python already.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-odfpy/run-ptest | 3 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb | 43 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-odfpy/run-ptest b/meta-python/recipes-devtools/python/python3-odfpy/run-ptest new file mode 100644 index 0000000000..5cec711696 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-odfpy/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest | ||
diff --git a/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb b/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb new file mode 100644 index 0000000000..9b470f11ac --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-odfpy_1.4.1.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "Python API and tools to manipulate OpenDocument files" | ||
| 2 | DESCRIPTION = "Odfpy is a library to read and write OpenDocument v. 1.2 \ | ||
| 3 | files. The main focus has been to prevent the programmer from creating \ | ||
| 4 | invalid documents. It has checks that raise an exception if the programmer \ | ||
| 5 | adds an invalid element, adds an attribute unknown to the grammar, forgets \ | ||
| 6 | to add a required attribute or adds text to an element that doesn’t allow it. \ | ||
| 7 | \ | ||
| 8 | These checks and the API itself were generated from the RelaxNG schema, and \ | ||
| 9 | then hand-edited. Therefore the API is complete and can handle all ODF \ | ||
| 10 | constructions. \ | ||
| 11 | \ | ||
| 12 | In addition to the API, there are a few scripts: \ | ||
| 13 | csv2odf - Create OpenDocument spreadsheet from comma separated values \ | ||
| 14 | mailodf - Email ODF file as HTML archive \ | ||
| 15 | odf2xhtml - Convert ODF to (X)HTML \ | ||
| 16 | odf2mht - Convert ODF to HTML archive \ | ||
| 17 | odf2xml - Create OpenDocument XML file from OD? package \ | ||
| 18 | odfimgimport - Import external images \ | ||
| 19 | odflint - Check ODF file for problems \ | ||
| 20 | odfmeta - List or change the metadata of an ODF file \ | ||
| 21 | odfoutline - Show outline of OpenDocument \ | ||
| 22 | odfuserfield - List or change the user-field declarations in an ODF file \ | ||
| 23 | xml2odf - Create OD? package from OpenDocument in XML form \ | ||
| 24 | \ | ||
| 25 | The source code is at https://github.com/eea/odfpy \ | ||
| 26 | \ | ||
| 27 | Visit https://github.com/eea/odfpy/wiki for documentation and examples. \ | ||
| 28 | \ | ||
| 29 | The code at https://joinup.ec.europa.eu/software/odfpy/home is obsolete." | ||
| 30 | LICENSE = "Apache-2.0 | (GPL-2.0-or-later & LGPL-2.0-or-later)" | ||
| 31 | LIC_FILES_CHKSUM = " \ | ||
| 32 | file://APACHE-LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
| 33 | file://GPL-LICENSE-2.txt;md5=751419260aa954499f7abaabaa882bbe \ | ||
| 34 | " | ||
| 35 | |||
| 36 | PYPI_PACKAGE = "odfpy" | ||
| 37 | |||
| 38 | inherit pypi ptest-python-pytest setuptools3 | ||
| 39 | SRC_URI[sha256sum] = "db766a6e59c5103212f3cc92ec8dd50a0f3a02790233ed0b52148b70d3c438ec" | ||
| 40 | |||
| 41 | SRC_URI += "file://run-ptest" | ||
| 42 | |||
| 43 | RDEPENDS:${PN} = "python3-defusedxml" | ||
