Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['24.04']
version: ['26.04']
container:
image: ubuntu:${{ matrix.version }}
steps:
Expand Down
6 changes: 2 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include ACKNOWLEDGEMENTS AUTHORS LICENSE README
include ACKNOWLEDGEMENTS AUTHORS LICENSE README.md
include dependencies.ini run_tests.py
include requirements.txt test_requirements.txt
exclude .gitignore
exclude *.pyc
recursive-include config *
Expand All @@ -10,6 +9,5 @@ recursive-include tools *.py
recursive-exclude tools *.pyc
recursive-include test_data *
# The test scripts are not required in a binary distribution package they
# are considered source distribution files and excluded in find_package()
# in setup.py.
# are considered source distribution files and excluded by find_package().
recursive-include tests *.py
File renamed without changes.
24 changes: 12 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
environment:
matrix:
- DESCRIPTION: "Run tests on Windows with 32-bit Python 3.12"
- DESCRIPTION: "Run tests on Windows with 32-bit Python 3.14"
MACHINE_TYPE: "x86"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312"
PYTHON_VERSION: "3.12"
PYTHON: "C:\\Python314"
PYTHON_VERSION: "3.14"
L2TBINARIES_TRACK: "dev"
TARGET: tests
- DESCRIPTION: "Run tests on Windows with 64-bit Python 3.12"
- DESCRIPTION: "Run tests on Windows with 64-bit Python 3.14"
MACHINE_TYPE: "amd64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312-x64"
PYTHON_VERSION: "3.12"
PYTHON: "C:\\Python314-x64"
PYTHON_VERSION: "3.14"
L2TBINARIES_TRACK: "dev"
TARGET: tests
- DESCRIPTION: "Build wheel on Windows with 32-bit Python 3.12"
- DESCRIPTION: "Build wheel on Windows with 32-bit Python 3.14"
MACHINE_TYPE: "amd64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312-x64"
PYTHON_VERSION: "3.12"
PYTHON: "C:\\Python314-x64"
PYTHON_VERSION: "3.14"
L2TBINARIES_TRACK: "dev"
TARGET: wheel
- DESCRIPTION: "Build wheel on Windows with 64-bit Python 3.12"
- DESCRIPTION: "Build wheel on Windows with 64-bit Python 3.14"
MACHINE_TYPE: "amd64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PYTHON: "C:\\Python312-x64"
PYTHON_VERSION: "3.12"
PYTHON: "C:\\Python314-x64"
PYTHON_VERSION: "3.14"
L2TBINARIES_TRACK: "dev"
TARGET: wheel
- DESCRIPTION: "Run tests on Mac OS with Python 3.14"
Expand Down
34 changes: 23 additions & 11 deletions config/docker/build_dpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,36 @@
# Fail on error.
set -e

GID=$(id -g);
GID=$(id -g)

L2TBUILDS_DIRECTORY="${HOME}/Projects/l2tbuilds";
GNUPG_DIRECTORY="${HOME}/Projects/l2tbuilds-gnupg";
L2TBUILDS_DIRECTORY="${HOME}/Projects/l2tbuilds"
GNUPG_DIRECTORY="${HOME}/Projects/l2tbuilds-gnupg"

cd config/docker;
cd config/docker

mkdir -p "${L2TBUILDS_DIRECTORY}/dpkg";
mkdir -p "${L2TBUILDS_DIRECTORY}/dpkg-source";
mkdir -p "${L2TBUILDS_DIRECTORY}/dpkg"
mkdir -p "${L2TBUILDS_DIRECTORY}/dpkg-source"

# Build the l2tbuilds Ubuntu Docker image.
docker build -f l2tbuilds_ubuntu.Dockerfile --force-rm --no-cache -t log2timeline/l2tbuilds_ubuntu . ;
docker build \
-f l2tbuilds_ubuntu.Dockerfile \
--force-rm \
--no-cache \
-t log2timeline/l2tbuilds_ubuntu .

