summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:02:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:02:08 +0000
commitd3ef862b2a12818e826226d7d43282cb23020822 (patch)
treec4799ddddbac2f38cc9a9f7d7e0ac03de1eb031e
parentaeaac49831081cb258fcb64bfd3244eb26c7f1a4 (diff)
automatic import of python-k3gitopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-k3git.spec235
-rw-r--r--sources1
3 files changed, 237 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2b641d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/k3git-0.1.11.tar.gz
diff --git a/python-k3git.spec b/python-k3git.spec
new file mode 100644
index 0000000..45fc962
--- /dev/null
+++ b/python-k3git.spec
@@ -0,0 +1,235 @@
+%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 (张炎泼) <drdr.xp@gmail.com>
+
+# Copyright and License
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>
+
+
+[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 (张炎泼) <drdr.xp@gmail.com>
+
+# Copyright and License
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>
+
+
+[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 (张炎泼) <drdr.xp@gmail.com>
+
+# Copyright and License
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>
+
+
+[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 <Python_Bot@openeuler.org> - 0.1.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f1f3c6b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+41e7bd37609bc1ea7d01b7b9eb0299bb k3git-0.1.11.tar.gz