diff --git a/Flask-2.2.5.tar.gz b/Flask-2.2.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c5bc58297e5d4b8797e6ab7f521f22f622d6de55 Binary files /dev/null and b/Flask-2.2.5.tar.gz differ diff --git a/README.md b/README.md index 126f40a1cf6f6c6f9c8b389aa3235ad8b6dae611..7342728d557c602f51c6d278bba9f3dd9faaf356 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,11 @@ -# python-flask - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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/) +Anolis OS +======================================= +# 代码仓库说明 +## 分支说明 +>进行代码开发工作时,请注意选择当前版本对应的分支 +* aX分支为对应大版本的主分支,如a8分支对应当前最新版本 +* aX.Y分支为对应小版本的维护分支,如a8.2分支对应8.2版本 +## 开发流程 +1. 首先fork目标分支到自己的namespace +2. 在自己的fork分支上做出修改 +3. 向对应的仓库中提交merge request,源分支为fork分支 diff --git a/python-flask.spec b/python-flask.spec new file mode 100644 index 0000000000000000000000000000000000000000..cf63b3a1d05331fb314e27ddf3414020560854ff --- /dev/null +++ b/python-flask.spec @@ -0,0 +1,85 @@ +%define anolis_release 1 + +%global modname flask +%global srcname Flask + +Name: python-%{modname} +Version: 2.2.5 +Release: %{anolis_release}%{?dist} +Epoch: 1 +Summary: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions + +License: BSD +URL: http://flask.pocoo.org/ +Source0: %{pypi_source} + +BuildArch: noarch + +%global _description \ +Flask is called a “micro-framework” because the idea to keep the core\ +simple but extensible. There is no database abstraction layer, no form\ +validation or anything else where different libraries already exist\ +that can handle that. However Flask knows the concept of extensions\ +that can add this functionality into your application as if it was\ +implemented in Flask itself. There are currently extensions for object\ +relational mappers, form validation, upload handling, various open\ +authentication technologies and more. + +%description %{_description} + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(werkzeug) >= 0.15 +BuildRequires: python3dist(jinja2) >= 2.10.1 +BuildRequires: python3dist(itsdangerous) >= 0.24 +BuildRequires: python3dist(click) >= 5.1 +BuildRequires: python3dist(pytest) +Obsoletes: python2-%{modname} < 1:1.0.2-9 + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%package doc +Summary: Documentation for %{name} +Obsoletes: python3-%{modname}-doc < 1:0.11.1-3 + +%description doc +Documentation and examples for %{name}. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf examples/flaskr/ +rm -rf examples/minitwit/ + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}} +ln -s %{modname}-%{python3_version} %{buildroot}%{_bindir}/%{modname}-3 +ln -sf %{modname}-3 %{buildroot}%{_bindir}/%{modname} + +%check +# test_max_cookie_size fails on Python 3.12: https://github.com/pallets/flask/issues/5146 +%pytest -Wdefault -k "not test_max_cookie_size" + +%files -n python3-%{modname} +%license LICENSE.rst +%doc examples +%{_bindir}/%{modname} +%{_bindir}/%{modname}-3 +%{_bindir}/%{modname}-%{python3_version} +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ + +%files doc +%doc CHANGES.rst README.rst + +%changelog +* Mon Sep 04 2023 mgb01105731 - 1:2.2.5-1 +- Init upstream from version 2.2.5