From 68b320e2eed25ca4c1edce8b57444e86de73cf5b Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Wed, 9 Aug 2023 10:43:33 +0800 Subject: [PATCH] fix package provider missing --- ...modify-the-range-of-version-required.patch | 25 ++++++++ README.en.md | 36 +++++++++++ README.md | 37 +++++++++++ nbclient.spec | 56 ----------------- python-nbclient.spec | 63 +++++++++++++++++++ 5 files changed, 161 insertions(+), 56 deletions(-) create mode 100644 0001-modify-the-range-of-version-required.patch create mode 100644 README.en.md create mode 100644 README.md delete mode 100644 nbclient.spec create mode 100644 python-nbclient.spec diff --git a/0001-modify-the-range-of-version-required.patch b/0001-modify-the-range-of-version-required.patch new file mode 100644 index 0000000..00020e6 --- /dev/null +++ b/0001-modify-the-range-of-version-required.patch @@ -0,0 +1,25 @@ +From 22b64145f95287531a408ac79889566224dffd57 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Wed, 9 Aug 2023 11:01:27 +0800 +Subject: [PATCH] modify the range of version required + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1bfb8a1..71604ad 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -37,7 +37,7 @@ classifiers = [ + ] + dependencies = [ + "jupyter_client>=6.1.12", +- "jupyter_core>=4.12,!=5.0.*", ++ "jupyter_core>=5.1", + "nbformat>=5.1", + "traitlets>=5.3", + ] +-- +2.33.0 + diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..7a4862e --- /dev/null +++ b/README.en.md @@ -0,0 +1,36 @@ +# python-nbclient + +#### Description +A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor. + +#### Software Architecture +Software architecture description + +#### Installation + +1. xxxx +2. xxxx +3. xxxx + +#### Instructions + +1. xxxx +2. xxxx +3. xxxx + +#### Contribution + +1. Fork the repository +2. Create Feat_xxx branch +3. Commit your code +4. Create Pull Request + + +#### Gitee Feature + +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) +4. The most valuable open source project [GVP](https://gitee.com/gvp) +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md new file mode 100644 index 0000000..028b0cb --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# python-nbclient + +#### 介绍 +A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor. + +#### 软件架构 +软件架构说明 + + +#### 安装教程 + +1. xxxx +2. xxxx +3. xxxx + +#### 使用说明 + +1. xxxx +2. xxxx +3. xxxx + +#### 参与贡献 + +1. Fork 本仓库 +2. 新建 Feat_xxx 分支 +3. 提交代码 +4. 新建 Pull Request + + +#### 特技 + +1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md +2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) +3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 +4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 +5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) +6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/nbclient.spec b/nbclient.spec deleted file mode 100644 index 27f6211..0000000 --- a/nbclient.spec +++ /dev/null @@ -1,56 +0,0 @@ -%define debug_package %{nil} - -Name: nbclient -Version: 0.7.4 -Release: 1 -Summary: NBClient lets you execute notebooks. -License: BSD -URL: https://github.com/jupyter/nbclient -Source0: %{url}/archive/%{version}/nbclient-%{version}.tar.gz - - -%description -A client library for programmatic notebook execution, \ -NBClient is a tool for running Jupyter Notebooks in different execution contexts, \ -including the command line. - - -%package -n python3-nbclient -Summary: NBClient lets you execute notebooks. -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm -BuildRequires: python3-pip -BuildRequires: python3-wheel -BuildRequires: python3-hatchling - - -%{?python_provide:%python_provide python3-%{name}} - -%description -n python3-nbclient -A client library for programmatic notebook execution, \ -NBClient is a tool for running Jupyter Notebooks in different execution contexts, \ -including the command line. - -%prep -%autosetup -n %{name}-%{version} -p1 - -%build -%pyproject_build - -%install -%pyproject_install - -%files -n python3-nbclient -%doc README.md -%license LICENSE -%{python3_sitelib}/nbclient/* -%{python3_sitelib}/nbclient-*dist-info/* -%{_bindir}/jupyter-execute - -%changelog -* Fri Aug 4 2023 mengzhaoa - 0.7.4-1 -- Downgrade package python-nbclient to version 0.7.4 - -* Fri Jul 28 2023 xlhans - 0.8.0-1 -- Package init diff --git a/python-nbclient.spec b/python-nbclient.spec new file mode 100644 index 0000000..e065694 --- /dev/null +++ b/python-nbclient.spec @@ -0,0 +1,63 @@ +%global pypi_name nbclient + +%global _description %{expand: +NBClient, a client library for programmatic notebook execution, is a tool for +running Jupyter Notebooks in different execution contexts. NBClient was spun +out of nbconvert (formerly ExecutePreprocessor). NBClient lets you execute notebooks. +} + +Name: python-%{pypi_name} +Version: 0.7.4 +Release: 2 +Summary: A client library for executing notebooks. +License: BSD-3-Clause +URL: https://github.com/jupyter/nbclient +Source0: %{url}/archive/%{version}/nbclient-%{version}.tar.gz +Patch1: 0001-modify-the-range-of-version-required.patch +BuildArch: noarch + +%description +%_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_description + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/nbclient +%{python3_sitelib}/nbclient-*dist-info/ +%{_bindir}/jupyter-execute + +%changelog +* Wed Aug 9 2023 Dongxing Wang - 0.7.4-2 +- Fix the package provider missing + +* Fri Aug 4 2023 mengzhaoa - 0.7.4-1 +- Downgrade package python-nbclient to version 0.7.4 + +* Fri Jul 28 2023 xlhans - 0.8.0-1 +- Package init