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
6 changes: 2 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
include ACKNOWLEDGEMENTS AUTHORS LICENSE README
include ACKNOWLEDGEMENTS AUTHORS LICENSE README.md
include dependencies.ini run_tests.py utils/__init__.py utils/dependencies.py
include utils/check_dependencies.py
include requirements.txt test_requirements.txt
exclude .gitignore
exclude *.pyc
recursive-include config *
recursive-exclude dfdatetime *.pyc
# 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.
4 changes: 2 additions & 2 deletions config/dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dfdatetime (20251124-1) unstable; urgency=low
dfdatetime (20251125-1) unstable; urgency=low

* Auto-generated

-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Mon, 24 Nov 2025 13:07:20 +0100
-- Log2Timeline maintainers <log2timeline-maintainers@googlegroups.com> Tue, 25 Nov 2025 12:19:10 +0100
2 changes: 1 addition & 1 deletion dfdatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
from dfdatetime import webkit_time


__version__ = '20251124'
__version__ = '20251125'
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "dfdatetime"
version = "20251125"
description = "Digital Forensics date and time (dfDateTime)"
maintainers = [
{ name = "Log2Timeline maintainers", email = "log2timeline-maintainers@googlegroups.com" },
]
license = "Apache-2.0"
license-files = ["ACKNOWLEDGEMENTS", "AUTHORS", "LICENSE"]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
]
requires-python = ">=3.10"

[project.urls]
Documentation = "https://dfdatetime.readthedocs.io/en/latest"
Homepage = "https://github.com/log2timeline/dfdatetime"
Repository = "https://github.com/log2timeline/dfdatetime"

[tool.setuptools.packages.find]
where = ["."]
include = ["dfdatetime"]
exclude = ["docs", "tests", "tests.*", "utils"]
Empty file removed requirements.txt
Empty file.
33 changes: 0 additions & 33 deletions setup.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

Empty file removed test_requirements.txt
Empty file.
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ passenv =
setenv =
PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
-rtest_requirements.txt
coverage: coverage
wheel:
build
Expand Down Expand Up @@ -43,10 +41,8 @@ passenv =
setenv =
PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
-rtest_requirements.txt
pylint >= 3.3.0, < 3.4.0
setuptools >= 65
commands =
pylint --version
pylint --rcfile=.pylintrc dfdatetime setup.py tests
pylint --rcfile=.pylintrc dfdatetime tests
2 changes: 1 addition & 1 deletion utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DependencyDefinition(object):
skip_check (bool): True if the dependency should be skipped by the
CheckDependencies or CheckTestDependencies methods of DependencyHelper.
skip_requires (bool): True if the dependency should be excluded from
requirements.txt or setup.py install_requires.
pyproject.toml dependencies.
version_property (str): name of the version attribute or function.
"""

Expand Down
10 changes: 5 additions & 5 deletions utils/update_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# Script that makes changes in preparation of a new release, such as updating
# the version and documentation.

EXIT_FAILURE=1;
EXIT_SUCCESS=0;
EXIT_FAILURE=1
EXIT_SUCCESS=0

VERSION=$(date -u +"%Y%m%d")

# Update the Python module version.
sed "s/__version__ = '[0-9]*'/__version__ = '${VERSION}'/" -i dfdatetime/__init__.py

# Update the version in the setuptools configuration.
sed "s/version = [0-9]*/version = ${VERSION}/" -i setup.cfg
# Update the version in the pyproject configuration.
sed "s/version = \"[0-9]*\"/version = \"${VERSION}\"/" -i pyproject.toml

# Ensure shebangs of Python scripts are consistent.
find . -name \*.py -exec sed '1s?^#!.*$?#!/usr/bin/env python3?' -i {} \;
Expand All @@ -31,5 +31,5 @@ EOT
# Regenerate the API documentation.
tox -edocs

exit ${EXIT_SUCCESS};
exit ${EXIT_SUCCESS}