Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
efed8fda86 !15 delete python2 and build for doc
From: @weiwei_150212
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-12-06 06:35:52 +00:00
weiwei_150212
deba27b017 delete python2 and build for doc 2021-12-04 09:56:16 +08:00
openeuler-ci-bot
758aa53b24 !13 update release version
From: @hanxinke
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-02-10 18:03:33 +08:00
hanxinke
e67b56ef92 update release version 2021-02-10 14:38:59 +08:00
openeuler-ci-bot
5b5302e26e !8 replace obsolete pngmath with imgmath
From: @weiwei_150212
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-25 09:58:22 +08:00
jinzhimin369
724d64a6a2 replace obsolete pngmath with imgmath 2020-09-25 09:12:22 +08:00
openeuler-ci-bot
15ec09612a !3 python-kitchen
Merge pull request !3 from syyhao/dev215
2020-02-18 09:45:15 +08:00
openeuler-basic
b9448887a4 update to 2.6.1 and enable python3 2020-02-15 11:24:40 +08:00
openeuler-ci-bot
8e91c1f877 !2 package init
Merge pull request !2 from duyyb/next_openeuler
2019-12-23 17:31:06 +08:00
duyyb
4383fc83a0 package init 2019-12-23 17:29:16 +08:00
5 changed files with 105 additions and 125 deletions

View File

@ -0,0 +1,26 @@
diff --git a/kitchen2/docs/conf.py b/kitchen2/docs/conf.py
index 5885d48..b699d95 100644
--- a/kitchen2/docs/conf.py
+++ b/kitchen2/docs/conf.py
@@ -25,7 +25,7 @@ import kitchen.release
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
diff --git a/kitchen3/docs/conf.py b/kitchen3/docs/conf.py
index 5b70a39..fdc0a3b 100644
--- a/kitchen3/docs/conf.py
+++ b/kitchen3/docs/conf.py
@@ -25,7 +25,7 @@ import kitchen.release
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

BIN
kitchen-1.2.6.tar.gz Normal file

Binary file not shown.

View File

