diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d80d2d4..522ac4a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,8 +31,8 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - apt-get update -q - apt-get install -y libterm-readline-gnu-perl locales software-properties-common + apt update -q + apt install -y libterm-readline-gnu-perl locales software-properties-common locale-gen en_US.UTF-8 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime - name: Install dependencies @@ -42,8 +42,8 @@ jobs: add-apt-repository -y universe add-apt-repository -y ppa:deadsnakes/ppa add-apt-repository -y ppa:gift/dev - apt-get update -q - apt-get install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox + apt update -q + apt install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox - name: Run linter env: LANG: en_US.UTF-8 diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index 96908dc..19fc343 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -46,15 +46,15 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - apt-get update -q - apt-get install -y libterm-readline-gnu-perl locales software-properties-common + apt update -q + apt install -y libterm-readline-gnu-perl locales software-properties-common locale-gen en_US.UTF-8 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime - name: Install dependencies run: | add-apt-repository -y ppa:gift/dev - apt-get update -q - apt-get install -y build-essential python3 python3-build python3-dev python3-pip python3-setuptools python3-venv python3-wheel + apt update -q + apt install -y build-essential python3 python3-build python3-dev python3-pip python3-setuptools python3-venv python3-wheel - name: Run tests env: LANG: en_US.UTF-8 diff --git a/.github/workflows/test_docs.yml b/.github/workflows/test_docs.yml index 9895e6b..5d5969c 100644 --- a/.github/workflows/test_docs.yml +++ b/.github/workflows/test_docs.yml @@ -22,8 +22,8 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - apt-get update -q - apt-get install -y libterm-readline-gnu-perl locales software-properties-common + apt update -q + apt install -y libterm-readline-gnu-perl locales software-properties-common locale-gen en_US.UTF-8 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime - name: Install dependencies @@ -33,8 +33,8 @@ jobs: add-apt-repository -y universe add-apt-repository -y ppa:deadsnakes/ppa add-apt-repository -y ppa:gift/dev - apt-get update -q - apt-get install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox + apt update -q + apt install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox - name: Run tests env: LANG: en_US.UTF-8 diff --git a/.github/workflows/test_tox.yml b/.github/workflows/test_tox.yml index de80a7a..db1a615 100644 --- a/.github/workflows/test_tox.yml +++ b/.github/workflows/test_tox.yml @@ -32,8 +32,8 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - apt-get update -q - apt-get install -y libterm-readline-gnu-perl locales software-properties-common + apt update -q + apt install -y libterm-readline-gnu-perl locales software-properties-common locale-gen en_US.UTF-8 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime - name: Install dependencies @@ -43,8 +43,8 @@ jobs: add-apt-repository -y universe add-apt-repository -y ppa:deadsnakes/ppa add-apt-repository -y ppa:gift/dev - apt-get update -q - apt-get install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox + apt update -q + apt install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox - name: Run tests env: LANG: en_US.UTF-8 @@ -63,8 +63,8 @@ jobs: env: DEBIAN_FRONTEND: noninteractive run: | - apt-get update -q - apt-get install -y libterm-readline-gnu-perl locales software-properties-common + apt update -q + apt install -y libterm-readline-gnu-perl locales software-properties-common locale-gen en_US.UTF-8 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime - name: Install dependencies @@ -74,8 +74,8 @@ jobs: add-apt-repository -y universe add-apt-repository -y ppa:deadsnakes/ppa add-apt-repository -y ppa:gift/dev - apt-get update -q - apt-get install -y build-essential curl git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox + apt update -q + apt install -y build-essential curl git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox - name: Run tests with coverage env: LANG: en_US.UTF-8 diff --git a/docs/sources/user/Installation-instructions.md b/docs/sources/user/Installation-instructions.md index d1065c3..3744603 100644 --- a/docs/sources/user/Installation-instructions.md +++ b/docs/sources/user/Installation-instructions.md @@ -38,8 +38,8 @@ sudo add-apt-repository ppa:gift/stable Update and install dfDateTime: ```bash -sudo apt-get update -sudo apt-get install python3-dfdatetime +sudo apt update +sudo apt install python3-dfdatetime ``` ## Windows diff --git a/pyproject.toml b/pyproject.toml index 5d2f4c9..2314a99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "dfdatetime" -version = "20260515" +version = "20260521" description = "Digital Forensics date and time (dfDateTime)" maintainers = [ { name = "Log2Timeline maintainers", email = "log2timeline-maintainers@googlegroups.com" }, diff --git a/utils/dependencies.py b/utils/dependencies.py index 9e733f8..1f7d1ed 100644 --- a/utils/dependencies.py +++ b/utils/dependencies.py @@ -137,12 +137,12 @@ def __init__( dependency_reader = DependencyDefinitionReader() - with open(dependencies_file, "r", encoding="utf-8") as file_object: + with open(dependencies_file, encoding="utf-8") as file_object: for dependency in dependency_reader.Read(file_object): self.dependencies[dependency.name] = dependency if os.path.exists(test_dependencies_file): - with open(test_dependencies_file, "r", encoding="utf-8") as file_object: + with open(test_dependencies_file, encoding="utf-8") as file_object: for dependency in dependency_reader.Read(file_object): self._test_dependencies[dependency.name] = dependency