Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-fake-useragent for openSUSE:Factory checked in at 2023-05-09 14:07:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fake-useragent (Old) and /work/SRC/openSUSE:Factory/.python-fake-useragent.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fake-useragent" Tue May 9 14:07:50 2023 rev:8 rq:1080290 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fake-useragent/python-fake-useragent.changes 2023-02-10 14:34:23.993590523 +0100 +++ /work/SRC/openSUSE:Factory/.python-fake-useragent.new.1533/python-fake-useragent.changes 2023-05-09 14:07:51.274639565 +0200 @@ -1,0 +2,6 @@ +Wed Apr 19 09:46:13 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 1.1.3: + * Update deps + +------------------------------------------------------------------- Old: ---- fake-useragent-1.1.2.tar.gz New: ---- fake-useragent-1.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fake-useragent.spec ++++++ --- /var/tmp/diff_new_pack.ZMWj9F/_old 2023-05-09 14:07:52.026643999 +0200 +++ /var/tmp/diff_new_pack.ZMWj9F/_new 2023-05-09 14:07:52.026643999 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-fake-useragent -Version: 1.1.2 +Version: 1.1.3 Release: 0 Summary: Useragent faker package for Python License: Apache-2.0 @@ -34,8 +34,8 @@ Requires: python-importlib-resources BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module importlib-resources} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module importlib-resources >= 5.12.0} +BuildRequires: %{python_module pytest >= 7.2.2} # /SECTION %python_subpackages ++++++ fake-useragent-1.1.2.tar.gz -> fake-useragent-1.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/.github/workflows/action.yml new/fake-useragent-1.1.3/.github/workflows/action.yml --- old/fake-useragent-1.1.2/.github/workflows/action.yml 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/.github/workflows/action.yml 2023-03-20 21:29:51.000000000 +0100 @@ -16,7 +16,7 @@ runs-on: ubuntu-latest # [macos-latest, windows-latest] strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.9"] + python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.9"] name: Python ${{ matrix.python-version }} Test steps: - uses: actions/checkout@v3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/cache_scraper/README.md new/fake-useragent-1.1.3/cache_scraper/README.md --- old/fake-useragent-1.1.2/cache_scraper/README.md 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/cache_scraper/README.md 2023-03-20 21:29:51.000000000 +0100 @@ -5,3 +5,22 @@ You could host your own cache server using [Docker](Dockerfile), we use to host our own cache server. However, this server was overloaded with requests. We are now using the web scraper to add the data locally within the `fake-useragent` PyPi package. Meaning that it won't require Internet connection after the package is installed in order to contain a list of user agent strings. + +## Running + +You should use & execute the [`update_data_file.sh`](../update_data_file.sh) script in the root folder of this project. + +Alternatively, use a Python virtual environment (virtualenv). +After which you can install the Python dependencies, using: `pip install -r requirements.txt`. + +Then start the spider using: + +```sh +./start_spider.py +``` + +Then copy the file to the correct location: + +```sh +cp website/cache.json ../src/fake_useragent/data/browsers.json +``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/cache_scraper/requirements.txt new/fake-useragent-1.1.3/cache_scraper/requirements.txt --- old/fake-useragent-1.1.2/cache_scraper/requirements.txt 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/cache_scraper/requirements.txt 2023-03-20 21:29:51.000000000 +0100 @@ -1,43 +1,48 @@ -APScheduler==3.9.1 -attrs==22.1.0 -Automat==20.2.0 -black==22.10.0 +APScheduler==3.10.1 +attrs==22.2.0 +Automat==22.10.0 +black==23.1.0 certifi==2022.12.7 cffi==1.15.1 -charset-normalizer==2.1.1 +charset-normalizer==3.1.0 +click==8.1.3 constantly==15.1.0 -cryptography==39.0.1 -cssselect==1.1.0 -filelock==3.8.0 +cryptography==39.0.2 +cssselect==1.2.0 +filelock==3.9.0 hyperlink==21.0.0 idna==3.4 incremental==22.10.0 itemadapter==0.7.0 itemloaders==1.0.6 jmespath==1.0.1 -lxml==4.9.1 -mypy-extensions==0.4.3 -packaging==21.3 -parsel==1.6.0 -pathspec==0.10.1 -platformdirs==2.5.2 +lxml==4.9.2 +mypy-extensions==1.0.0 +packaging==23.0 +parsel==1.7.0 +pathspec==0.11.0 +platformdirs==3.1.0 Protego==0.2.1 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.21 -PyDispatcher==2.0.6 -pyOpenSSL==22.1.0 +PyDispatcher==2.0.7 +pyOpenSSL==23.0.0 pyparsing==3.0.9 +pytz==2022.7.1 +pytz-deprecation-shim==0.1.0.post0 queuelib==1.6.2 -requests==2.28.1 +requests==2.28.2 requests-file==1.5.1 -Scrapy==2.7.0 +Scrapy==2.8.0 service-identity==21.1.0 six==1.16.0 tldextract==3.4.0 tomli==2.0.1 Twisted==22.10.0 -typing_extensions==4.4.0 -urllib3==1.26.12 -w3lib==2.0.1 -zope.interface==5.5.0 +typing_extensions==4.5.0 +tzdata==2022.7 +tzlocal==4.2 +urllib3==1.26.14 +w3lib==2.1.1 +zope.interface==5.5.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/pyproject.toml new/fake-useragent-1.1.3/pyproject.toml --- old/fake-useragent-1.1.2/pyproject.toml 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/pyproject.toml 2023-03-20 21:29:51.000000000 +0100 @@ -4,7 +4,7 @@ [project] name = "fake-useragent" -version = "1.1.1" +version = "1.1.3" authors = [ {name = "Victor Kovtun", email = "hellysm...@gmail.com"}, {name = "Melroy van den Berg", email = "mel...@melroy.org"}, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/requirements.txt new/fake-useragent-1.1.3/requirements.txt --- old/fake-useragent-1.1.2/requirements.txt 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/requirements.txt 2023-03-20 21:29:51.000000000 +0100 @@ -1,28 +1,34 @@ -attrs==22.1.0 -black==22.10.0 -build==0.9.0 +attrs==22.2.0 +black==23.1.0 +build==0.10.0 +cachetools==5.3.0 +chardet==5.1.0 click==8.1.3 -coverage==6.5.0 +colorama==0.4.6 +coverage==7.2.1 distlib==0.3.6 -exceptiongroup==1.0.0 -filelock==3.8.0 -importlib-metadata==5.0.0 -importlib-resources==5.10.0 -iniconfig==1.1.1 -isort==5.10.1 -mypy-extensions==0.4.3 -packaging==21.3 -pathspec==0.10.1 +exceptiongroup==1.1.0 +fastjsonschema==2.16.3 +filelock==3.9.0 +importlib-metadata==6.0.0 +importlib-resources==5.12.0 +iniconfig==2.0.0 +isort==5.12.0 +mypy-extensions==1.0.0 +packaging==23.0 +pathspec==0.11.0 pep517==0.13.0 -platformdirs==2.5.2 +platformdirs==3.1.0 pluggy==1.0.0 py==1.11.0 pyparsing==3.0.9 -pytest==7.2.0 +pyproject_api==1.5.0 +pyproject_hooks==1.0.0 +pytest==7.2.2 pytest-cov==4.0.0 six==1.16.0 tomli==2.0.1 -tox==3.27.0 -validate-pyproject==0.10.1 -virtualenv==20.16.6 -zipp==3.10.0 +tox==4.4.6 +validate-pyproject==0.12.1 +virtualenv==20.20.0 +zipp==3.15.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fake-useragent-1.1.2/tox.ini new/fake-useragent-1.1.3/tox.ini --- old/fake-useragent-1.1.2/tox.ini 2023-02-08 18:43:26.000000000 +0100 +++ new/fake-useragent-1.1.3/tox.ini 2023-03-20 21:29:51.000000000 +0100 @@ -1,6 +1,6 @@ [tox] envlist = - py3{7,8,9,10,11} + py3{8,9,10,11} pypy3 isolated_build = True skip_missing_interpreters = True