if test -d "${GNUPG_DIRECTORY}";
if test -d "${GNUPG_DIRECTORY}"
then
# Run the container in interactive mode ("run -it") to use gpg-agent to sign the builds
docker run -it -u ${UID}:${GID} -v "${GNUPG_DIRECTORY}:/home/ubuntu/.gnupg:z" -v "${L2TBUILDS_DIRECTORY}:/home/ubuntu/l2tbuilds:z" log2timeline/l2tbuilds_ubuntu
docker run \
-it \
-u ${UID}:${GID} \
-v "${GNUPG_DIRECTORY}:/home/ubuntu/.gnupg:z" \
-v "${L2TBUILDS_DIRECTORY}:/home/ubuntu/l2tbuilds:z" \
log2timeline/l2tbuilds_ubuntu
else
docker run -u ${UID}:${GID} -v "${L2TBUILDS_DIRECTORY}:/home/ubuntu/l2tbuilds:z" log2timeline/l2tbuilds_ubuntu /bin/bash -c "(cd l2tdevtools && ./utils/build_dpkg.sh --preset plaso)"
docker run \
-u ${UID}:${GID} \
-v "${L2TBUILDS_DIRECTORY}:/home/ubuntu/l2tbuilds:z" \
log2timeline/l2tbuilds_ubuntu \
/bin/bash -c "(cd l2tdevtools && ./utils/build_dpkg.sh --preset plaso)"
fi

33 changes: 25 additions & 8 deletions config/docker/build_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,34 @@
# Fail on error.
set -e

GID=$(id -g);
GID=$(id -g)

L2TBUILDS_DIRECTORY="${HOME}/Projects/l2tbuilds";
L2TBUILDS_DIRECTORY="${HOME}/Projects/l2tbuilds"

cd config/docker;
cd config/docker

mkdir -p "${L2TBUILDS_DIRECTORY}/rpm";
mkdir -p "${L2TBUILDS_DIRECTORY}/srpm";
mkdir -p "${L2TBUILDS_DIRECTORY}/rpm"
mkdir -p "${L2TBUILDS_DIRECTORY}/srpm"

# Build the l2tbuilds Fedora Docker image.
docker build -f l2tbuilds_fedora.Dockerfile --force-rm --no-cache -t log2timeline/l2tbuilds_fedora . ;
docker run -it -u ${UID}:${GID} -v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z" log2timeline/l2tbuilds_fedora /bin/bash
docker build \
--build-arg GID=${GID} \
--build-arg UID=${UID} \
-f l2tbuilds_fedora.Dockerfile \
--force-rm \
--no-cache \
-t log2timeline/l2tbuilds_fedora \
.

# docker run -u ${UID}:${GID} -v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z" log2timeline/l2tbuilds_fedora /bin/bash -c "(cd l2tdevtools && ./utils/build_dpkg.sh --preset plaso)"
docker run \
-it \
-u ${UID}:${GID} \
-v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z" \
log2timeline/l2tbuilds_fedora \
/bin/bash

# docker run \
# -u ${UID}:${GID}
# -v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z"
# log2timeline/l2tbuilds_fedora
# /bin/bash -c "(cd l2tdevtools && ./utils/build_rpm.sh --preset plaso)"
13 changes: 11 additions & 2 deletions config/docker/l2tbuilds_fedora.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM fedora:42
FROM fedora:43

# Create container with:
# docker build -f l2tbuilds_fedora.Dockerfile --force-rm --no-cache -t log2timeline/l2tbuilds_fedora .

ARG UID=1000
ARG GID=1000

RUN dnf install -y \
@development-tools \
autoconf \
Expand All @@ -22,6 +25,12 @@ RUN dnf install -y \
python3-setuptools \
python3-wheel

RUN groupadd --gid ${GID} build && \
useradd --create-home --gid ${GID} --shell /bin/bash --uid ${UID} build

# Set up the l2tdevtools source and build directories
WORKDIR /home/build/
WORKDIR /home/build

USER build

