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
23 changes: 9 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,25 @@ jobs:
- macos-latest

python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install
run: pip install -e .[test]
- name: Show Python version
run: python -c "import sys; print(sys.version)"

- name: Run tests
run: |
python --version
python -m webresource.tests
- name: Install environment
run: make install

- name: Run coverage
run: |
coverage run --source webresource -m webresource.tests
coverage report --fail-under=100
- name: Run tests an collect code coverage
run: make coverage
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
/.coverage
/.mxmake
/.ruff_cache
/CLAUDE.md
/build
/dist/
/docs/html/
/htmlcov/
/requirements-mxdev.txt
/venv
/venv/
45 changes: 43 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,49 @@
Changelog
=========

1.3 (unreleased)
----------------
2.0.0 (unreleased)
------------------

- Package Structure Refactoring

- Split monolithic _api.py (736 lines) into 7 semantic modules:

- config.py
- exceptions.py
- base.py
- resources.py
- groups.py
- resolver.py
- renderer.py

- Updated __init__.py with explicit __all__ exports
[rnix]

- Test Suite Reorganization

- Moved tests from webresource/tests.py to tests/ directory at package root
- Split into 8 focused test files matching the module structure
- Created tests/test_utils.py for shared test utilities
- Updated Makefile to use pytest tests

[rnix]

- Build System Modernization

- Migrated from setup.py to pyproject.toml with hatchling backend
- Python 3.10-3.14 support

[rnix]

- Python 2 Cleanup. Removed all Python 2 compatibility code (is_py3,
FileNotFoundError checks) [rnix]

- Type Hints

- Added comprehensive Python 3.10+ type hints to all production code
- Configured mypy in pyproject.toml with strict settings

[rnix]

- Do not wrap resource ``__repr__`` output in ``<>`` to render tracebacks
properly in browser.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
License
=======

Copyright (c) 2021-2024, Cone Contributors
Copyright (c) 2021-2025, Cone Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

Loading
Loading