summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 20:31:48 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 20:31:48 +0000
commitd69bb37bce899eee25a0cd61bb7aa9a969cd65dc (patch)
tree68afa808552f6bcbc600bbc4ad1293840150a128
parent92c856aa9f3cd06f9b777bc2ab5f0a9850148770 (diff)
automatic import of python-proxylist
-rw-r--r--.gitignore1
-rw-r--r--python-proxylist.spec183
-rw-r--r--sources1
3 files changed, 185 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9201fd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/proxylist-0.2.1.tar.gz
diff --git a/python-proxylist.spec b/python-proxylist.spec
new file mode 100644
index 0000000..4f38dc6
--- /dev/null
+++ b/python-proxylist.spec
@@ -0,0 +1,183 @@
+%global _empty_manifest_terminate_build 0
+Name: python-proxylist
+Version: 0.2.1
+Release: 1
+Summary: Package to manage list of proxy servers
+License: The MIT License (MIT) Copyright (c) 2015-2023, Gregory Petukhov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+URL: https://pypi.org/project/proxylist/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/b8/aba9eff7ac8a974130e4e556e122679897d6192c4ae08274be3770638c1c/proxylist-0.2.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# Proxylist Package
+
+[![Test Status](https://github.com/lorien/proxylist/actions/workflows/test.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Code Quality](https://github.com/lorien/proxylist/actions/workflows/check.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Type Check](https://github.com/lorien/proxylist/actions/workflows/mypy.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/mypy.yml)
+[![Test Coverage Status](https://coveralls.io/repos/github/lorien/proxylist/badge.svg)](https://coveralls.io/github/lorien/proxylist)
+[![Pypi Downloads](https://img.shields.io/pypi/dw/proxylist?label=Downloads)](https://pypistats.org/packages/proxylist)
+[![Documentation Status](https://readthedocs.org/projects/proxylist/badge/?version=latest)](http://proxylist.readthedocs.org)
+
+The proxylist package provides function and classes for:
+
+- loading list of proxy servers from different sources like local file or network location
+- rotating proxy servers or picking them randomly
+
+Feel free to give feedback in Telegram groups: [@grablab](https://t.me/grablab) and [@grablab\_ru](https://t.me/grablab_ru).
+
+## Installation
+
+Run: `pip install -U proxylist`
+
+
+## Documentation
+
+Documentation is available at https://proxylist.readthedocs.io
+
+## Usage Example
+
+```
+>>> from proxylist import ProxyList
+>>> pl = ProxyList.from_local_file('var/proxy.txt')
+>>> pl.get_random_server()
+<proxylist.server.ProxyServer object at 0x7f1882d599e8>
+>>> pl.get_random_server().address()
+'1.1.1.1:8085'
+>>> len(pl)
+1000
+```
+
+
+%package -n python3-proxylist
+Summary: Package to manage list of proxy servers
+Provides: python-proxylist
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-proxylist
+# Proxylist Package
+
+[![Test Status](https://github.com/lorien/proxylist/actions/workflows/test.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Code Quality](https://github.com/lorien/proxylist/actions/workflows/check.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Type Check](https://github.com/lorien/proxylist/actions/workflows/mypy.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/mypy.yml)
+[![Test Coverage Status](https://coveralls.io/repos/github/lorien/proxylist/badge.svg)](https://coveralls.io/github/lorien/proxylist)
+[![Pypi Downloads](https://img.shields.io/pypi/dw/proxylist?label=Downloads)](https://pypistats.org/packages/proxylist)
+[![Documentation Status](https://readthedocs.org/projects/proxylist/badge/?version=latest)](http://proxylist.readthedocs.org)
+
+The proxylist package provides function and classes for:
+
+- loading list of proxy servers from different sources like local file or network location
+- rotating proxy servers or picking them randomly
+
+Feel free to give feedback in Telegram groups: [@grablab](https://t.me/grablab) and [@grablab\_ru](https://t.me/grablab_ru).
+
+## Installation
+
+Run: `pip install -U proxylist`
+
+
+## Documentation
+
+Documentation is available at https://proxylist.readthedocs.io
+
+## Usage Example
+
+```
+>>> from proxylist import ProxyList
+>>> pl = ProxyList.from_local_file('var/proxy.txt')
+>>> pl.get_random_server()
+<proxylist.server.ProxyServer object at 0x7f1882d599e8>
+>>> pl.get_random_server().address()
+'1.1.1.1:8085'
+>>> len(pl)
+1000
+```
+
+
+%package help
+Summary: Development documents and examples for proxylist
+Provides: python3-proxylist-doc
+%description help
+# Proxylist Package
+
+[![Test Status](https://github.com/lorien/proxylist/actions/workflows/test.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Code Quality](https://github.com/lorien/proxylist/actions/workflows/check.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/test.yml)
+[![Type Check](https://github.com/lorien/proxylist/actions/workflows/mypy.yml/badge.svg)](https://github.com/lorien/proxylist/actions/workflows/mypy.yml)
+[![Test Coverage Status](https://coveralls.io/repos/github/lorien/proxylist/badge.svg)](https://coveralls.io/github/lorien/proxylist)
+[![Pypi Downloads](https://img.shields.io/pypi/dw/proxylist?label=Downloads)](https://pypistats.org/packages/proxylist)
+[![Documentation Status](https://readthedocs.org/projects/proxylist/badge/?version=latest)](http://proxylist.readthedocs.org)
+
+The proxylist package provides function and classes for:
+
+- loading list of proxy servers from different sources like local file or network location
+- rotating proxy servers or picking them randomly
+
+Feel free to give feedback in Telegram groups: [@grablab](https://t.me/grablab) and [@grablab\_ru](https://t.me/grablab_ru).
+
+## Installation
+
+Run: `pip install -U proxylist`
+
+
+## Documentation
+
+Documentation is available at https://proxylist.readthedocs.io
+
+## Usage Example
+
+```
+>>> from proxylist import ProxyList
+>>> pl = ProxyList.from_local_file('var/proxy.txt')
+>>> pl.get_random_server()
+<proxylist.server.ProxyServer object at 0x7f1882d599e8>
+>>> pl.get_random_server().address()
+'1.1.1.1:8085'
+>>> len(pl)
+1000
+```
+
+
+%prep
+%autosetup -n proxylist-0.2.1
+
+%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-proxylist -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a3174e6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+80e8a14d477fc62e2cd0365dfb8a1e66 proxylist-0.2.1.tar.gz