1 Star 0 Fork 18

jlwwlsqc/python-wheel

forked from src-openEuler/python-wheel 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-wheel.spec 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
openeuler-ci-bot 提交于 2020-08-20 21:00 . remove python2
%bcond_with bootstrap
Name: python-wheel
Version: 0.31.1
Release: 5
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 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
%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
%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}%{python3_sitelib} py.test-3 -v --ignore build
%endif
%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 Nov 2 2020 wangjie<wangjie294@huawei.com> -0.31.1-5
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jlwwlsqc/python-wheel.git
git@gitee.com:jlwwlsqc/python-wheel.git
jlwwlsqc
python-wheel
python-wheel
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385