diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:23:47 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 09:23:47 +0000 |
| commit | 722bcfd3945061b4546f4ac46507aca0dd38d5cd (patch) | |
| tree | 6e0817d6aed7d0896b406fa5a777116bc540803a | |
| parent | 6e81934d9edadb7b5c536ac8db2dc83d55977e13 (diff) | |
automatic import of python-pyannotate
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyannotate.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyannotate-1.2.0.tar.gz diff --git a/python-pyannotate.spec b/python-pyannotate.spec new file mode 100644 index 0000000..7026114 --- /dev/null +++ b/python-pyannotate.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyannotate +Version: 1.2.0 +Release: 1 +Summary: PyAnnotate: Auto-generate PEP-484 annotations +License: Apache 2.0 +URL: https://github.com/dropbox/pyannotate +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0d/26/2f68c02fae0b88d9cefdbc632edad190d61621b5660c72c920be1e52631e/pyannotate-1.2.0.tar.gz +BuildArch: noarch + +Requires: python3-six +Requires: python3-mypy-extensions +Requires: python3-typing + +%description +Insert annotations into your source code based on call arguments and +return types observed at runtime. +For license and copyright see the end of this file. +Blog post: http://mypy-lang.blogspot.com/2017/11/dropbox-releases-pyannotate-auto.html + +%package -n python3-pyannotate +Summary: PyAnnotate: Auto-generate PEP-484 annotations +Provides: python-pyannotate +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyannotate +Insert annotations into your source code based on call arguments and +return types observed at runtime. +For license and copyright see the end of this file. +Blog post: http://mypy-lang.blogspot.com/2017/11/dropbox-releases-pyannotate-auto.html + +%package help +Summary: Development documents and examples for pyannotate +Provides: python3-pyannotate-doc +%description help +Insert annotations into your source code based on call arguments and +return types observed at runtime. +For license and copyright see the end of this file. +Blog post: http://mypy-lang.blogspot.com/2017/11/dropbox-releases-pyannotate-auto.html + +%prep +%autosetup -n pyannotate-1.2.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-pyannotate -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +6d1fcafc9b773560ed72aa3873910b48 pyannotate-1.2.0.tar.gz |
