%global _empty_manifest_terminate_build 0 Name: python-k3git Version: 0.1.11 Release: 1 Summary: wrapper of git command-line License: MIT URL: https://github.com/pykit3/k3git Source0: https://mirrors.aliyun.com/pypi/web/packages/ba/89/57a40ff4a1e01740f799796ae880b92d2be81f2b0fa57e2a890b515ce9af/k3git-0.1.11.tar.gz BuildArch: noarch Requires: python3-k3str Requires: python3-k3ut Requires: python3-k3handy Requires: python3-k3fs %description # k3git [![Build Status](https://travis-ci.com/pykit3/k3git.svg?branch=master)](https://travis-ci.com/pykit3/k3git) ![Python package](https://github.com/pykit3/k3git/workflows/Python%20package/badge.svg) [![Documentation Status](https://readthedocs.org/projects/k3git/badge/?version=stable)](https://k3git.readthedocs.io/en/stable/?badge=stable) [![Package](https://img.shields.io/pypi/pyversions/k3git)](https://pypi.org/project/k3git) wrapper of git command-line k3git is a component of [pykit3] project: a python3 toolkit set. k3git is wrapper of git command-line. To parse a git command ``git --git-dir=/foo fetch origin``: >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] # Install ``` pip install k3git ``` # Synopsis ```python >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] ``` # Author Zhang Yanpo (张炎泼) # Copyright and License The MIT License (MIT) Copyright (c) 2015 Zhang Yanpo (张炎泼) [pykit3]: https://github.com/pykit3 %package -n python3-k3git Summary: wrapper of git command-line Provides: python-k3git BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-k3git # k3git [![Build Status](https://travis-ci.com/pykit3/k3git.svg?branch=master)](https://travis-ci.com/pykit3/k3git) ![Python package](https://github.com/pykit3/k3git/workflows/Python%20package/badge.svg) [![Documentation Status](https://readthedocs.org/projects/k3git/badge/?version=stable)](https://k3git.readthedocs.io/en/stable/?badge=stable) [![Package](https://img.shields.io/pypi/pyversions/k3git)](https://pypi.org/project/k3git) wrapper of git command-line k3git is a component of [pykit3] project: a python3 toolkit set. k3git is wrapper of git command-line. To parse a git command ``git --git-dir=/foo fetch origin``: >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] # Install ``` pip install k3git ``` # Synopsis ```python >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] ``` # Author Zhang Yanpo (张炎泼) # Copyright and License The MIT License (MIT) Copyright (c) 2015 Zhang Yanpo (张炎泼) [pykit3]: https://github.com/pykit3 %package help Summary: Development documents and examples for k3git Provides: python3-k3git-doc %description help # k3git [![Build Status](https://travis-ci.com/pykit3/k3git.svg?branch=master)](https://travis-ci.com/pykit3/k3git) ![Python package](https://github.com/pykit3/k3git/workflows/Python%20package/badge.svg) [![Documentation Status](https://readthedocs.org/projects/k3git/badge/?version=stable)](https://k3git.readthedocs.io/en/stable/?badge=stable) [![Package](https://img.shields.io/pypi/pyversions/k3git)](https://pypi.org/project/k3git) wrapper of git command-line k3git is a component of [pykit3] project: a python3 toolkit set. k3git is wrapper of git command-line. To parse a git command ``git --git-dir=/foo fetch origin``: >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] # Install ``` pip install k3git ``` # Synopsis ```python >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).cmds ['fetch', 'origin'] >>> GitOpt().parse_args(['--git-dir=/foo', 'fetch', 'origin']).to_args() ['--git-dir=/foo'] ``` # Author Zhang Yanpo (张炎泼) # Copyright and License The MIT License (MIT) Copyright (c) 2015 Zhang Yanpo (张炎泼) [pykit3]: https://github.com/pykit3 %prep %autosetup -n k3git-0.1.11 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-k3git -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.1.11-1 - Package Spec generated