diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-21 16:10:19 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-21 16:10:19 +0000 |
| commit | 73af1d5978b654fa3ffd2a829ea942a6ee821528 (patch) | |
| tree | 1ddd532d9b664fad41e3eab39703d3b58692d3d3 | |
| parent | 13c9b23c21a50d5ce88ccf3357ca558f2dcf8e7e (diff) | |
automatic import of python-numbers-parseropeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-numbers-parser.spec | 98 | ||||
| -rw-r--r-- | sources | 2 |
3 files changed, 36 insertions, 65 deletions
@@ -1 +1,2 @@ /numbers_parser-3.9.5.tar.gz +/numbers_parser-3.9.6.tar.gz diff --git a/python-numbers-parser.spec b/python-numbers-parser.spec index ab81788..49ff407 100644 --- a/python-numbers-parser.spec +++ b/python-numbers-parser.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-numbers-parser -Version: 3.9.5 +Version: 3.9.6 Release: 1 Summary: Read and write Apple Numbers spreadsheets License: MIT URL: https://github.com/masaccio/numbers-parser -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cc/22/da91c1513a423ddf97c27e291dd9ef472c84d243da5e61a4db18e93fb5b1/numbers_parser-3.9.5.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9a/d5/1d1c7d68588ca8d4e67a154f9c65341f11888b60320db572580ba1f17844/numbers_parser-3.9.6.tar.gz BuildArch: noarch Requires: python3-compact-json @@ -64,13 +64,19 @@ brew install snappy python3 CPPFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" python3 -m pip install python-snappy ``` +On Windows, you will need to either arrange for snappy to be found for VSC++ or you can install python binary libraries compiled by [Christoph Gohlke](https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-snappy). You must select the correct python version for your installation. For example for python 3.11: + +``` text +C:\Users\Jon>pip install C:\Users\Jon\Downloads\python_snappy-0.6.1-cp311-cp311-win_amd64.whl +``` + ## Usage Reading documents: ``` python from numbers_parser import Document -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets[0].tables rows = tables[0].rows() @@ -111,7 +117,7 @@ Cells are objects with a common base class of `Cell`. All cell types have a prop In addition to extracting all data at once, individual cells can be referred to as methods ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -130,7 +136,7 @@ object which is typed by the type of cell in the Numbers table. ```MergeCell``` indicates cells removed in a merge. ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -329,29 +335,13 @@ metadata, text, and all other definitions used in the spreadsheet. As `numbers-parser` includes private Protobuf definitions extracted from a copy of Numbers, new versions of Numbers will inevitably create `.numbers` files that cannot be read by `numbers-parser`. As new versions of Numbers are released, running `make bootstrap` will perform all the steps necessary to recreate the protobuf files used `numbers-parser` to read Numbers spreadsheets. -On Apple Silicon Macs, the default protobuf package installation does not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: +The default protobuf package installation may not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: `This script requires the Protobuf installation to use the C++ implementation. Please reinstall Protobuf with C++ support.` To include the C++ support, download a released version of Google protobuf [from github](https://github.com/protocolbuffers/protobuf). Build instructions are in the [`src/README.md`](https://github.com/protocolbuffers/protobuf/blob/main/src/README.md) in the distribution but for macOS with [Homebrew](https://brew.sh) the two steps are, firstly to install the native protobuf libraries, which must be on your `LD_LIBRARY_PATH`: -``` bash -brew install autoconf automake libtool -./autogen.sh -./configure --prefix=/usr/local -make check -j`sysctl -n hw.ncpu` -sudo make install -``` - -And then to install the Python libraries with C++ support. If you already have protobuf install via Homebrew, you will need to `brew unlink` the installation. -``` bash -cd python -python3 setup.py build --cpp_implementation -python3 setup.py test --cpp_implementation -python3 setup.py install --cpp_implementation -``` - This will install protobuf in a folder above the source installation which can then be used by `make bootstrap` in the `numbers-parser` source tree. ## Credits @@ -426,13 +416,19 @@ brew install snappy python3 CPPFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" python3 -m pip install python-snappy ``` +On Windows, you will need to either arrange for snappy to be found for VSC++ or you can install python binary libraries compiled by [Christoph Gohlke](https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-snappy). You must select the correct python version for your installation. For example for python 3.11: + +``` text +C:\Users\Jon>pip install C:\Users\Jon\Downloads\python_snappy-0.6.1-cp311-cp311-win_amd64.whl +``` + ## Usage Reading documents: ``` python from numbers_parser import Document -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets[0].tables rows = tables[0].rows() @@ -473,7 +469,7 @@ Cells are objects with a common base class of `Cell`. All cell types have a prop In addition to extracting all data at once, individual cells can be referred to as methods ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -492,7 +488,7 @@ object which is typed by the type of cell in the Numbers table. ```MergeCell``` indicates cells removed in a merge. ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -691,29 +687,13 @@ metadata, text, and all other definitions used in the spreadsheet. As `numbers-parser` includes private Protobuf definitions extracted from a copy of Numbers, new versions of Numbers will inevitably create `.numbers` files that cannot be read by `numbers-parser`. As new versions of Numbers are released, running `make bootstrap` will perform all the steps necessary to recreate the protobuf files used `numbers-parser` to read Numbers spreadsheets. -On Apple Silicon Macs, the default protobuf package installation does not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: +The default protobuf package installation may not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: `This script requires the Protobuf installation to use the C++ implementation. Please reinstall Protobuf with C++ support.` To include the C++ support, download a released version of Google protobuf [from github](https://github.com/protocolbuffers/protobuf). Build instructions are in the [`src/README.md`](https://github.com/protocolbuffers/protobuf/blob/main/src/README.md) in the distribution but for macOS with [Homebrew](https://brew.sh) the two steps are, firstly to install the native protobuf libraries, which must be on your `LD_LIBRARY_PATH`: -``` bash -brew install autoconf automake libtool -./autogen.sh -./configure --prefix=/usr/local -make check -j`sysctl -n hw.ncpu` -sudo make install -``` - -And then to install the Python libraries with C++ support. If you already have protobuf install via Homebrew, you will need to `brew unlink` the installation. -``` bash -cd python -python3 setup.py build --cpp_implementation -python3 setup.py test --cpp_implementation -python3 setup.py install --cpp_implementation -``` - This will install protobuf in a folder above the source installation which can then be used by `make bootstrap` in the `numbers-parser` source tree. ## Credits @@ -785,13 +765,19 @@ brew install snappy python3 CPPFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" python3 -m pip install python-snappy ``` +On Windows, you will need to either arrange for snappy to be found for VSC++ or you can install python binary libraries compiled by [Christoph Gohlke](https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-snappy). You must select the correct python version for your installation. For example for python 3.11: + +``` text +C:\Users\Jon>pip install C:\Users\Jon\Downloads\python_snappy-0.6.1-cp311-cp311-win_amd64.whl +``` + ## Usage Reading documents: ``` python from numbers_parser import Document -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets[0].tables rows = tables[0].rows() @@ -832,7 +818,7 @@ Cells are objects with a common base class of `Cell`. All cell types have a prop In addition to extracting all data at once, individual cells can be referred to as methods ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -851,7 +837,7 @@ object which is typed by the type of cell in the Numbers table. ```MergeCell``` indicates cells removed in a merge. ``` python -doc = Document("my-spreasdsheet.numbers") +doc = Document("my-spreadsheet.numbers") sheets = doc.sheets tables = sheets["Sheet 1"].tables table = tables["Table 1"] @@ -1050,29 +1036,13 @@ metadata, text, and all other definitions used in the spreadsheet. As `numbers-parser` includes private Protobuf definitions extracted from a copy of Numbers, new versions of Numbers will inevitably create `.numbers` files that cannot be read by `numbers-parser`. As new versions of Numbers are released, running `make bootstrap` will perform all the steps necessary to recreate the protobuf files used `numbers-parser` to read Numbers spreadsheets. -On Apple Silicon Macs, the default protobuf package installation does not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: +The default protobuf package installation may not include the C++ optimised version which is required by the bootstrapping scripts to extract protobufs. You will receive the following error during build if this is the case: `This script requires the Protobuf installation to use the C++ implementation. Please reinstall Protobuf with C++ support.` To include the C++ support, download a released version of Google protobuf [from github](https://github.com/protocolbuffers/protobuf). Build instructions are in the [`src/README.md`](https://github.com/protocolbuffers/protobuf/blob/main/src/README.md) in the distribution but for macOS with [Homebrew](https://brew.sh) the two steps are, firstly to install the native protobuf libraries, which must be on your `LD_LIBRARY_PATH`: -``` bash -brew install autoconf automake libtool -./autogen.sh -./configure --prefix=/usr/local -make check -j`sysctl -n hw.ncpu` -sudo make install -``` - -And then to install the Python libraries with C++ support. If you already have protobuf install via Homebrew, you will need to `brew unlink` the installation. -``` bash -cd python -python3 setup.py build --cpp_implementation -python3 setup.py test --cpp_implementation -python3 setup.py install --cpp_implementation -``` - This will install protobuf in a folder above the source installation which can then be used by `make bootstrap` in the `numbers-parser` source tree. ## Credits @@ -1093,7 +1063,7 @@ All code in this repository is licensed under the [MIT License](https://github.c %prep -%autosetup -n numbers-parser-3.9.5 +%autosetup -n numbers-parser-3.9.6 %build %py3_build @@ -1133,5 +1103,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.9.5-1 +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 3.9.6-1 - Package Spec generated @@ -1 +1 @@ -3cd3feab6455b28512a7e4ff0b962354 numbers_parser-3.9.5.tar.gz +c0209760dea9b08a0f30510038bd4295 numbers_parser-3.9.6.tar.gz |
