!1 add tar and spec files
Merge pull request !1 from small_leek/xsl_upload_python-py
This commit is contained in:
commit
978fd8c3be
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# python-py
|
|
||||||
|
|
||||||
#### 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/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# python-py
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 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/)
|
|
||||||
BIN
py-1.5.4.tar.gz
Normal file
BIN
py-1.5.4.tar.gz
Normal file
Binary file not shown.
137
python-py.spec
Normal file
137
python-py.spec
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
%bcond_with tests
|
||||||
|
|
||||||
|
%global with_help 1
|
||||||
|
%global modname py
|
||||||
|
%global modnameversion %{modname}-%{version}
|
||||||
|
%global p2builddir python2tmp
|
||||||
|
%global p3builddir python3tmp
|
||||||
|
|
||||||
|
Name: python-%{modname}
|
||||||
|
Version: 1.5.4
|
||||||
|
Release: 4
|
||||||
|
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
||||||
|
License: MIT and Public Domain
|
||||||
|
URL: http://pylib.readthedocs.io/en/stable/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modnameversion}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: subversion
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global _description \
|
||||||
|
The py lib is a Python development support library featuring the\
|
||||||
|
following tools and modules:\
|
||||||
|
\
|
||||||
|
* py.path: uniform local and svn path objects\
|
||||||
|
* py.apipkg: explicit API control and lazy-importing\
|
||||||
|
* py.iniconfig: easy parsing of .ini files\
|
||||||
|
* py.code: dynamic code generation and introspection
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{_description}
|
||||||
|
|
||||||
|
%package -n python2-%{modname}
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildRequires: python2-devel python2-setuptools python2-setuptools_scm
|
||||||
|
%if 0%{?with_help}
|
||||||
|
BuildRequires: %{_bindir}/sphinx-build-2
|
||||||
|
%endif
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: python2-pytest >= 2.9.0, python2-pytest < 2.10
|
||||||
|
%endif
|
||||||
|
Requires: python2-setuptools
|
||||||
|
%{?python_provide:%python_provide python2-%{modname}}
|
||||||
|
Provides: bundled(python2-apipkg) = 1.4 bundled(python2-iniconfig) = 1.0.0
|
||||||
|
|
||||||
|
%description -n python2-%{modname}
|
||||||
|
%{_description}
|
||||||
|
|
||||||
|
%package -n python3-%{modname}
|
||||||
|
Summary: %{summary}
|
||||||
|
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
||||||
|
%if 0%{?with_help}
|
||||||
|
BuildRequires: %{_bindir}/sphinx-build-3
|
||||||
|
%endif
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: python3-pytest >= 2.9.0, python3-pytest < 2.10
|
||||||
|
%endif
|
||||||
|
Requires: python3-setuptools
|
||||||
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
|
Provides: bundled(python3-apipkg) = 1.4 bundled(python3-iniconfig) = 1.0.0
|
||||||
|
Obsoletes: platform-python-%{modname} < %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python3-%{modname}
|
||||||
|
%{_description}
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?with_help}
|
||||||
|
%package_help
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -c -n %{modnameversion}
|
||||||
|
|
||||||
|
find %{modnameversion} \
|
||||||
|
-type f -a \( -name '*.py' -o -name 'py.*' \) \
|
||||||
|
-exec sed -i '1{/^#!/d}' {} \; \
|
||||||
|
-exec chmod u=rw,go=r {} \;
|
||||||
|
|
||||||
|
mv %{modnameversion} %{p2builddir}
|
||||||
|
cp -a %{p2builddir} %{p3builddir}
|
||||||
|
|
||||||
|
%build
|
||||||
|
pushd %{p2builddir}
|
||||||
|
%py2_build
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %{p3builddir}
|
||||||
|
%py3_build
|
||||||
|
%if 0%{?with_help}
|
||||||
|
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
|
||||||
|
%endif
|
||||||
|
popd
|
||||||
|
|
||||||
|
%install
|
||||||
|
pushd %{p2builddir}
|
||||||
|
%py2_install
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %{p3builddir}
|
||||||
|
%py3_install
|
||||||
|
rm -rf doc/_build/html/.buildinfo
|
||||||
|
popd
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
pushd %{p2builddir}
|
||||||
|
PYTHONPATH=%{buildroot}%{python2_sitelib} LC_ALL="en_US.UTF-8" \
|
||||||
|
py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %{p3builddir}
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} LC_ALL="en_US.UTF-8" \
|
||||||
|
py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python2-%{modname}
|
||||||
|
%license %{p2builddir}/LICENSE
|
||||||
|
%{python2_sitelib}/py-*.egg-info/
|
||||||
|
%{python2_sitelib}/py/
|
||||||
|
|
||||||
|
%files -n python3-%{modname}
|
||||||
|
%license %{p3builddir}/LICENSE
|
||||||
|
%{python3_sitelib}/py-*.egg-info/
|
||||||
|
%{python3_sitelib}/py/
|
||||||
|
|
||||||
|
%if 0%{?with_help}
|
||||||
|
%files help
|
||||||
|
%doc %{p3builddir}/CHANGELOG
|
||||||
|
%doc %{p3builddir}/README.rst
|
||||||
|
%doc %{p3builddir}/doc/_build/html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1.5.4-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user