summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 04:04:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 04:04:35 +0000
commit9071e1eb8c9182b4620c8248694c0b47a58f46b3 (patch)
treecc288c33d82981df067c7a8cefac1065bf271c43
parent18139fcc42727bbcb0ff0e7a2ab151cd68005c45 (diff)
automatic import of python-pre-commit-mirror-makeropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pre-commit-mirror-maker.spec169
-rw-r--r--sources1
3 files changed, 171 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7138f9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pre_commit_mirror_maker-1.9.0.tar.gz
diff --git a/python-pre-commit-mirror-maker.spec b/python-pre-commit-mirror-maker.spec
new file mode 100644
index 0000000..9bbd83b
--- /dev/null
+++ b/python-pre-commit-mirror-maker.spec
@@ -0,0 +1,169 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pre-commit-mirror-maker
+Version: 1.9.0
+Release: 1
+Summary: Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml
+License: MIT
+URL: https://github.com/pre-commit/pre-commit-mirror-maker
+Source0: https://mirrors.aliyun.com/pypi/web/packages/74/a2/be5ed0961fd706ae1a2ecd86396d2ba27c98c33de0520fc8c81702a7e87d/pre_commit_mirror_maker-1.9.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-packaging
+
+%description
+Scripts for creating mirror repositories that do not have
+.pre-commit-hooks.yaml
+### Installation
+`$ pip install pre-commit-mirror-maker`
+### Sample Usage
+To see all supported configuration options, run:
+```console
+$ pre-commit-mirror --help
+```
+For example: making a mirror of the yapf package:
+```console
+$ git init mirrors-yapf
+Initialized empty Git repository in /tmp/mirrors-yapf/.git/
+$ pre-commit-mirror mirrors-yapf --language python --package-name yapf --args=-i --types python
+[main (root-commit) 88bffee] Mirror: 0.1.3
+ 3 files changed, 16 insertions(+)
+ create mode 100644 .pre-commit-hooks.yaml
+ create mode 100644 .version
+ create mode 100644 setup.py
+[main 24cd5f4] Mirror: 0.1.4
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+[main 6695a76] Mirror: 0.1.5
+[main 091ab92] Mirror: 0.22.0
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+$ ls -al mirrors-yapf/
+total 24
+drwxrwxr-x 3 asottile asottile 4096 May 26 10:00 .
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 ..
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 .git
+-rw-rw-r-- 1 asottile asottile 136 May 26 10:00 .pre-commit-hooks.yaml
+-rw-rw-r-- 1 asottile asottile 137 May 26 10:00 setup.py
+-rw-rw-r-- 1 asottile asottile 7 May 26 10:00 .version
+```
+
+%package -n python3-pre-commit-mirror-maker
+Summary: Scripts for creating mirror repositories that do not have .pre-commit-hooks.yaml
+Provides: python-pre-commit-mirror-maker
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pre-commit-mirror-maker
+Scripts for creating mirror repositories that do not have
+.pre-commit-hooks.yaml
+### Installation
+`$ pip install pre-commit-mirror-maker`
+### Sample Usage
+To see all supported configuration options, run:
+```console
+$ pre-commit-mirror --help
+```
+For example: making a mirror of the yapf package:
+```console
+$ git init mirrors-yapf
+Initialized empty Git repository in /tmp/mirrors-yapf/.git/
+$ pre-commit-mirror mirrors-yapf --language python --package-name yapf --args=-i --types python
+[main (root-commit) 88bffee] Mirror: 0.1.3
+ 3 files changed, 16 insertions(+)
+ create mode 100644 .pre-commit-hooks.yaml
+ create mode 100644 .version
+ create mode 100644 setup.py
+[main 24cd5f4] Mirror: 0.1.4
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+[main 6695a76] Mirror: 0.1.5
+[main 091ab92] Mirror: 0.22.0
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+$ ls -al mirrors-yapf/
+total 24
+drwxrwxr-x 3 asottile asottile 4096 May 26 10:00 .
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 ..
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 .git
+-rw-rw-r-- 1 asottile asottile 136 May 26 10:00 .pre-commit-hooks.yaml
+-rw-rw-r-- 1 asottile asottile 137 May 26 10:00 setup.py
+-rw-rw-r-- 1 asottile asottile 7 May 26 10:00 .version
+```
+
+%package help
+Summary: Development documents and examples for pre-commit-mirror-maker
+Provides: python3-pre-commit-mirror-maker-doc
+%description help
+Scripts for creating mirror repositories that do not have
+.pre-commit-hooks.yaml
+### Installation
+`$ pip install pre-commit-mirror-maker`
+### Sample Usage
+To see all supported configuration options, run:
+```console
+$ pre-commit-mirror --help
+```
+For example: making a mirror of the yapf package:
+```console
+$ git init mirrors-yapf
+Initialized empty Git repository in /tmp/mirrors-yapf/.git/
+$ pre-commit-mirror mirrors-yapf --language python --package-name yapf --args=-i --types python
+[main (root-commit) 88bffee] Mirror: 0.1.3
+ 3 files changed, 16 insertions(+)
+ create mode 100644 .pre-commit-hooks.yaml
+ create mode 100644 .version
+ create mode 100644 setup.py
+[main 24cd5f4] Mirror: 0.1.4
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+[main 6695a76] Mirror: 0.1.5
+[main 091ab92] Mirror: 0.22.0
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+$ ls -al mirrors-yapf/
+total 24
+drwxrwxr-x 3 asottile asottile 4096 May 26 10:00 .
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 ..
+drwxrwxr-x 8 asottile asottile 4096 May 26 10:00 .git
+-rw-rw-r-- 1 asottile asottile 136 May 26 10:00 .pre-commit-hooks.yaml
+-rw-rw-r-- 1 asottile asottile 137 May 26 10:00 setup.py
+-rw-rw-r-- 1 asottile asottile 7 May 26 10:00 .version
+```
+
+%prep
+%autosetup -n pre_commit_mirror_maker-1.9.0
+
+%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-pre-commit-mirror-maker -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.9.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b716253
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d168e7655013fdb9fc6bfbe1c283a190 pre_commit_mirror_maker-1.9.0.tar.gz