diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 153db3d..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# python-wheel - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### 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 deleted file mode 100644 index 27a98be..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# python-wheel - -#### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [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. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/python-wheel.spec b/python-wheel.spec new file mode 100644 index 0000000..a8451a4 --- /dev/null +++ b/python-wheel.spec @@ -0,0 +1,120 @@ +%bcond_without bootstrap +Name: python-wheel +Version: 0.31.1 +Release: 4 +Epoch: 1 +Summary: Built-package format for Python +License: MIT +URL: https://github.com/pypa/wheel +Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz +BuildArch: noarch + +Patch0000: remove-keyrings.alt-dependency.patch + +%description +A built-package format for Python. +A wheel is a ZIP-format archive with a specially formatted filename and the +.whl extension. It is designed to contain all the files for a PEP 376 +compatible install in a way that is very close to the on-disk format. + +%package -n python2-wheel +Summary: Built-package format for Python +BuildRequires: python2-devel python2-setuptools +%if ! %{with bootstrap} +BuildRequires: python2-pytest python2-pyxdg python2-keyring +%endif +%{?python_provide:%python_provide python2-wheel} + +%description -n python2-wheel +A built-package format for Python. +A wheel is a ZIP-format archive with a specially formatted filename and the +.whl extension. It is designed to contain all the files for a PEP 376 +compatible install in a way that is very close to the on-disk format. +Python 2 version. + + +%package -n python3-wheel +Summary: Built-package format for Python +BuildRequires: python3-devel python3-setuptools +%if %{without bootstrap} +BuildRequires: python3-pytest python3-pyxdg python3-keyring +%endif +%{?python_provide:%python_provide python3-wheel} + +%description -n python3-wheel +A built-package format for Python. +A wheel is a ZIP-format archive with a specially formatted filename and the +.whl extension. It is designed to contain all the files for a PEP 376 +compatible install in a way that is very close to the on-disk format. +Python 3 version. + + +%if %{without bootstrap} +%package wheel +Summary: The Python wheel module packaged as a wheel + +%description wheel +A Python wheel of wheel to use with virtualenv. +%endif + + +%prep +%autosetup -n wheel-%{version} -p1 +sed -ie '1d' wheel/{egg2wheel,wininst2wheel}.py + + +%build +%py2_build +%py3_build + +%if %{without bootstrap} +%py3_build_wheel +%endif + + +%install +%py3_install +mv %{buildroot}%{_bindir}/wheel{,-%{python3_version}} +ln -s wheel-%{python3_version} %{buildroot}%{_bindir}/wheel-3 + +%py2_install +mv %{buildroot}%{_bindir}/wheel{,-%{python2_version}} +ln -s wheel-%{python2_version} %{buildroot}%{_bindir}/wheel-2 +ln -s wheel-2 %{buildroot}%{_bindir}/wheel + +%if %{without bootstrap} +install -d %{buildroot}%{_datadir}/python-wheels +install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels + + +%check +export LC_ALL=C.UTF-8 +rm setup.cfg +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build +%endif + + +%files -n python2-wheel +%license LICENSE.txt +%doc CHANGES.txt README.rst +%{_bindir}/wheel +%{_bindir}/wheel-2* +%{python2_sitelib}/wheel* + +%files -n python3-wheel +%license LICENSE.txt +%doc CHANGES.txt README.rst +%{_bindir}/wheel-3* +%{python3_sitelib}/wheel* + +%if %{without bootstrap} +%files wheel +%license LICENSE.txt +%dir %{_datadir}/python-wheels/ +%{_datadir}/python-wheels/wheel-%{version}-py2.py3-none-any.whl +%endif + +%changelog +* Mon Dec 2 2019 yangjian - 1:0.31.1-4 +- Package init diff --git a/remove-keyrings.alt-dependency.patch b/remove-keyrings.alt-dependency.patch new file mode 100644 index 0000000..c05f18d --- /dev/null +++ b/remove-keyrings.alt-dependency.patch @@ -0,0 +1,27 @@ +diff -uNr wheel-0.31.1.orig/setup.py wheel-0.31.1/setup.py +--- wheel-0.31.1.orig/setup.py 2018-05-13 19:22:12.000000000 +0200 ++++ wheel-0.31.1/setup.py 2018-07-08 00:32:02.918116087 +0200 +@@ -39,7 +39,7 @@ + packages=find_packages(), + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", + extras_require={ +- 'signatures': ['keyring', 'keyrings.alt'], ++ 'signatures': ['keyring'], + 'signatures:sys_platform!="win32"': ['pyxdg'], + 'faster-signatures': ['ed25519ll'], + 'test': ['pytest >= 3.0.0', 'pytest-cov'] +diff -uNr wheel-0.31.1.orig/wheel/tool/__init__.py wheel-0.31.1/wheel/tool/__init__.py +--- wheel-0.31.1.orig/wheel/tool/__init__.py 2018-05-13 19:22:12.000000000 +0200 ++++ wheel-0.31.1/wheel/tool/__init__.py 2018-07-08 00:32:21.442263844 +0200 +@@ -33,10 +33,9 @@ + try: + from ..signatures import keys + import keyring +- assert keyring.get_keyring().priority + except (ImportError, AssertionError): + raise WheelError( +- "Install wheel[signatures] (requires keyring, keyrings.alt, pyxdg) for signatures.") ++ "Install wheel[signatures] (requires keyring, pyxdg) for signatures.") + + return keys.WheelKeys, keyring + diff --git a/wheel-0.31.1.tar.gz b/wheel-0.31.1.tar.gz new file mode 100644 index 0000000..1e1cff4 Binary files /dev/null and b/wheel-0.31.1.tar.gz differ