forked from platformio/platformio-core
Merge tag 'v6.1.4' into develop
Bump version to 6.1.4
This commit is contained in:
@ -13,7 +13,7 @@ PlatformIO Core 6
|
|||||||
|
|
||||||
**A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.**
|
**A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.**
|
||||||
|
|
||||||
6.1.4 (2022-??-??)
|
6.1.4 (2022-08-12)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares <https://docs.platformio.org/en/latest/scripting/middlewares.html>`__ (`pull #4380 <https://github.com/platformio/platformio-core/pull/4380>`_)
|
* Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares <https://docs.platformio.org/en/latest/scripting/middlewares.html>`__ (`pull #4380 <https://github.com/platformio/platformio-core/pull/4380>`_)
|
||||||
|
2
docs
2
docs
Submodule docs updated: 1961fcd4a3...b38923e39b
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
VERSION = (6, 1, "4b4")
|
VERSION = (6, 1, 4)
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -18,6 +18,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from random import random
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import semantic_version
|
import semantic_version
|
||||||
@ -41,11 +42,11 @@ def test_download(isolated_pio_core):
|
|||||||
lm.set_log_level(logging.ERROR)
|
lm.set_log_level(logging.ERROR)
|
||||||
archive_path = lm.download(url, checksum)
|
archive_path = lm.download(url, checksum)
|
||||||
assert fs.calculate_file_hashsum("sha256", archive_path) == checksum
|
assert fs.calculate_file_hashsum("sha256", archive_path) == checksum
|
||||||
lm.cleanup_expired_downloads(time.time())
|
lm.cleanup_expired_downloads(random())
|
||||||
assert os.path.isfile(archive_path)
|
assert os.path.isfile(archive_path)
|
||||||
# test outdated downloads
|
# test outdated downloads
|
||||||
lm.set_download_utime(archive_path, time.time() - lm.DOWNLOAD_CACHE_EXPIRE - 1)
|
lm.set_download_utime(archive_path, time.time() - lm.DOWNLOAD_CACHE_EXPIRE - 1)
|
||||||
lm.cleanup_expired_downloads(time.time())
|
lm.cleanup_expired_downloads(random())
|
||||||
assert not os.path.isfile(archive_path)
|
assert not os.path.isfile(archive_path)
|
||||||
# check that key is deleted from DB
|
# check that key is deleted from DB
|
||||||
with open(lm.get_download_usagedb_path(), encoding="utf8") as fp:
|
with open(lm.get_download_usagedb_path(), encoding="utf8") as fp:
|
||||||
|
Reference in New Issue
Block a user