RUN git clone https://github.com/log2timeline/l2tdevtools.git
19 changes: 10 additions & 9 deletions config/docker/l2tbuilds_ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN apt-get -y update && \
apt-get -y install apt-transport-https apt-utils && \
apt-get -y install libterm-readline-gnu-perl software-properties-common && \
apt-get -y upgrade && \
apt-get -y install \
locales \
pinentry-tty && \
apt-get -y install --no-install-recommends \
autoconf \
automake \
Expand Down Expand Up @@ -38,9 +41,7 @@ RUN apt-get -y update && \
libssl-dev \
libtool \
libyaml-dev \
locales \
pkg-config \
pinentry-tty \
pybuild-plugin-pyproject \
python3-all \
python3-all-dev \
Expand All @@ -63,16 +64,16 @@ RUN apt-get -y update && \
tox-current-env && \
apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/*

# Set terminal to UTF-8 by default
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
# Set terminal to UTF-8 by default and changes pinentry to use TTY
RUN locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 && \
update-alternatives --set pinentry /usr/bin/pinentry-tty
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8

# Changes pinentry to use TTY
RUN update-alternatives --set pinentry /usr/bin/pinentry-tty

# Set up the l2tdevtools source and build directories
USER ubuntu
WORKDIR /home/ubuntu

USER ubuntu

RUN git clone https://github.com/log2timeline/l2tdevtools.git
17 changes: 0 additions & 17 deletions data/dpkg_templates/mans-to-es-rules

This file was deleted.

2 changes: 1 addition & 1 deletion data/pyinstaller/make_release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ New-Item -ItemType "directory" -Path "${DistPath}\licenses"
Copy-Item -Force ACKNOWLEDGEMENTS "${DistPath}"
Copy-Item -Force AUTHORS "${DistPath}"
Copy-Item -Force LICENSE "${DistPath}"
Copy-Item -Force README "${DistPath}"
Copy-Item -Force README.md "${DistPath}"

Copy-Item -Force -Recurse "dist\image_export\*" "${DistPath}"
Copy-Item -Force -Recurse "dist\log2timeline\*" "${DistPath}"
Expand Down
4 changes: 2 additions & 2 deletions data/rpm_templates/artifacts.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ rm -rf %{{buildroot}}

%files -n %{{name}}-data
%license LICENSE
%doc ACKNOWLEDGEMENTS AUTHORS README
%doc ACKNOWLEDGEMENTS AUTHORS README.md
%{{_datadir}}/%{{name}}/*

%files -n python3-%{{name}}
%license LICENSE
%doc README
%doc README.md
%{{python3_sitelib}}/artifacts
%{{python3_sitelib}}/artifacts*.egg-info

Expand Down
4 changes: 2 additions & 2 deletions data/rpm_templates/plaso.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ rm -rf %{{buildroot}}

%files -n %{{name}}-data
%license LICENSE
%doc ACKNOWLEDGEMENTS AUTHORS README
%doc ACKNOWLEDGEMENTS AUTHORS README.md
%{{_datadir}}/%{{name}}/*

%files -n python3-%{{name}}
%license LICENSE
%doc README
%doc README.md
%{{python3_sitelib}}/plaso
%{{python3_sitelib}}/plaso*.egg-info

Expand Down
2 changes: 1 addition & 1 deletion data/templates/check_dependencies-with_url.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
${shebang}
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Script to check for the availability and version of dependencies."""

Expand Down
2 changes: 1 addition & 1 deletion data/templates/check_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
${shebang}
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Script to check for the availability and version of dependencies."""

Expand Down
2 changes: 1 addition & 1 deletion data/templates/github_actions/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['24.04']
version: ['26.04']
container:
image: ubuntu:$${{ matrix.version }}
steps:
Expand Down
10 changes: 0 additions & 10 deletions data/templates/pyproject.toml

This file was deleted.

3 changes: 3 additions & 0 deletions data/templates/pyproject.toml/header.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
16 changes: 16 additions & 0 deletions data/templates/pyproject.toml/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

[project]
name = "${python_module_name}"
version = "${version}"
description = "${description_short}"
maintainers = [
{ name = "${maintainer_name}", email = "${maintainer_email}" },
]
license = "Apache-2.0"
license-files = ["ACKNOWLEDGEMENTS", "AUTHORS", "LICENSE"]
readme = "${readme_file}"
classifiers = [
"${development_status}",
"Programming Language :: Python",
]
requires-python = ">=3.10"
5 changes: 5 additions & 0 deletions data/templates/pyproject.toml/setuptools.packages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[tool.setuptools.packages.find]
where = ["."]
include = ["${python_module_name}"]
exclude = ["docs", "tests", "tests.*", "utils"]
25 changes: 0 additions & 25 deletions data/templates/setup.cfg/metadata

This file was deleted.

4 changes: 0 additions & 4 deletions data/templates/setup.cfg/options_entry_points

This file was deleted.

4 changes: 0 additions & 4 deletions data/templates/setup.cfg/options_package_data

This file was deleted.

8 changes: 0 additions & 8 deletions data/templates/setup.cfg/options_packages_find

This file was deleted.

2 changes: 0 additions & 2 deletions data/templates/setup.cfg/options_scripts

This file was deleted.

Loading