mirror of
https://github.com/Hopiu/bowser.git
synced 2026-03-17 03:20:24 +00:00
Benefits of libadwaita: - Modern, polished UI following GNOME Human Interface Guidelines - Professional HeaderBar with proper navigation button grouping - Better visual hierarchy and spacing - Consistent with modern GNOME applications - Built on GTK 4, same foundation as before Changes: - Replace Gtk.ApplicationWindow with Adw.ApplicationWindow - Use Gtk.HeaderBar for professional top bar with navigation buttons - Improve address bar presentation (placeholder text, better sizing) - Add CSS classes for consistent styling (linked, suggested-action, toolbar) - Better tooltip support for navigation buttons - Add visual frame around tabs bar - Improved status bar styling with toolbar class - Adw.init() called during window creation UI Improvements: - Navigation buttons (Back/Forward/Reload) now grouped with linked styling - Go button highlighted with suggested-action styling - Address bar uses placeholder text instead of default value - Better spacing and margins throughout - More professional appearance overall All tests passing (23/23 in core modules)
76 lines
1.5 KiB
TOML
76 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "bowser"
|
|
version = "0.0.1"
|
|
description = "Educational web browser from scratch"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = {text = "MIT"}
|
|
authors = [{name = "Bowser", email = "bowser@example.com"}]
|
|
dependencies = [
|
|
"PyGObject>=3.54.0", # GTK+ bindings for Python (includes Adwaita via GI)
|
|
"skia-python>=87.9", # Skia 2D graphics library
|
|
"Jinja2>=3.0", # Template engine for pages
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=9.0.0",
|
|
"pytest-cov>=7.0.0",
|
|
"black>=25.0",
|
|
"ruff>=0.9.0",
|
|
"mypy>=1.9.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
bowser = "main:main"
|
|
|
|
[tool.uv]
|
|
managed = true
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ["py311"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
select = ["E", "F", "W"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = false
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = [
|
|
"-ra",
|
|
"--strict-markers",
|
|
"--strict-config",
|
|
"--showlocals",
|
|
]
|
|
|
|
[tool.coverage.run]
|
|
source = ["src"]
|
|
omit = ["tests/*", "*/conftest.py"]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"raise AssertionError",
|
|
"raise NotImplementedError",
|
|
"if __name__ == .__main__.:",
|
|
"if TYPE_CHECKING:",
|
|
]
|