!3 fix package provider missing
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
97fb5cda62
25
0001-modify-the-range-of-version-required.patch
Normal file
25
0001-modify-the-range-of-version-required.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 22b64145f95287531a408ac79889566224dffd57 Mon Sep 17 00:00:00 2001
|
||||
From: desert-sailor <dxwangk@isoftstone.com>
|
||||
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
|
||||
|
||||
36
README.en.md
Normal file
36
README.en.md
Normal file
@ -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/)
|
||||
37
README.md
Normal file
37
README.md
Normal file
@ -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/)
|
||||
@ -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 <mengzhaoa@isoftstone.com> - 0.7.4-1
|
||||
- Downgrade package python-nbclient to version 0.7.4
|
||||
|
||||
* Fri Jul 28 2023 xlhans <xlhans@isoftstone.com> - 0.8.0-1
|
||||
- Package init
|
||||
63
python-nbclient.spec
Normal file
63
python-nbclient.spec
Normal file
@ -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 <dxwangk@isoftstone.com> - 0.7.4-2
|
||||
- Fix the package provider missing
|
||||
|
||||
* Fri Aug 4 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.7.4-1
|
||||
- Downgrade package python-nbclient to version 0.7.4
|
||||
|
||||
* Fri Jul 28 2023 xlhans <xlhans@isoftstone.com> - 0.8.0-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user