Bumped dependencies.

This commit is contained in:
Patrick Lehmann
2025-06-16 12:16:45 +02:00
parent 034d27d4a3
commit 68f708d79c
7 changed files with 46 additions and 38 deletions

View File

@@ -1,20 +1,29 @@
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
from importlib.util import find_spec
from sys import path as sys_path from sys import path as sys_path
from os.path import abspath from os.path import abspath
from pathlib import Path from pathlib import Path
from json import loads
from pyTooling.Packaging import extractVersionInformation from pyTooling.Packaging import extractVersionInformation
# ==============================================================================
# Project configuration
# ==============================================================================
githubNamespace = "pyTooling"
githubProject = "Actions"
pythonProject = "pyDummy"
directoryName = pythonProject.replace('.', '/')
# ==============================================================================
# Project paths
# ==============================================================================
ROOT = Path(__file__).resolve().parent ROOT = Path(__file__).resolve().parent
sys_path.insert(0, abspath(".")) sys_path.insert(0, abspath("."))
sys_path.insert(0, abspath("..")) sys_path.insert(0, abspath(".."))
sys_path.insert(0, abspath("../pyDummy")) sys_path.insert(0, abspath(f"../{directoryName}"))
# sys_path.insert(0, abspath("_extensions"))
# ============================================================================== # ==============================================================================
@@ -23,11 +32,7 @@ sys_path.insert(0, abspath("../pyDummy"))
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
# built documents. # built documents.
githubNamespace = "pyTooling" packageInformationFile = Path(f"../{directoryName}/__init__.py")
githubProject = "Actions"
project = "pyDummy"
packageInformationFile = Path(f"../{project}/__init__.py")
versionInformation = extractVersionInformation(packageInformationFile) versionInformation = extractVersionInformation(packageInformationFile)
author = versionInformation.Author author = versionInformation.Author
@@ -105,7 +110,7 @@ html_last_updated_fmt = "%d.%m.%Y"
# Python settings # Python settings
# ============================================================================== # ==============================================================================
modindex_common_prefix = [ modindex_common_prefix = [
f"{project}." f"{pythonProject}."
] ]
# ============================================================================== # ==============================================================================
@@ -257,13 +262,13 @@ todo_link_only = True
# ============================================================================== # ==============================================================================
# report_unittest_testsuites = { # report_unittest_testsuites = {
# "src": { # "src": {
# "name": f"{project}", # "name": f"{pythonProject}",
# "xml_report": "../report/unit/unittest.xml", # "xml_report": "../report/unit/unittest.xml",
# } # }
# } # }
# report_codecov_packages = { # report_codecov_packages = {
# "src": { # "src": {
# "name": f"{project}", # "name": f"{pythonProject}",
# "json_report": "../report/coverage/coverage.json", # "json_report": "../report/coverage/coverage.json",
# "fail_below": 80, # "fail_below": 80,
# "levels": "default" # "levels": "default"
@@ -271,8 +276,8 @@ todo_link_only = True
# } # }
# report_doccov_packages = { # report_doccov_packages = {
# "src": { # "src": {
# "name": f"{project}", # "name": f"{pythonProject}",
# "directory": f"../{project}", # "directory": f"../{directoryName}",
# "fail_below": 80, # "fail_below": 80,
# "levels": "default" # "levels": "default"
# } # }
@@ -289,17 +294,17 @@ todo_link_only = True
# AutoAPI.Sphinx # AutoAPI.Sphinx
# ============================================================================== # ==============================================================================
autoapi_modules = { autoapi_modules = {
f"{project}": { f"{pythonProject}": {
"template": "package", "template": "package",
"output": project, "output": pythonProject,
"override": True "override": True
} }
} }
for directory in [mod for mod in Path(f"../{project}").iterdir() if mod.is_dir() and mod.name != "__pycache__"]: for directory in [mod for mod in Path(f"../{directoryName}").iterdir() if mod.is_dir() and mod.name != "__pycache__"]:
print(f"Adding module rule for '{project}.{directory.name}'") print(f"Adding module rule for '{pythonProject}.{directory.name}'")
autoapi_modules[f"{project}.{directory.name}"] = { autoapi_modules[f"{pythonProject}.{directory.name}"] = {
"template": "module", "template": "module",
"output": project, "output": pythonProject,
"override": True "override": True
} }

View File

@@ -1,6 +1,6 @@
-r ../requirements.txt -r ../requirements.txt
pyTooling ~= 8.4 pyTooling ~= 8.5
# Enforce latest version on ReadTheDocs # Enforce latest version on ReadTheDocs
sphinx ~= 8.2 sphinx ~= 8.2

View File

@@ -2,7 +2,7 @@
requires = [ requires = [
"setuptools >= 80.0", "setuptools >= 80.0",
"wheel ~= 0.45", "wheel ~= 0.45",
"pyTooling ~= 8.4" "pyTooling ~= 8.5"
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"

View File

@@ -1 +1 @@
pyTooling ~= 8.4 pyTooling ~= 8.5

View File

@@ -88,7 +88,7 @@ if ($build)
rm -Force .\build\bdist.win-amd64 rm -Force .\build\bdist.win-amd64
rm -Force .\build\lib rm -Force .\build\lib
Write-Host -ForegroundColor Yellow "[live][BUILD] Building $PackageName package as wheel ..." Write-Host -ForegroundColor Yellow "[live][BUILD] Building $PackageName package as wheel ..."
py -3.13 -m build --wheel py -3.13 -m build --wheel --no-isolation
Write-Host -ForegroundColor Yellow "[live][BUILD] Building wheel finished" Write-Host -ForegroundColor Yellow "[live][BUILD] Building wheel finished"
} }

View File

@@ -39,13 +39,16 @@ packageName = "pyDummy"
packageDirectory = packageName packageDirectory = packageName
packageInformationFile = Path(f"{packageDirectory}/__init__.py") packageInformationFile = Path(f"{packageDirectory}/__init__.py")
setup(**DescribePythonPackageHostedOnGitHub( setup(
packageName=packageName, **DescribePythonPackageHostedOnGitHub(
description="pyDummy is a test package to verify GitHub actions for Python projects.", packageName=packageName,
gitHubNamespace=gitHubNamespace, description="pyDummy is a test package to verify GitHub actions for Python projects.",
unittestRequirementsFile=Path("tests/requirements.txt"), gitHubNamespace=gitHubNamespace,
sourceFileWithVersion=packageInformationFile, unittestRequirementsFile=Path("tests/requirements.txt"),
dataFiles={ sourceFileWithVersion=packageInformationFile,
packageName: ["py.typed"] dataFiles={
} packageName: ["py.typed"]
)) },
debug=True
)
)

View File

@@ -1,13 +1,13 @@
-r ../requirements.txt -r ../requirements.txt
# Coverage collection # Coverage collection
Coverage ~= 7.8 Coverage ~= 7.9
# Test Runner # Test Runner
pytest ~= 8.3 pytest ~= 8.4
pytest-cov ~= 6.1 pytest-cov ~= 6.2
# Static Type Checking # Static Type Checking
mypy ~= 1.15 mypy ~= 1.16
typing_extensions ~= 4.13 typing_extensions ~= 4.13
lxml ~= 5.4 lxml ~= 5.4