Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-filelock for openSUSE:Factory checked in at 2023-01-05 15:00:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-filelock (Old) and /work/SRC/openSUSE:Factory/.python-filelock.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-filelock" Thu Jan 5 15:00:08 2023 rev:9 rq:1055798 version:3.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-filelock/python-filelock.changes 2022-12-23 10:20:42.103206066 +0100 +++ /work/SRC/openSUSE:Factory/.python-filelock.new.1563/python-filelock.changes 2023-01-05 15:00:15.916834439 +0100 @@ -1,0 +2,6 @@ +Wed Jan 4 12:59:24 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 3.9.0: + * move to hatchling build backend + +------------------------------------------------------------------- Old: ---- filelock-3.8.2.tar.gz New: ---- filelock-3.9.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-filelock.spec ++++++ --- /var/tmp/diff_new_pack.vFq7fx/_old 2023-01-05 15:00:16.728838719 +0100 +++ /var/tmp/diff_new_pack.vFq7fx/_new 2023-01-05 15:00:16.744838803 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-filelock # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2018 Matthias Fehring <buschman...@opensuse.org> # # All modifications and additions to the file contributed by third parties @@ -18,16 +18,16 @@ Name: python-filelock -Version: 3.8.2 +Version: 3.9.0 Release: 0 Summary: Platform Independent File Lock in Python License: Unlicense URL: https://github.com/tox-dev/py-filelock Source: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros ++++++ filelock-3.8.2.tar.gz -> filelock-3.9.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.github/FUNDING.yml new/filelock-3.9.0/.github/FUNDING.yml --- old/filelock-3.8.2/.github/FUNDING.yml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.github/FUNDING.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -tidelift: "pypi/filelock" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.github/SECURITY.md new/filelock-3.9.0/.github/SECURITY.md --- old/filelock-3.8.2/.github/SECURITY.md 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.github/SECURITY.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -# Security Policy - -## Supported Versions - -| Version | Supported | -| ------- | ------------------ | -| 3.7 + | :white_check_mark: | -| < 3.7 | :x: | - -## Reporting a Vulnerability - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift -will coordinate the fix and disclosure. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.github/dependabot.yml new/filelock-3.9.0/.github/dependabot.yml --- old/filelock-3.8.2/.github/dependabot.yml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.github/dependabot.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.github/workflows/check.yml new/filelock-3.9.0/.github/workflows/check.yml --- old/filelock-3.8.2/.github/workflows/check.yml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.github/workflows/check.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,156 +0,0 @@ -name: check -on: - push: - pull_request: - schedule: - - cron: "0 8 * * *" - -concurrency: - group: check-${{ github.ref }} - cancel-in-progress: true - -jobs: - test: - name: test ${{ matrix.py }} - ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - py: - - "3.11" - - "3.10" - - "pypy3.9" - - "3.9" - - "3.8" - - "3.7" - os: - - ubuntu-22.04 - - windows-2022 - - macos-12 - exclude: - - { os: windows-2022, py: "pypy3.9" } - - steps: - - name: Setup python for tox - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Install tox - run: python -m pip install tox - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup python for test ${{ matrix.py }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.py }} - - name: Pick environment to run - run: | - import os; import platform; import sys; from pathlib import Path - env = f'TOXENV=py{"" if platform.python_implementation() == "CPython" else "py"}3{sys.version_info.minor}' - print(f"Picked: {env} for {sys.version} based of {sys.executable}") - with Path(os.environ["GITHUB_ENV"]).open("ta") as file_handler: - file_handler.write(env) - shell: python - - name: Setup test suite - run: tox -vv --notest - - name: Run test suite - run: tox --skip-pkg-install - env: - PYTEST_ADDOPTS: "-vv --durations=20" - CI_RUN: "yes" - DIFF_AGAINST: HEAD - - name: Rename coverage report file - run: import os; import sys; os.rename(f".tox/.coverage.{os.environ['TOXENV']}", f".tox/.coverage.{os.environ['TOXENV']}-{sys.platform}") - shell: python - - name: Upload coverage data - uses: actions/upload-artifact@v3 - with: - name: coverage-data - path: ".tox/.coverage.*" - - coverage: - name: Combine coverage - runs-on: ubuntu-22.04 - needs: test - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Install tox - run: python -m pip install tox - - name: Setup coverage tool - run: tox -e coverage --notest - - name: Install package builder - run: python -m pip install build - - name: Build package - run: pyproject-build --wheel . - - name: Download coverage data - uses: actions/download-artifact@v3 - with: - name: coverage-data - path: .tox - - name: Combine and report coverage - run: tox -e coverage - - name: Upload HTML report - uses: actions/upload-artifact@v3 - with: - name: html-report - path: .tox/htmlcov - - check: - name: ${{ matrix.tox_env }} - ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - ubuntu-22.04 - - windows-2022 - tox_env: - - dev - - type - - docs - - readme - exclude: - - { os: windows-latest, tox_env: readme } - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup Python "3.11" - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Install tox - run: python -m pip install tox - - name: Setup test suite - run: tox -vv --notest -e ${{ matrix.tox_env }} - - name: Run test suite - run: tox --skip-pkg-install -e ${{ matrix.tox_env }} - - publish: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - needs: [ check, coverage ] - runs-on: ubuntu-22.04 - steps: - - name: Setup python to build package - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Install build - run: python -m pip install build - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Build sdist and wheel - run: python -m build -s -w . -o dist - - name: Publish to PyPi - uses: pypa/gh-action-pypi-publish@v1.6.1 - with: - skip_existing: true - user: __token__ - password: ${{ secrets.pypi_password }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.pre-commit-config.yaml new/filelock-3.9.0/.pre-commit-config.yaml --- old/filelock-3.8.2/.pre-commit-config.yaml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.pre-commit-config.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,57 +0,0 @@ -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: check-ast - - id: check-builtin-literals - - id: check-docstring-first - - id: check-merge-conflict - - id: check-yaml - - id: check-toml - - id: debug-statements - - id: end-of-file-fixer - - id: trailing-whitespace - - repo: https://github.com/asottile/pyupgrade - rev: v3.3.0 - hooks: - - id: pyupgrade - args: [ "--py36-plus" ] - - repo: https://github.com/PyCQA/isort - rev: 5.10.1 - hooks: - - id: isort - - repo: https://github.com/psf/black - rev: 22.10.0 - hooks: - - id: black - args: [ --safe ] - - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 - hooks: - - id: blacken-docs - additional_dependencies: [ black==22.10 ] - - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 - hooks: - - id: rst-backticks - - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 - hooks: - - id: setup-cfg-fmt - - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "0.5.2" - hooks: - - id: tox-ini-fmt - args: [ "-p", "fix_lint" ] - - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 - hooks: - - id: flake8 - additional_dependencies: - - flake8-bugbear==22.10.27 - - flake8-comprehensions==3.10.1 - - flake8-pytest-style==1.6 - - flake8-spellcheck==0.28 - - flake8-unused-arguments==0.0.12 - - flake8-noqa==1.3 - - pep8-naming==0.13.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/.readthedocs.yml new/filelock-3.9.0/.readthedocs.yml --- old/filelock-3.8.2/.readthedocs.yml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/.readthedocs.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -version: 2 -build: - os: ubuntu-22.04 - tools: - python: "3" -python: - install: - - method: pip - path: . - extra_requirements: - - docs -sphinx: - builder: html - configuration: docs/conf.py - fail_on_warning: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/PKG-INFO new/filelock-3.9.0/PKG-INFO --- old/filelock-3.8.2/PKG-INFO 2022-12-05 19:30:13.547886000 +0100 +++ new/filelock-3.9.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,14 +1,14 @@ Metadata-Version: 2.1 Name: filelock -Version: 3.8.2 +Version: 3.9.0 Summary: A platform independent file lock. -Home-page: https://github.com/tox-dev/py-filelock -Download-URL: https://github.com/tox-dev/py-filelock/archive/main.zip -Author: Benedikt Schmitt -Author-email: bened...@benediktschmitt.de -License: Unlicense +Project-URL: Documentation, https://py-filelock.readthedocs.io +Project-URL: Homepage, https://github.com/tox-dev/py-filelock Project-URL: Source, https://github.com/tox-dev/py-filelock Project-URL: Tracker, https://github.com/tox-dev/py-filelock/issues +Maintainer-email: Bernát Gábor <gaborjber...@gmail.com> +License-File: LICENSE +Keywords: application,cache,directory,log,user Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: The Unlicense (Unlicense) @@ -20,10 +20,17 @@ Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: System Requires-Python: >=3.7 -Description-Content-Type: text/markdown Provides-Extra: docs +Requires-Dist: furo>=2022.12.7; extra == 'docs' +Requires-Dist: sphinx-autodoc-typehints>=1.19.5; extra == 'docs' +Requires-Dist: sphinx>=5.3; extra == 'docs' Provides-Extra: testing -License-File: LICENSE +Requires-Dist: covdefaults>=2.2.2; extra == 'testing' +Requires-Dist: coverage>=7.0.1; extra == 'testing' +Requires-Dist: pytest-cov>=4; extra == 'testing' +Requires-Dist: pytest-timeout>=2.1; extra == 'testing' +Requires-Dist: pytest>=7.2; extra == 'testing' +Description-Content-Type: text/markdown # py-filelock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/codecov.yml new/filelock-3.9.0/codecov.yml --- old/filelock-3.8.2/codecov.yml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/codecov.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -coverage: - status: - patch: - default: - informational: true -comment: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/api.rst new/filelock-3.9.0/docs/api.rst --- old/filelock-3.8.2/docs/api.rst 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/api.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -API -=== - -.. automodule:: filelock - :members: - :show-inheritance: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/changelog.rst new/filelock-3.9.0/docs/changelog.rst --- old/filelock-3.8.2/docs/changelog.rst 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/changelog.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,236 +0,0 @@ -Changelog -========= - -v3.8.1 (2022-12-04) -------------------- -- Fix mypy does not accept ``filelock.FileLock`` as a valid type - -v3.8.0 (2022-12-04) -------------------- -- Bump project dependencies -- Add timeout unit to docstrings -- Support 3.11 - -v3.7.1 (2022-05-31) -------------------- -- Make the readme documentation point to the index page - -v3.7.0 (2022-05-13) -------------------- -- Add ability to return immediately when a lock cannot be obtained - -v3.6.0 (2022-02-17) -------------------- -- Fix pylint warning "Abstract class :class:`WindowsFileLock <filelock.WindowsFileLock>` with abstract methods instantiated" - :pr:`135` - by :user:`vonschultz` -- Fix pylint warning "Abstract class :class:`UnixFileLock <filelock.UnixFileLock>` with abstract methods instantiated" - :pr:`135` - by :user:`vonschultz` - -v3.5.1 (2022-02-16) -------------------- -- Use ``time.monotonic`` instead of ``time.time`` for calculating timeouts. - -v3.5.0 (2022-02-15) -------------------- -- Enable use as context decorator - -v3.4.2 (2021-12-16) -------------------- -- Drop support for python ``3.6`` - -v3.4.1 (2021-12-16) -------------------- -- Add ``stacklevel`` to deprecation warnings for argument name change - -v3.4.0 (2021-11-16) -------------------- -- Add correct spelling of poll interval parameter for :meth:`acquire <filelock.BaseFileLock.acquire>` method, raise - deprecation warning when using the misspelled form :pr:`119` - by :user:`XuehaiPan`. - -v3.3.2 (2021-10-29) -------------------- -- Accept path types (like ``pathlib.Path`` and ``pathlib.PurePath``) in the constructor for ``FileLock`` objects. - -v3.3.1 (2021-10-15) -------------------- -- Add changelog to the documentation :pr:`108` - by :user:`gaborbernat` -- Leave the log level of the ``filelock`` logger as not set (previously was set to warning) :pr:`108` - by - :user:`gaborbernat` - -v3.3.0 (2021-10-03) -------------------- -- Drop python 2.7 and 3.5 support, add type hints :pr:`100` - by :user:`gaborbernat` -- Document asyncio support - by :user:`gaborbernat` -- fix typo :pr:`98` - by :user:`jugmac00` - -v3.2.1 (2021-10-02) -------------------- -- Improve documentation -- Changed logger name from ``filelock._api`` to ``filelock`` :pr:`97` - by :user:`hkennyv` - -v3.2.0 (2021-09-30) -------------------- -- Raise when trying to acquire in R/O or missing folder :pr:`96` - by :user:`gaborbernat` -- Move lock acquire/release log from INFO to DEBUG :pr:`95` - by :user:`gaborbernat` -- Fix spelling and remove ignored flake8 checks - by :user:`gaborbernat` -- Split main module :pr:`94` - by :user:`gaborbernat` -- Move test suite to pytest :pr:`93` - by :user:`gaborbernat` - -v3.1.0 (2021-09-27) -------------------- -- Update links for new home at tox-dev :pr:`88` - by :user:`hugovk` -- Fixed link to LICENSE file :pr:`63` - by :user:`sharkwouter` -- Adopt tox-dev organization best practices :pr:`87` - by :user:`gaborbernat` -- Ownership moved from :user:`benediktschmitt` to the tox-dev organization (new primary maintainer :user:`gaborbernat`) - -v3.0.12 (2019-05-18) --------------------- -- *fixed* setuptools and twine/warehouse error by making the license only 1 line long -- *update* version for pypi upload -- *fixed* python2 setup error -- *added* test.py module to MANIFEST and made tests available in the setup commands :issue:`48` -- *fixed* documentation thanks to :user:`AnkurTank` :issue:`49` -- Update Trove classifiers for PyPI -- test: Skip test_del on PyPy since it hangs - -v3.0.10 (2018-11-01) --------------------- -- Fix README rendering on PyPI - -v3.0.9 (2018-10-02) -------------------- -- :pr:`38` from cottsay/shebang -- *updated* docs config for older sphinx compatibility -- *removed* misleading shebang from module - -v3.0.8 (2018-09-09) -------------------- -- *updated* use setuptools - -v3.0.7 (2018-09-09) -------------------- -- *fixed* garbage collection (:issue:`37`) -- *fix* travis ci badge (use rst not markdown) -- *changed* travis uri - -v3.0.6 (2018-08-22) -------------------- -- *clean up* -- Fixed unit test for Python 2.7 -- Added Travis banner -- Added Travis CI support - -v3.0.5 (2018-04-26) -------------------- -- Corrected the prequel reference - -v3.0.4 (2018-02-01) -------------------- -- *updated* README - -v3.0.3 (2018-01-30) -------------------- -- *updated* readme - -v3.0.1 (2018-01-30) -------------------- -- *updated* README (added navigation) -- *updated* documentation :issue:`22` -- *fix* the ``SoftFileLock`` test was influenced by the test for ``FileLock`` -- *undo* ``cb1d83d`` :issue:`31` - -v3.0.0 (2018-01-05) -------------------- -- *updated* major version number due to :issue:`29` and :issue:`27` -- *fixed* use proper Python3 ``reraise`` method -- Attempting to clean up lock file on Unix after ``release`` - -v2.0.13 (2017-11-05) --------------------- -- *changed* The logger is now acquired when first needed. :issue:`24` - -v2.0.12 (2017-09-02) --------------------- -- correct spelling mistake - -v2.0.11 (2017-07-19) --------------------- -- *added* official support for python 2 :issue:`20` - -v2.0.10 (2017-06-07) --------------------- -- *updated* readme - -v2.0.9 (2017-06-07) -------------------- -- *updated* readme :issue:`19` -- *added* example :pr:`16` -- *updated* readthedocs url -- *updated* change order of the examples (:pr:`16`) - -v2.0.8 (2017-01-24) -------------------- -- Added logging -- Removed unused imports - -v2.0.7 (2016-11-05) -------------------- -- *fixed* :issue:`14` (moved license and readme file to ``MANIFEST``) - -v2.0.6 (2016-05-01) -------------------- -- *changed* unlocking sequence to fix transient test failures -- *changed* threads in tests so exceptions surface -- *added* test lock file cleanup - -v2.0.5 (2015-11-11) -------------------- -- Don't remove file after releasing lock -- *updated* docs - -v2.0.4 (2015-07-29) -------------------- -- *added* the new classes to ``__all__`` - -v2.0.3 (2015-07-29) -------------------- -- *added* The ``SoftFileLock`` is now always tested - -v2.0.2 (2015-07-29) -------------------- -- The filelock classes are now always available and have been moved out of the - ``if msvrct: ... elif fcntl ... else`` clauses. - -v2.0.1 (2015-06-13) -------------------- -- fixed :issue:`5` -- *updated* test cases -- *updated* documentation -- *fixed* :issue:`2` which has been introduced with the lock counter - -v2.0.0 (2015-05-25) -------------------- -- *added* default timeout (fixes :issue:`2`) - -v1.0.3 (2015-04-22) -------------------- -- *added* new test case, *fixed* unhandled exception - -v1.0.2 (2015-04-22) -------------------- -- *fixed* a timeout could still be thrown if the lock is already acquired - -v1.0.1 (2015-04-22) -------------------- -- *fixed* :issue:`1` - -v1.0.0 (2015-04-07) -------------------- -- *added* lock counter, *added* unittest, *updated* to version 1 -- *changed* filenames -- *updated* version for pypi -- *updated* README, LICENSE (changed format from md to rst) -- *added* MANIFEST to gitignore -- *added* os independent file lock ; *changed* setup.py for pypi -- Update README.md -- initial version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/conf.py new/filelock-3.9.0/docs/conf.py --- old/filelock-3.8.2/docs/conf.py 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/conf.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,60 +0,0 @@ -from __future__ import annotations - -from datetime import date, datetime - -from filelock import __version__ - -company = "tox-dev" -name = "filelock" -version = ".".join(__version__.split(".")[:2]) -release = __version__ -copyright = f"2014-{date.today().year}, {company}" - -extensions = [ - "sphinx.ext.autodoc", - "sphinx.ext.autosectionlabel", - "sphinx.ext.extlinks", - "sphinx.ext.intersphinx", - "sphinx_autodoc_typehints", -] - -templates_path = [] -unused_docs = [] -source_suffix = ".rst" -exclude_patterns = ["_build"] - -master_doc = "index" -pygments_style = "default" - -project = name -today_fmt = "%B %d, %Y" - -html_theme = "furo" -html_favicon = "logo.svg" -html_logo = "logo.svg" -html_theme_options = { - "navigation_with_keys": True, -} -html_title = name -html_last_updated_fmt = datetime.now().isoformat() - -autoclass_content = "class" -autodoc_member_order = "bysource" -autodoc_default_options = { - "member-order": "bysource", - "undoc-members": True, - "show-inheritance": True, -} -autodoc_typehints = "none" -always_document_param_types = False -typehints_fully_qualified = True -autosectionlabel_prefix_document = True - -intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} -nitpicky = True -nitpick_ignore = [] -extlinks = { - "issue": ("https://github.com/tox-dev/py-filelock/issues/%s", "issue #%s"), - "pr": ("https://github.com/tox-dev/py-filelock/issues/%s", "PR #%s"), - "user": ("https://github.com/%s", "@%s"), -} Binary files old/filelock-3.8.2/docs/example.gif and new/filelock-3.9.0/docs/example.gif differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/index.rst new/filelock-3.9.0/docs/index.rst --- old/filelock-3.8.2/docs/index.rst 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/index.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,159 +0,0 @@ -filelock -======== - -This package contains a single module, which implements a platform independent file lock in Python, which provides a -simple way of inter-process communication: - -.. code-block:: python - - from filelock import Timeout, FileLock - - lock = FileLock("high_ground.txt.lock") - with lock: - with open("high_ground.txt", "a") as f: - f.write("You were the chosen one.") - -**Don't use** a :class:`FileLock <filelock.FileLock>` to lock the file you want to write to, instead create a separate -``.lock`` file as shown above. - -.. image:: example.gif - :alt: Example gif - - -Similar libraries ------------------ - -Perhaps you are looking for something like: - -- the `pid <https://pypi.python.org/pypi/pid>`_ 3rd party library, -- for Windows the `msvcrt <https://docs.python.org/3/library/msvcrt.html#msvcrt.locking>`_ module in the standard - library, -- for UNIX the `fcntl <https://docs.python.org/3/library/fcntl.html#fcntl.flock>`_ module in the standard library, -- the `flufl.lock <https://pypi.org/project/flufl.lock/>`_ 3rd party library. - - -Installation ------------- - -``filelock`` is available via PyPI, so you can pip install it: - -.. code-block:: bash - - python -m pip install filelock - -Tutorial --------- - -A :class:`FileLock <filelock.FileLock>` is used to indicate another process of your application that a resource or -working directory is currently used. To do so, create a :class:`FileLock <filelock.FileLock>` first: - -.. code-block:: python - - from filelock import Timeout, FileLock - - file_path = "high_ground.txt" - lock_path = "high_ground.txt.lock" - - lock = FileLock(lock_path, timeout=1) - -The lock object supports multiple ways for acquiring the lock, including the ones used to acquire standard Python thread -locks: - -.. code-block:: python - - with lock: - with open(file_path, "a") as f: - f.write("Hello there!") - - lock.acquire() - try: - with open(file_path, "a") as f: - f.write("General Kenobi!") - finally: - lock.release() - - - @lock - def decorated(): - print("You're a decorated Jedi!") - - - decorated() - -The :meth:`acquire <filelock.BaseFileLock.acquire>` method accepts also a ``timeout`` parameter. If the lock cannot be -acquired within ``timeout`` seconds, a :class:`Timeout <filelock.Timeout>` exception is raised: - -.. code-block:: python - - try: - with lock.acquire(timeout=10): - with open(file_path, "a") as f: - f.write("I have a bad feeling about this.") - except Timeout: - print("Another instance of this application currently holds the lock.") - -The lock objects are recursive locks, which means that once acquired, they will not block on successive lock requests: - -.. code-block:: python - - def cite1(): - with lock: - with open(file_path, "a") as f: - f.write("I hate it when he does that.") - - - def cite2(): - with lock: - with open(file_path, "a") as f: - f.write("You don't want to sell me death sticks.") - - - # The lock is acquired here. - with lock: - cite1() - cite2() - # And released here. - - -Logging -------- -All log messages by this library are made using the ``DEBUG_ level``, under the ``filelock`` name. On how to control -displaying/hiding that please consult the -`logging documentation of the standard library <https://docs.python.org/3/howto/logging.html>`_. E.g. to hide these -messages you can use: - -.. code-block:: python - - logging.getLogger("filelock").setLevel(logging.INFO) - -FileLock vs SoftFileLock ------------------------- - -The :class:`FileLock <filelock.FileLock>` is platform dependent while the :class:`SoftFileLock <filelock.SoftFileLock>` -is not. Use the :class:`FileLock <filelock.FileLock>` if all instances of your application are running on the same -platform and a :class:`SoftFileLock <filelock.SoftFileLock>` otherwise. - -The :class:`SoftFileLock <filelock.SoftFileLock>` only watches the existence of the lock file. This makes it ultra -portable, but also more prone to dead locks if the application crashes. You can simply delete the lock file in such -cases. - -Asyncio support ---------------- - -This library currently does not support asyncio. We'd recommend adding an asyncio variant though if someone can make a -pull request for it, `see here <https://github.com/tox-dev/py-filelock/issues/99>`_. - -Contributions and issues ------------------------- - -Contributions are always welcome, please make sure they pass all tests before creating a pull request. This module is -hosted on `GitHub <https://github.com/tox-dev/py-filelock>`_. If you have any questions or suggestions, don't hesitate -to open a new issue ð. There's no bad question, just a missed opportunity to learn more. - -.. toctree:: - :hidden: - - self - api - license - changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/license.rst new/filelock-3.9.0/docs/license.rst --- old/filelock-3.8.2/docs/license.rst 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/license.rst 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -License -======= - -*py-filelock* is public domain: - -.. literalinclude:: ../LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/docs/logo.svg new/filelock-3.9.0/docs/logo.svg --- old/filelock-3.8.2/docs/logo.svg 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/docs/logo.svg 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="150px" height="239px" viewBox="0 0 150 238" version="1.1"> -<g id="surface1"> -<path style="fill:none;stroke-width:75;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(47.843137%,47.843137%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 507.996745 508.002642 L 507.996745 248.006664 C 507.996745 132.022059 413.974349 37.99977 297.995833 37.99977 " transform="matrix(0.252101,0,0,0.251852,0,0)"/> -<path style="fill:none;stroke-width:75;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(47.843137%,47.843137%,0%);stroke-opacity:1;stroke-dasharray:130,65;stroke-miterlimit:4;" d="M 87.499089 491.996209 L 87.499089 246.998506 C 87.499089 130.998392 181.50599 37.007123 297.5 37.007123 " transform="matrix(0.252101,0,0,0.251852,0,0)"/> -<path style="fill:none;stroke-width:75;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(47.843137%,47.843137%,0%);stroke-opacity:1;stroke-miterlimit:4;" d="M 557.998438 647.996898 C 557.998438 791.589499 441.601562 907.992877 297.995833 907.992877 C 154.405599 907.992877 37.993229 791.589499 37.993229 647.996898 C 37.993229 504.404297 154.405599 388.000919 297.995833 388.000919 C 441.601562 388.000919 557.998438 504.404297 557.998438 647.996898 Z M 557.998438 647.996898 " transform="matrix(0.252101,0,0,0.251852,0,0)"/> -<path style=" stroke:none;fill-rule:nonzero;fill:rgb(47.843137%,47.843137%,0%);fill-opacity:1;" d="M 97.816406 163.199219 C 97.816406 175.71875 87.65625 185.867188 75.125 185.867188 C 62.59375 185.867188 52.4375 175.71875 52.4375 163.199219 C 52.4375 150.679688 62.59375 140.535156 75.125 140.535156 C 87.65625 140.535156 97.816406 150.679688 97.816406 163.199219 Z M 97.816406 163.199219 "/> -</g> -</svg> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/pyproject.toml new/filelock-3.9.0/pyproject.toml --- old/filelock-3.8.2/pyproject.toml 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -1,17 +1,74 @@ [build-system] -requires = [ - "setuptools>=65.6.3", - "setuptools_scm>=7.0.5", +build-backend = "hatchling.build" +requires = ["hatchling>=1.11.1", "hatch-vcs>=0.3"] + +[project] +name = "filelock" +description = "A platform independent file lock." +readme = "README.md" +license = "Unlicense" +maintainers = [{ name = "Bernát Gábor", email = "gaborjber...@gmail.com" }] +urls.Documentation = "https://py-filelock.readthedocs.io" +urls.Homepage = "https://github.com/tox-dev/py-filelock" +urls.Source = "https://github.com/tox-dev/py-filelock" +urls.Tracker = "https://github.com/tox-dev/py-filelock/issues" +requires-python = ">=3.7" +optional-dependencies.testing = [ + "covdefaults>=2.2.2", + "coverage>=7.0.1", + "pytest>=7.2", + "pytest-cov>=4", + "pytest-timeout>=2.1", +] +optional-dependencies.docs = ["furo>=2022.12.7", "sphinx>=5.3", "sphinx-autodoc-typehints>=1.19.5"] +keywords = ["application", "cache", "directory", "log", "user"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: The Unlicense (Unlicense)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Internet", + "Topic :: Software Development :: Libraries", + "Topic :: System", ] -build-backend = 'setuptools.build_meta' +dynamic = ["version"] + +[tool.hatch] +build.hooks.vcs.version-file = "src/filelock/version.py" +build.targets.sdist.include = ["/src", "/tests"] +version.source = "vcs" + +[tool.coverage] +html.show_contexts = true +html.skip_covered = false +paths.source = ["src", ".tox/*/lib/*/site-packages", ".tox\\*\\Lib\\site-packages", "**/src", "**\\src"] +paths.other = [".", "*/py-filelock", "*\\py-filelock"] +report.fail_under = 76 +run.parallel = true +run.plugins = ["covdefaults"] [tool.black] line-length = 120 [tool.isort] -line_length = 120 profile = "black" -known_first_party = ["filelock", "tests"] +known_first_party = ["filelock"] + +[tool.mypy] +python_version = "3.11" +show_error_codes = true +strict = true +overrides = [{ module = ["appdirs.*", "jnius.*"], ignore_missing_imports = true }] + +[tool.pep8] +max-line-length = "120" -[tool.setuptools_scm] -write_to = "src/filelock/version.py" +[tool.flake8] +max-complexity = 22 +max-line-length = 120 +unused-arguments-ignore-abstract-functions = true +noqa-require-code = true +dictionaries = ["en_US", "python", "technical", "django"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/setup.cfg new/filelock-3.9.0/setup.cfg --- old/filelock-3.8.2/setup.cfg 2022-12-05 19:30:13.547886000 +0100 +++ new/filelock-3.9.0/setup.cfg 1970-01-01 01:00:00.000000000 +0100 @@ -1,82 +0,0 @@ -[metadata] -name = filelock -description = A platform independent file lock. -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/tox-dev/py-filelock -author = Benedikt Schmitt -author_email = bened...@benediktschmitt.de -license = Unlicense -license_file = LICENSE -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: The Unlicense (Unlicense) - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Topic :: Internet - Topic :: Software Development :: Libraries - Topic :: System -download_url = https://github.com/tox-dev/py-filelock/archive/main.zip -project_urls = - Source=https://github.com/tox-dev/py-filelock - Tracker=https://github.com/tox-dev/py-filelock/issues - -[options] -packages = find: -python_requires = >=3.7 -package_dir = - =src -zip_safe = True - -[options.packages.find] -where = src - -[options.extras_require] -docs = - furo>=2022.9.29 - sphinx>=5.3 - sphinx-autodoc-typehints>=1.19.5 -testing = - covdefaults>=2.2.2 - coverage>=6.5 - pytest>=7.2 - pytest-cov>=4 - pytest-timeout>=2.1 - -[options.package_data] -filelock = py.typed - -[coverage:run] -plugins = covdefaults -parallel = true - -[coverage:paths] -src = - src - .tox/*/lib/python*/site-packages - .tox/pypy*/site-packages - .tox\*\Lib\site-packages\ - */src - *\src -other = - . - */py-filelock - *\py-filelock - -[coverage:report] -fail_under = 88 - -[coverage:html] -show_contexts = true -skip_covered = false - -[coverage:covdefaults] -subtract_omit = */.tox/* - -[egg_info] -tag_build = -tag_date = 0 - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/setup.py new/filelock-3.9.0/setup.py --- old/filelock-3.8.2/setup.py 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/setup.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -from __future__ import annotations - -from setuptools import setup - -setup() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock/version.py new/filelock-3.9.0/src/filelock/version.py --- old/filelock-3.8.2/src/filelock/version.py 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock/version.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,5 +1,4 @@ -# coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control -__version__ = version = '3.8.2' -__version_tuple__ = version_tuple = (3, 8, 2) +__version__ = version = '3.9.0' +__version_tuple__ = version_tuple = (3, 9, 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/PKG-INFO new/filelock-3.9.0/src/filelock.egg-info/PKG-INFO --- old/filelock-3.8.2/src/filelock.egg-info/PKG-INFO 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,40 +0,0 @@ -Metadata-Version: 2.1 -Name: filelock -Version: 3.8.2 -Summary: A platform independent file lock. -Home-page: https://github.com/tox-dev/py-filelock -Download-URL: https://github.com/tox-dev/py-filelock/archive/main.zip -Author: Benedikt Schmitt -Author-email: bened...@benediktschmitt.de -License: Unlicense -Project-URL: Source, https://github.com/tox-dev/py-filelock -Project-URL: Tracker, https://github.com/tox-dev/py-filelock/issues -Classifier: Development Status :: 5 - Production/Stable -Classifier: Intended Audience :: Developers -Classifier: License :: OSI Approved :: The Unlicense (Unlicense) -Classifier: Operating System :: OS Independent -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3 :: Only -Classifier: Topic :: Internet -Classifier: Topic :: Software Development :: Libraries -Classifier: Topic :: System -Requires-Python: >=3.7 -Description-Content-Type: text/markdown -Provides-Extra: docs -Provides-Extra: testing -License-File: LICENSE - -# py-filelock - -[](https://pypi.org/project/filelock/) -[](https://pypi.org/project/filelock/) -[](https://py-filelock.readthedocs.io/en/latest/?badge=latest) -[](https://github.com/psf/black) -[](https://pepy.tech/project/filelock/month) -[](https://github.com/tox-dev/py-filelock/actions/workflows/check.yml) - -For more information checkout the [official documentation](https://py-filelock.readthedocs.io/en/latest/index.html). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/SOURCES.txt new/filelock-3.9.0/src/filelock.egg-info/SOURCES.txt --- old/filelock-3.8.2/src/filelock.egg-info/SOURCES.txt 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,38 +0,0 @@ -.gitignore -.pre-commit-config.yaml -.readthedocs.yml -LICENSE -README.md -codecov.yml -pyproject.toml -setup.cfg -setup.py -tox.ini -whitelist.txt -.github/FUNDING.yml -.github/SECURITY.md -.github/dependabot.yml -.github/workflows/check.yml -docs/api.rst -docs/changelog.rst -docs/conf.py -docs/example.gif -docs/index.rst -docs/license.rst -docs/logo.svg -src/filelock/__init__.py -src/filelock/_api.py -src/filelock/_error.py -src/filelock/_soft.py -src/filelock/_unix.py -src/filelock/_util.py -src/filelock/_windows.py -src/filelock/py.typed -src/filelock/version.py -src/filelock.egg-info/PKG-INFO -src/filelock.egg-info/SOURCES.txt -src/filelock.egg-info/dependency_links.txt -src/filelock.egg-info/requires.txt -src/filelock.egg-info/top_level.txt -src/filelock.egg-info/zip-safe -tests/test_filelock.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/dependency_links.txt new/filelock-3.9.0/src/filelock.egg-info/dependency_links.txt --- old/filelock-3.8.2/src/filelock.egg-info/dependency_links.txt 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/requires.txt new/filelock-3.9.0/src/filelock.egg-info/requires.txt --- old/filelock-3.8.2/src/filelock.egg-info/requires.txt 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/requires.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ - -[docs] -furo>=2022.9.29 -sphinx>=5.3 -sphinx-autodoc-typehints>=1.19.5 - -[testing] -covdefaults>=2.2.2 -coverage>=6.5 -pytest>=7.2 -pytest-cov>=4 -pytest-timeout>=2.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/top_level.txt new/filelock-3.9.0/src/filelock.egg-info/top_level.txt --- old/filelock-3.8.2/src/filelock.egg-info/top_level.txt 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -filelock diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/src/filelock.egg-info/zip-safe new/filelock-3.9.0/src/filelock.egg-info/zip-safe --- old/filelock-3.8.2/src/filelock.egg-info/zip-safe 2022-12-05 19:30:13.000000000 +0100 +++ new/filelock-3.9.0/src/filelock.egg-info/zip-safe 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/tests/test_filelock.py new/filelock-3.9.0/tests/test_filelock.py --- old/filelock-3.8.2/tests/test_filelock.py 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/tests/test_filelock.py 2020-02-02 01:00:00.000000000 +0100 @@ -14,7 +14,14 @@ import pytest from _pytest.logging import LogCaptureFixture -from filelock import BaseFileLock, FileLock, SoftFileLock, Timeout, UnixFileLock, WindowsFileLock +from filelock import ( + BaseFileLock, + FileLock, + SoftFileLock, + Timeout, + UnixFileLock, + WindowsFileLock, +) @pytest.mark.parametrize( @@ -29,7 +36,10 @@ ], ) def test_simple( - lock_type: type[BaseFileLock], path_type: type[str] | type[Path], tmp_path: Path, caplog: LogCaptureFixture + lock_type: type[BaseFileLock], + path_type: type[str] | type[Path], + tmp_path: Path, + caplog: LogCaptureFixture, ) -> None: caplog.set_level(logging.DEBUG) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/tox.ini new/filelock-3.9.0/tox.ini --- old/filelock-3.8.2/tox.ini 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/tox.ini 1970-01-01 01:00:00.000000000 +0100 @@ -1,124 +0,0 @@ -[tox] -envlist = - fix_lint - py311 - py310 - py39 - py38 - py37 - pypy3 - type - coverage - docs - readme -isolated_build = true -skip_missing_interpreters = true -minversion = 3.21 - -[testenv] -description = run tests with {basepython} -passenv = - PIP_* - PYTEST_* -setenv = - COVERAGE_FILE = {toxworkdir}{/}.coverage.{envname} -extras = - testing -commands = - pytest {tty:--color=yes} {posargs: \ - --junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}filelock --cov {toxinidir}{/}tests \ - --cov-config=setup.cfg --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \ - --cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \ - tests} -package = wheel -wheel_build_env = .pkg - -[testenv:fix_lint] -description = format the code base to adhere to our styles, and complain about what we cannot do automatically -passenv = - * -basepython = python3.10 -skip_install = true -deps = - pre-commit>=2.20 -commands = - pre-commit run --all-files --show-diff-on-failure - python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))' - -[testenv:type] -description = run type check on code base -setenv = - {tty:MYPY_FORCE_COLOR = 1} -deps = - mypy==0.991 -commands = - mypy --strict src/filelock - mypy --strict tests - -[testenv:coverage] -description = combine coverage files and generate diff (against DIFF_AGAINST defaulting to origin/main) -passenv = - DIFF_AGAINST -setenv = - COVERAGE_FILE = {toxworkdir}/.coverage -skip_install = true -deps = - covdefaults>=2.2.2 - coverage>=6.5 - diff-cover>=7.2 -extras = -parallel_show_output = true -commands = - coverage combine - coverage report --skip-covered --show-missing - coverage xml -o {toxworkdir}/coverage.xml - coverage html -d {toxworkdir}/htmlcov - diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml -depends = - py311 - py310 - py39 - py38 - py37 - pypy3 - -[testenv:docs] -description = build documentation -extras = - docs -commands = - sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html {posargs} - python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")' - -[testenv:readme] -description = check that the long description is valid (need for PyPI) -skip_install = true -deps = - build[virtualenv]>=0.9 - twine>=4.0.2 -extras = -commands = - pyproject-build -o {envtmpdir} --wheel --sdist . - twine check {envtmpdir}/* - -[testenv:dev] -description = generate a DEV environment -usedevelop = true -extras = - docs - testing -commands = - python -m pip list --format=columns - python -c 'import sys; print(sys.executable)' - -[flake8] -max-complexity = 22 -max-line-length = 120 -noqa-require-code = true -dictionaries = en_US,python,technical,django - -[pep8] -max-line-length = 120 - -[pytest] -timeout = 120 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/filelock-3.8.2/whitelist.txt new/filelock-3.9.0/whitelist.txt --- old/filelock-3.8.2/whitelist.txt 2022-12-05 19:30:04.000000000 +0100 +++ new/filelock-3.9.0/whitelist.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,32 +0,0 @@ -autoclass -autodoc -autosectionlabel -caplog -eacces -extlinks -favicon -filelock -frameinfo -fspath -getframeinfo -intersphinx -intervall -isabstract -iwgrp -iwoth -iwusr -levelno -lk -msvcrt -nblck -nitpicky -notset -pygments -rdwr -ro -skipif -stacklevel -trunc -typehints -unlck -win32