rendercv: 2.7 -> 2.8
This commit is contained in:
@@ -1,42 +0,0 @@
|
||||
diff --git a/src/rendercv/cli/create_theme_command/create_theme_command.py b/src/rendercv/cli/create_theme_command/create_theme_command_fixed.py
|
||||
index 3812d5b..42a69db 100644
|
||||
--- a/src/rendercv/cli/create_theme_command/create_theme_command.py
|
||||
+++ b/src/rendercv/cli/create_theme_command/create_theme_command_fixed.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+import os
|
||||
import pathlib
|
||||
import textwrap
|
||||
from typing import Annotated
|
||||
@@ -35,11 +36,21 @@ def cli_command_create_theme(
|
||||
|
||||
copy_templates("typst", new_theme_folder)
|
||||
|
||||
+ # Explicit directory permissions
|
||||
+ pathlib.Path.chmod(new_theme_folder, 0o755)
|
||||
+ # Explicit files and sub-directories permissions recursively
|
||||
+ for root, directories, files in os.walk(new_theme_folder):
|
||||
+ for directory in directories:
|
||||
+ pathlib.Path.chmod(pathlib.Path(root) / directory, 0o755)
|
||||
+ for file in files:
|
||||
+ pathlib.Path.chmod(pathlib.Path(root) / file, 0o644)
|
||||
+
|
||||
# Create the __init__.py file for the new theme:
|
||||
create_init_file_for_theme(theme_name, new_theme_folder / "__init__.py")
|
||||
|
||||
# Build the panel
|
||||
- message = textwrap.dedent(f"""
|
||||
+ message = textwrap.dedent(
|
||||
+ f"""
|
||||
[green]✓[/green] Created your custom theme: [purple]./{theme_name}[/purple]
|
||||
|
||||
What you can do with this theme:
|
||||
@@ -52,7 +63,8 @@ def cli_command_create_theme(
|
||||
To use your theme, set in your YAML input file:
|
||||
[cyan] design:
|
||||
[cyan] theme: {theme_name}
|
||||
- """).strip("\n")
|
||||
+ """
|
||||
+ ).strip("\n")
|
||||
|
||||
print(
|
||||
rich.panel.Panel(
|
||||
@@ -6,14 +6,14 @@
|
||||
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "rendercv";
|
||||
version = "2.7";
|
||||
version = "2.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rendercv";
|
||||
repo = "rendercv";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-2ClS/RwfAhjo+bh1fTiir1YCVelDJPOjp+Z3GHVzF4E=";
|
||||
hash = "sha256-iYfUoSN5HiDsAwkx44KbmHPN+vcYAra1zyfxTwziYkI=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [ uv-build ];
|
||||
@@ -37,11 +37,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"phonenumbers"
|
||||
"markdown"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./fix_theme_directory_permissions.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
@@ -61,6 +56,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
"tests/renderer/test_pdf_png.py"
|
||||
"tests/cli/render_command/test_render_command.py"
|
||||
"tests/test_pyodide.py"
|
||||
"tests/test_generated_files.py"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
@@ -68,7 +64,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
meta = {
|
||||
description = "Typst-based CV/resume generator";
|
||||
homepage = "https://rendercv.com";
|
||||
changelog = "https://docs.rendercv.com/changelog/#27-march-6-2026";
|
||||
changelog = "https://docs.rendercv.com/changelog/#28-march-21-2026";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ theobori ];
|
||||
mainProgram = "rendercv";
|
||||
|
||||
Reference in New Issue
Block a user