@ -1,125 +0,0 @@
From 5674b514567de893ef7ee7183b01d5aac2b93aec Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean@redhat.com>
Date: Fri, 8 Jun 2018 15:53:02 -0400
Subject: [PATCH] Update unicode combining table for py37.
---
kitchen3/kitchen/text/display.py | 98 ++++++++++++++++++++--------------------
1 file changed, 50 insertions(+), 48 deletions(-)
diff --git a/kitchen3/kitchen/text/display.py b/kitchen3/kitchen/text/display.py
index ba209ba..75a7e62 100644
--- a/kitchen3/kitchen/text/display.py
+++ b/kitchen3/kitchen/text/display.py
@@ -133,52 +133,54 @@ def _interval_bisearch(value, table):
(0xbcd, 0xbcd), (0xc3e, 0xc40), (0xc46, 0xc48),
(0xc4a, 0xc4d), (0xc55, 0xc56), (0xcbc, 0xcbc),
(0xcbf, 0xcbf), (0xcc6, 0xcc6), (0xccc, 0xccd),
- (0xce2, 0xce3), (0xd41, 0xd43), (0xd4d, 0xd4d),
- (0xdca, 0xdca), (0xdd2, 0xdd4), (0xdd6, 0xdd6),
- (0xe31, 0xe31), (0xe34, 0xe3a), (0xe47, 0xe4e),
- (0xeb1, 0xeb1), (0xeb4, 0xeb9), (0xebb, 0xebc),
- (0xec8, 0xecd), (0xf18, 0xf19), (0xf35, 0xf35),
- (0xf37, 0xf37), (0xf39, 0xf39), (0xf71, 0xf7e),
- (0xf80, 0xf84), (0xf86, 0xf87), (0xf90, 0xf97),
- (0xf99, 0xfbc), (0xfc6, 0xfc6), (0x102d, 0x1030),
- (0x1032, 0x1032), (0x1036, 0x1037), (0x1039, 0x103a),
- (0x1058, 0x1059), (0x108d, 0x108d), (0x1160, 0x11ff),
- (0x135d, 0x135f), (0x1712, 0x1714), (0x1732, 0x1734),
- (0x1752, 0x1753), (0x1772, 0x1773), (0x17b4, 0x17b5),
- (0x17b7, 0x17bd), (0x17c6, 0x17c6), (0x17c9, 0x17d3),
- (0x17dd, 0x17dd), (0x180b, 0x180d), (0x18a9, 0x18a9),
- (0x1920, 0x1922), (0x1927, 0x1928), (0x1932, 0x1932),
- (0x1939, 0x193b), (0x1a17, 0x1a18), (0x1a60, 0x1a60),
- (0x1a75, 0x1a7c), (0x1a7f, 0x1a7f), (0x1ab0, 0x1abd),
- (0x1b00, 0x1b03), (0x1b34, 0x1b34), (0x1b36, 0x1b3a),
- (0x1b3c, 0x1b3c), (0x1b42, 0x1b42), (0x1b44, 0x1b44),
- (0x1b6b, 0x1b73), (0x1baa, 0x1bab), (0x1be6, 0x1be6),
- (0x1bf2, 0x1bf3), (0x1c37, 0x1c37), (0x1cd0, 0x1cd2),
- (0x1cd4, 0x1ce0), (0x1ce2, 0x1ce8), (0x1ced, 0x1ced),
- (0x1cf4, 0x1cf4), (0x1cf8, 0x1cf9), (0x1dc0, 0x1df5),
- (0x1dfb, 0x1dff), (0x200b, 0x200f), (0x202a, 0x202e),
- (0x2060, 0x2063), (0x206a, 0x206f), (0x20d0, 0x20f0),
- (0x2cef, 0x2cf1), (0x2d7f, 0x2d7f), (0x2de0, 0x2dff),
- (0x302a, 0x302f), (0x3099, 0x309a), (0xa66f, 0xa66f),
- (0xa674, 0xa67d), (0xa69e, 0xa69f), (0xa6f0, 0xa6f1),
- (0xa806, 0xa806), (0xa80b, 0xa80b), (0xa825, 0xa826),
- (0xa8c4, 0xa8c4), (0xa8e0, 0xa8f1), (0xa92b, 0xa92d),
- (0xa953, 0xa953), (0xa9b3, 0xa9b3), (0xa9c0, 0xa9c0),
- (0xaab0, 0xaab0), (0xaab2, 0xaab4), (0xaab7, 0xaab8),
- (0xaabe, 0xaabf), (0xaac1, 0xaac1), (0xaaf6, 0xaaf6),
- (0xabed, 0xabed), (0xfb1e, 0xfb1e), (0xfe00, 0xfe0f),
- (0xfe20, 0xfe2f), (0xfeff, 0xfeff), (0xfff9, 0xfffb),
- (0x101fd, 0x101fd), (0x102e0, 0x102e0), (0x10376, 0x1037a),
- (0x10a01, 0x10a03), (0x10a05, 0x10a06), (0x10a0c, 0x10a0f),
- (0x10a38, 0x10a3a), (0x10a3f, 0x10a3f), (0x10ae5, 0x10ae6),
- (0x11046, 0x11046), (0x1107f, 0x1107f), (0x110b9, 0x110ba),
- (0x11100, 0x11102), (0x11133, 0x11134), (0x11173, 0x11173),
- (0x111c0, 0x111c0), (0x111ca, 0x111ca), (0x11235, 0x11236),
- (0x112e9, 0x112ea), (0x1133c, 0x1133c), (0x1134d, 0x1134d),
- (0x11366, 0x1136c), (0x11370, 0x11374), (0x11442, 0x11442),
- (0x11446, 0x11446), (0x114c2, 0x114c3), (0x115bf, 0x115c0),
- (0x1163f, 0x1163f), (0x116b6, 0x116b7), (0x1172b, 0x1172b),
- (0x11c3f, 0x11c3f), (0x16af0, 0x16af4), (0x16b30, 0x16b36),
+ (0xce2, 0xce3), (0xd3b, 0xd3c), (0xd41, 0xd43),
+ (0xd4d, 0xd4d), (0xdca, 0xdca), (0xdd2, 0xdd4),
+ (0xdd6, 0xdd6), (0xe31, 0xe31), (0xe34, 0xe3a),
+ (0xe47, 0xe4e), (0xeb1, 0xeb1), (0xeb4, 0xeb9),
+ (0xebb, 0xebc), (0xec8, 0xecd), (0xf18, 0xf19),
+ (0xf35, 0xf35), (0xf37, 0xf37), (0xf39, 0xf39),
+ (0xf71, 0xf7e), (0xf80, 0xf84), (0xf86, 0xf87),
+ (0xf90, 0xf97), (0xf99, 0xfbc), (0xfc6, 0xfc6),
+ (0x102d, 0x1030), (0x1032, 0x1032), (0x1036, 0x1037),
+ (0x1039, 0x103a), (0x1058, 0x1059), (0x108d, 0x108d),
+ (0x1160, 0x11ff), (0x135d, 0x135f), (0x1712, 0x1714),
+ (0x1732, 0x1734), (0x1752, 0x1753), (0x1772, 0x1773),
+ (0x17b4, 0x17b5), (0x17b7, 0x17bd), (0x17c6, 0x17c6),
+ (0x17c9, 0x17d3), (0x17dd, 0x17dd), (0x180b, 0x180d),
+ (0x18a9, 0x18a9), (0x1920, 0x1922), (0x1927, 0x1928),
+ (0x1932, 0x1932), (0x1939, 0x193b), (0x1a17, 0x1a18),
+ (0x1a60, 0x1a60), (0x1a75, 0x1a7c), (0x1a7f, 0x1a7f),
+ (0x1ab0, 0x1abd), (0x1b00, 0x1b03), (0x1b34, 0x1b34),
+ (0x1b36, 0x1b3a), (0x1b3c, 0x1b3c), (0x1b42, 0x1b42),
+ (0x1b44, 0x1b44), (0x1b6b, 0x1b73), (0x1baa, 0x1bab),
+ (0x1be6, 0x1be6), (0x1bf2, 0x1bf3), (0x1c37, 0x1c37),
+ (0x1cd0, 0x1cd2), (0x1cd4, 0x1ce0), (0x1ce2, 0x1ce8),
+ (0x1ced, 0x1ced), (0x1cf4, 0x1cf4), (0x1cf8, 0x1cf9),
+ (0x1dc0, 0x1df9), (0x1dfb, 0x1dff), (0x200b, 0x200f),
+ (0x202a, 0x202e), (0x2060, 0x2063), (0x206a, 0x206f),
+ (0x20d0, 0x20f0), (0x2cef, 0x2cf1), (0x2d7f, 0x2d7f),
+ (0x2de0, 0x2dff), (0x302a, 0x302f), (0x3099, 0x309a),
+ (0xa66f, 0xa66f), (0xa674, 0xa67d), (0xa69e, 0xa69f),
+ (0xa6f0, 0xa6f1), (0xa806, 0xa806), (0xa80b, 0xa80b),
+ (0xa825, 0xa826), (0xa8c4, 0xa8c4), (0xa8e0, 0xa8f1),
+ (0xa92b, 0xa92d), (0xa953, 0xa953), (0xa9b3, 0xa9b3),
+ (0xa9c0, 0xa9c0), (0xaab0, 0xaab0), (0xaab2, 0xaab4),
+ (0xaab7, 0xaab8), (0xaabe, 0xaabf), (0xaac1, 0xaac1),
+ (0xaaf6, 0xaaf6), (0xabed, 0xabed), (0xfb1e, 0xfb1e),
+ (0xfe00, 0xfe0f), (0xfe20, 0xfe2f), (0xfeff, 0xfeff),
+ (0xfff9, 0xfffb), (0x101fd, 0x101fd), (0x102e0, 0x102e0),
+ (0x10376, 0x1037a), (0x10a01, 0x10a03), (0x10a05, 0x10a06),
+ (0x10a0c, 0x10a0f), (0x10a38, 0x10a3a), (0x10a3f, 0x10a3f),
+ (0x10ae5, 0x10ae6), (0x11046, 0x11046), (0x1107f, 0x1107f),
+ (0x110b9, 0x110ba), (0x11100, 0x11102), (0x11133, 0x11134),
+ (0x11173, 0x11173), (0x111c0, 0x111c0), (0x111ca, 0x111ca),
+ (0x11235, 0x11236), (0x112e9, 0x112ea), (0x1133c, 0x1133c),
+ (0x1134d, 0x1134d), (0x11366, 0x1136c), (0x11370, 0x11374),
+ (0x11442, 0x11442), (0x11446, 0x11446), (0x114c2, 0x114c3),
+ (0x115bf, 0x115c0), (0x1163f, 0x1163f), (0x116b6, 0x116b7),
+ (0x1172b, 0x1172b), (0x11a34, 0x11a34), (0x11a47, 0x11a47),
+ (0x11a99, 0x11a99), (0x11c3f, 0x11c3f), (0x11d42, 0x11d42),
+ (0x11d44, 0x11d45), (0x16af0, 0x16af4), (0x16b30, 0x16b36),
(0x1bc9e, 0x1bc9e), (0x1d165, 0x1d169), (0x1d16d, 0x1d182),
(0x1d185, 0x1d18b), (0x1d1aa, 0x1d1ad), (0x1d242, 0x1d244),
(0x1e000, 0x1e006), (0x1e008, 0x1e018), (0x1e01b, 0x1e021),
@@ -199,8 +201,8 @@ def _interval_bisearch(value, table):
:func:`~kitchen.text.display._generate_combining_table`
for how this table is generated
-This table was last regenerated on python-3.6.0-rc1 with
-:data:`unicodedata.unidata_version` 9.0.0
+This table was last regenerated on python-3.7.0b4 with
+:data:`unicodedata.unidata_version` 10.0.0
'''
# New function from Toshio Kuratomi (LGPLv2+)
def _generate_combining_table():

79
python-kitchen.spec Normal file
View File

@ -0,0 +1,79 @@
Name: python-kitchen
Version: 1.2.6
Release: 6
Summary: Useful snippets of python code
License: LGPLv2+
URL: https://pypi.python.org/pypi/kitchen/
Source0: https://files.pythonhosted.org/packages/d9/ca/3365cb1160533be8c8b57dbfd6502f367d35e30935ee89a003c664740714/kitchen-1.2.6.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-nose
BuildRequires: python3-test python3-chardet
BuildRequires: python3-sphinx
Patch0: 0001-replace-obsolete-pngmath-with-imgmath.patch
%description
kitchen comprising gettext easy to use, easy to unicode text processing functions, and for write
code modules but requires python-2.7 running on python-2.3 compatibility module.
%package -n python3-kitchen
Summary: Useful snippets of python3 code
%{?python_provide:%python_provide python3-kitchen}
Requires: python3 python3-chardet
%description -n python3-kitchen
This package is the python3 version of the kitchen module.
%package help
Summary: Kitchen python2 and Kitchen python3 API documentation
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
Provides: %{name}-python3-kitchen-doc = %{version}-%{release}
Obsoletes: %{name}-python3-kitchen-doc < %{version}-%{release}
%description help
This package contains API documentation for programming with python-2 and python-3 versions
of the kitchen library.
%prep
%autosetup -n kitchen-%{version} -p1
rm -rf *.egg*
%build
%{py3_build}
%install
%{py3_install}
%check
PATH=/bin:/usr/bin
export LANG='en_US.UTF8'
pushd kitchen3
nosetests-%{python3_version} -e test_internal_generate_combining_table
popd
%files -n python3-kitchen
%doc README.rst NEWS.rst COPYING COPYING.LESSER
%{python3_sitelib}/kitchen*
%files help
%doc kitchen3/docs/* COPYING COPYING.LESSER
%changelog
* Sat Dec 04 2021 tianwei<tianwei12@huawei.com> - 1.2.6-6
- delete python2 and build for doc
* Wed Feb 10 2021 hanxinke <hanxinke@huawei.com> - 1.2.6-5
- update release version
* Fri Sep 25 2020 tianwei <tianwei12@huawei.com> - 1.2.6-2
- replace obsolete pngmath with imgmath
* Sat Feb 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.6-1
- Update to 1.2.6 and enable python3 test
* Sat Dec 21 2019 duyeyu <duyeyu@huawei.com> - 1.2.5-6
- initial package

Binary file not shown.