summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 07:23:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 07:23:35 +0000
commite18c6e239b543bbba8900e60fd7d1867c93fc4e7 (patch)
tree09cc10396a4fa31ca89933ee8df67301c8ae87a2
parent2c26f2365bd978087db89b204cf758aefd158f54 (diff)
automatic import of python-cdp-scrapersopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-cdp-scrapers.spec94
-rw-r--r--sources2
3 files changed, 38 insertions, 59 deletions
diff --git a/.gitignore b/.gitignore
index 9852d2f..09add64 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/cdp-scrapers-0.6.1.tar.gz
+/cdp-scrapers-0.7.0.tar.gz
diff --git a/python-cdp-scrapers.spec b/python-cdp-scrapers.spec
index 2b2b8b4..345ee28 100644
--- a/python-cdp-scrapers.spec
+++ b/python-cdp-scrapers.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-cdp-scrapers
-Version: 0.6.1
+Version: 0.7.0
Release: 1
Summary: Scratchpad for scraper development and general utilities.
-License: MIT license
+License: MIT License
URL: https://github.com/CouncilDataProject/cdp-scrapers
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6d/9d/e4630d79e8378ee1cd210d94a36b18c1ff27617dbba380ff5273304e0de7/cdp-scrapers-0.6.1.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/2f/08/99d19efba78a0b2978efa637f2f1280a8f7f09b68a53e5c267dd1c1dcea6/cdp-scrapers-0.7.0.tar.gz
BuildArch: noarch
Requires: python3-beautifulsoup4
@@ -15,58 +15,33 @@ Requires: python3-pytz
Requires: python3-requests
Requires: python3-clean-text
Requires: python3-civic-scraper
-Requires: python3-beautifulsoup4
-Requires: python3-cdp-backend
-Requires: python3-defusedxml
-Requires: python3-pytz
-Requires: python3-requests
-Requires: python3-clean-text
-Requires: python3-civic-scraper
-Requires: python3-selenium
-Requires: python3-webdriver-manager
-Requires: python3-black
-Requires: python3-flake8
-Requires: python3-flake8-debugger
-Requires: python3-pytest
-Requires: python3-pytest-cov
-Requires: python3-pytest-raises
-Requires: python3-tox
-Requires: python3-bump2version
-Requires: python3-ipython
-Requires: python3-m2r2
-Requires: python3-Sphinx
-Requires: python3-sphinx-rtd-theme
-Requires: python3-twine
-Requires: python3-wheel
+Requires: python3-yt-dlp
Requires: python3-selenium
Requires: python3-webdriver-manager
Requires: python3-selenium
Requires: python3-webdriver-manager
-Requires: python3-black
-Requires: python3-flake8
-Requires: python3-flake8-debugger
-Requires: python3-pytest
-Requires: python3-pytest-cov
-Requires: python3-pytest-raises
-Requires: python3-tox
-Requires: python3-bump2version
Requires: python3-ipython
Requires: python3-m2r2
Requires: python3-Sphinx
-Requires: python3-sphinx-rtd-theme
-Requires: python3-twine
-Requires: python3-wheel
-Requires: python3-selenium
-Requires: python3-webdriver-manager
+Requires: python3-furo
+Requires: python3-numpydoc
+Requires: python3-sphinx-copybutton
+Requires: python3-docutils
Requires: python3-black
-Requires: python3-flake8
-Requires: python3-flake8-debugger
+Requires: python3-check-manifest
+Requires: python3-ruff
+Requires: python3-mypy
+Requires: python3-pre-commit
+Requires: python3-coverage
Requires: python3-pytest
Requires: python3-pytest-cov
Requires: python3-pytest-raises
-Requires: python3-tox
+Requires: python3-pytest-rerunfailures
%description
+## Installation
+**Stable Release:** `pip install cdp-scrapers`<br>
+**Development Head:** `pip install git+https://github.com/CouncilDataProject/cdp-scrapers.git`
## Council Data Project
Council Data Project is an open-source project dedicated to providing journalists,
activists, researchers, and all members of each community we serve with the tools they
@@ -102,8 +77,7 @@ seattle_cdp_parsed_events = get_seattle_events(
```
### Scrapers
#### Event Scraper Structure
-![get_events](./images/get_events.png)
-Our current event scraper structure is as shown above. The main function `get_events`
+Our current event scraper structure is as follows. The main function `get_events`
gets all the required data and it calls the `get_content_uris` function to return the
required video data.
If your city uses Legistar and the Legistar data is publicly available.
@@ -142,7 +116,7 @@ tested again afterwards.
For full package documentation please visit [councildataproject.org/cdp-scrapers](https://councildataproject.org/cdp-scrapers).
## Development
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.
-**MIT license**
+**MPLv2 License**
%package -n python3-cdp-scrapers
Summary: Scratchpad for scraper development and general utilities.
@@ -151,6 +125,9 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-cdp-scrapers
+## Installation
+**Stable Release:** `pip install cdp-scrapers`<br>
+**Development Head:** `pip install git+https://github.com/CouncilDataProject/cdp-scrapers.git`
## Council Data Project
Council Data Project is an open-source project dedicated to providing journalists,
activists, researchers, and all members of each community we serve with the tools they
@@ -186,8 +163,7 @@ seattle_cdp_parsed_events = get_seattle_events(
```
### Scrapers
#### Event Scraper Structure
-![get_events](./images/get_events.png)
-Our current event scraper structure is as shown above. The main function `get_events`
+Our current event scraper structure is as follows. The main function `get_events`
gets all the required data and it calls the `get_content_uris` function to return the
required video data.
If your city uses Legistar and the Legistar data is publicly available.
@@ -226,12 +202,15 @@ tested again afterwards.
For full package documentation please visit [councildataproject.org/cdp-scrapers](https://councildataproject.org/cdp-scrapers).
## Development
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.
-**MIT license**
+**MPLv2 License**
%package help
Summary: Development documents and examples for cdp-scrapers
Provides: python3-cdp-scrapers-doc
%description help
+## Installation
+**Stable Release:** `pip install cdp-scrapers`<br>
+**Development Head:** `pip install git+https://github.com/CouncilDataProject/cdp-scrapers.git`
## Council Data Project
Council Data Project is an open-source project dedicated to providing journalists,
activists, researchers, and all members of each community we serve with the tools they
@@ -267,8 +246,7 @@ seattle_cdp_parsed_events = get_seattle_events(
```
### Scrapers
#### Event Scraper Structure
-![get_events](./images/get_events.png)
-Our current event scraper structure is as shown above. The main function `get_events`
+Our current event scraper structure is as follows. The main function `get_events`
gets all the required data and it calls the `get_content_uris` function to return the
required video data.
If your city uses Legistar and the Legistar data is publicly available.
@@ -307,10 +285,10 @@ tested again afterwards.
For full package documentation please visit [councildataproject.org/cdp-scrapers](https://councildataproject.org/cdp-scrapers).
## Development
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.
-**MIT license**
+**MPLv2 License**
%prep
-%autosetup -n cdp-scrapers-0.6.1
+%autosetup -n cdp-scrapers-0.7.0
%build
%py3_build
@@ -324,20 +302,20 @@ 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
+ 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
+ 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
+ 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
+ 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
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -350,5 +328,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1
- Package Spec generated
diff --git a/sources b/sources
index 8f96171..241ba52 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-66cafb88e6f7b44b33f7e0fb872b1ff6 cdp-scrapers-0.6.1.tar.gz
+78e883d4b16b7dc453dec1c75b6d313a cdp-scrapers-0.7.0.tar.gz