components/python/filelock/Makefile | ●●●●● patch | view | raw | blame | history | |
components/python/filelock/manifests/sample-manifest.p5m | ●●●●● patch | view | raw | blame | history | |
components/python/filelock/patches/01-tox-no-diff-cover.patch | ●●●●● patch | view | raw | blame | history | |
components/python/filelock/patches/02-tox-cov-proto.patch | ●●●●● patch | view | raw | blame | history | |
components/python/filelock/pkg5 | ●●●●● patch | view | raw | blame | history | |
components/python/filelock/test/results-all.master | ●●●●● patch | view | raw | blame | history |
components/python/filelock/Makefile
@@ -19,13 +19,11 @@ include ../../../make-rules/shared-macros.mk COMPONENT_NAME = filelock HUMAN_VERSION = 3.13.1 HUMAN_VERSION = 3.13.3 COMPONENT_SUMMARY = filelock - A platform independent file lock. COMPONENT_PROJECT_URL = https://github.com/tox-dev/py-filelock COMPONENT_ARCHIVE_URL = \ https://files.pythonhosted.org/packages/70/70/41905c80dcfe71b22fb06827b8eae65781783d4a14194bce79d16a013263/filelock-3.13.1.tar.gz COMPONENT_ARCHIVE_HASH = \ sha256:521f5f56c50f8426f5e03ad3b281b490a87ef15bc6c526f168290f0c7148d44e sha256:a79895a25bbefdf55d1a2a0a80968f7dbb28edcd6d4234a0afb3f37ecde4b546 COMPONENT_LICENSE = Unlicense COMPONENT_LICENSE_FILE = LICENSE components/python/filelock/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@ # # # Copyright 2023 <contributor> # Copyright 2024 <contributor> # set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) components/python/filelock/patches/01-tox-no-diff-cover.patch
@@ -1,7 +1,7 @@ We cannot compare against origin/main branch because we build from sdist, not git. --- filelock-3.13.1/tox.ini.orig +++ filelock-3.13.1/tox.ini --- filelock-3.13.3/tox.ini.orig +++ filelock-3.13.3/tox.ini @@ -31,7 +31,7 @@ --cov-config=pyproject.toml --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 \ @@ -11,13 +11,13 @@ [testenv:fix] description = format the code base to adhere to our styles, and complain about what we cannot do automatically --- filelock-3.13.1/pyproject.toml.orig +++ filelock-3.13.1/pyproject.toml --- filelock-3.13.3/pyproject.toml.orig +++ filelock-3.13.3/pyproject.toml @@ -46,7 +46,6 @@ optional-dependencies.testing = [ "covdefaults>=2.3", "coverage>=7.3.2", - "diff-cover>=8", - "diff-cover>=8.0.1", "pytest>=7.4.3", "pytest-cov>=4.1", "pytest-mock>=3.12", components/python/filelock/patches/02-tox-cov-proto.patch
@@ -1,7 +1,7 @@ We test in proto area not in site-packages. --- filelock-3.13.1/tox.ini.orig +++ filelock-3.13.1/tox.ini --- filelock-3.13.3/tox.ini.orig +++ filelock-3.13.3/tox.ini @@ -27,7 +27,7 @@ COVERAGE_FILE = {toxworkdir}{/}.coverage.{envname} commands = components/python/filelock/pkg5
@@ -5,8 +5,8 @@ "runtime/python-39" ], "fmris": [ "library/python/filelock-39", "library/python/filelock" "library/python/filelock", "library/python/filelock-39" ], "name": "filelock" } } components/python/filelock/test/results-all.master
@@ -4,7 +4,8 @@ platform sunos5 -- Python $(PYTHON_VERSION).X -- $(@D)/.tox/py$(PYV)/bin/python cachedir: .tox/py$(PYV)/.pytest_cache rootdir: $(@D) collecting ... collected 103 items configfile: pyproject.toml collecting ... collected 105 items tests/test_error.py::test_timeout_lock_file PASSED tests/test_error.py::test_timeout_pickle PASSED @@ -86,6 +87,8 @@ tests/test_filelock.py::test_simple[new2/new3/c-str-UnixFileLock] PASSED tests/test_filelock.py::test_singleton_and_non_singleton_locks_are_distinct[SoftFileLock] PASSED tests/test_filelock.py::test_singleton_and_non_singleton_locks_are_distinct[UnixFileLock] PASSED tests/test_filelock.py::test_singleton_instance_tracking_is_unique_per_subclass[SoftFileLock] PASSED tests/test_filelock.py::test_singleton_instance_tracking_is_unique_per_subclass[UnixFileLock] PASSED tests/test_filelock.py::test_singleton_locks_are_deleted_when_no_external_references_exist[SoftFileLock] PASSED tests/test_filelock.py::test_singleton_locks_are_deleted_when_no_external_references_exist[UnixFileLock] PASSED tests/test_filelock.py::test_singleton_locks_are_distinct_per_lock_file[SoftFileLock] PASSED @@ -112,14 +115,14 @@ =============================== warnings summary =============================== tests/test_filelock.py::test_subclass_compatibility $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: <function BaseFileLock.__del__ at $(POINTER)> $(PYTHON_DIR)/vendor-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning: Exception ignored in: <function BaseFileLock.__del__ at $(POINTER)> Traceback (most recent call last): File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 317, in __del__ File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 327, in __del__ self.release(force=True) File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 280, in release File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 288, in release if self.is_locked: File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 190, in is_locked File "$(PROTO_DIR)$(PYTHON_DIR)/vendor-packages/filelock/_api.py", line 197, in is_locked return self._context.lock_file_fd is not None AttributeError: 'MySoftFileLock' object has no attribute '_context' @@ -132,7 +135,7 @@ Coverage HTML written to dir $(@D)/.tox/py$(PYV)/tmp/htmlcov Coverage XML written to file $(@D)/.tox/coverage.py$(PYV).xml Required test coverage of 76.0% reached. Total coverage: 98.67% ======== 83 passed, 20 skipped, 1 warning ======== Required test coverage of 76.0% reached. Total coverage: 98.71% ======== 85 passed, 20 skipped, 1 warning ======== py$(PYV): OK congratulations :)