From de0bfab06c57d494b61ea1f8dcf34d693f6f7190 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 05:03:28 +0000 Subject: automatic import of python-types-all --- .gitignore | 1 + python-types-all.spec | 205 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 207 insertions(+) create mode 100644 python-types-all.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..07da858 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/types_all-1.0.0.tar.gz diff --git a/python-types-all.spec b/python-types-all.spec new file mode 100644 index 0000000..f4d50b0 --- /dev/null +++ b/python-types-all.spec @@ -0,0 +1,205 @@ +%global _empty_manifest_terminate_build 0 +Name: python-types-all +Version: 1.0.0 +Release: 1 +Summary: A shim for the typeshed changes in mypy 0.900 +License: MIT +URL: https://github.com/asottile/types-all +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8e/8f/3f61eaf9312308b3bb9f2a66c08f0efe4a634f34914ead30bf8cb28a0080/types_all-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-types-DateTimeRange +Requires: python3-types-Deprecated +Requires: python3-types-Flask +Requires: python3-types-JACK-Client +Requires: python3-types-Jinja2 +Requires: python3-types-Markdown +Requires: python3-types-MarkupSafe +Requires: python3-types-Pillow +Requires: python3-types-PyJWT +Requires: python3-types-PyMySQL +Requires: python3-types-PyYAML +Requires: python3-types-Routes +Requires: python3-types-Werkzeug +Requires: python3-types-aiofiles +Requires: python3-types-annoy +Requires: python3-types-atomicwrites +Requires: python3-types-backports +Requires: python3-types-backports-abc +Requires: python3-types-bleach +Requires: python3-types-boto +Requires: python3-types-cachetools +Requires: python3-types-certifi +Requires: python3-types-characteristic +Requires: python3-types-chardet +Requires: python3-types-click +Requires: python3-types-click-spinner +Requires: python3-types-colorama +Requires: python3-types-contextvars +Requires: python3-types-croniter +Requires: python3-types-cryptography +Requires: python3-types-dataclasses +Requires: python3-types-dateparser +Requires: python3-types-decorator +Requires: python3-types-docopt +Requires: python3-types-docutils +Requires: python3-types-emoji +Requires: python3-types-enum34 +Requires: python3-types-fb303 +Requires: python3-types-filelock +Requires: python3-types-first +Requires: python3-types-freezegun +Requires: python3-types-frozendict +Requires: python3-types-futures +Requires: python3-types-geoip2 +Requires: python3-types-ipaddress +Requires: python3-types-itsdangerous +Requires: python3-types-kazoo +Requires: python3-types-maxminddb +Requires: python3-types-mock +Requires: python3-types-mypy-extensions +Requires: python3-types-nmap +Requires: python3-types-openssl-python +Requires: python3-types-orjson +Requires: python3-types-paramiko +Requires: python3-types-pathlib2 +Requires: python3-types-pkg-resources +Requires: python3-types-polib +Requires: python3-types-protobuf +Requires: python3-types-pyRFC3339 +Requires: python3-types-pyaudio +Requires: python3-types-pycurl +Requires: python3-types-pyfarmhash +Requires: python3-types-pymssql +Requires: python3-types-pysftp +Requires: python3-types-python-dateutil +Requires: python3-types-python-gflags +Requires: python3-types-python-slugify +Requires: python3-types-pytz +Requires: python3-types-pyvmomi +Requires: python3-types-redis +Requires: python3-types-requests +Requires: python3-types-retry +Requires: python3-types-scribe +Requires: python3-types-simplejson +Requires: python3-types-singledispatch +Requires: python3-types-six +Requires: python3-types-tabulate +Requires: python3-types-termcolor +Requires: python3-types-toml +Requires: python3-types-tornado +Requires: python3-types-typed-ast +Requires: python3-types-tzlocal +Requires: python3-types-ujson +Requires: python3-types-waitress +Requires: python3-types-xxhash + +%description +A shim for the typeshed changes in mypy 0.900 +## installation +`pip install types-all` +## why +`--install-types` is annoying, this installs all the things in [typeshed] +``` +error: Library stubs not installed for "toml" (or incompatible with Python 3.8) +``` +(for pre-commit, use something like this) +```yaml +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.902 + hooks: + - id: mypy + additional_dependencies: [types-all] +``` +[typeshed]: https://github.com/python/typeshed + +%package -n python3-types-all +Summary: A shim for the typeshed changes in mypy 0.900 +Provides: python-types-all +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-types-all +A shim for the typeshed changes in mypy 0.900 +## installation +`pip install types-all` +## why +`--install-types` is annoying, this installs all the things in [typeshed] +``` +error: Library stubs not installed for "toml" (or incompatible with Python 3.8) +``` +(for pre-commit, use something like this) +```yaml +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.902 + hooks: + - id: mypy + additional_dependencies: [types-all] +``` +[typeshed]: https://github.com/python/typeshed + +%package help +Summary: Development documents and examples for types-all +Provides: python3-types-all-doc +%description help +A shim for the typeshed changes in mypy 0.900 +## installation +`pip install types-all` +## why +`--install-types` is annoying, this installs all the things in [typeshed] +``` +error: Library stubs not installed for "toml" (or incompatible with Python 3.8) +``` +(for pre-commit, use something like this) +```yaml +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.902 + hooks: + - id: mypy + additional_dependencies: [types-all] +``` +[typeshed]: https://github.com/python/typeshed + +%prep +%autosetup -n types-all-1.0.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-types-all -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 1.0.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..29def3a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0e64511e301d3fc080db64f7d6c462d0 types_all-1.0.0.tar.gz -- cgit v1.2.3