Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e2e4ba6
setup karma and rollup
lenadax Aug 16, 2021
a33c915
es6
zworkb Oct 2, 2021
b4cdeb9
reformat
zworkb Oct 2, 2021
ff4e790
fix bundle
zworkb Oct 2, 2021
f2a7ea6
Minor polishing
rnixx Oct 3, 2021
269b9fe
karma and rollup conf
lenadax Jan 21, 2022
623f169
housekeeping
lenadax Mar 14, 2022
89bfda9
update autoWatch config
lenadax Mar 17, 2022
5c17101
update deprecated $.on() method
lenadax May 2, 2022
65b63c2
housekeeping
lenadax May 5, 2022
d27a5b4
restore comment
lenadax May 6, 2022
f1bf460
add github tests
lenadax May 6, 2022
740ce08
add js action
lenadax May 10, 2022
e9eebff
Merge pull request #5 from conestack/js_action
rnixx May 11, 2022
e45b7bc
ensure correct location of node_modules
lenadax May 12, 2022
8edf700
"Restore bdajax compat"
rnixx May 20, 2022
f17dd26
"Simplify IIFE bundle outro"
rnixx May 20, 2022
66a6ae6
"Karma coverage validation script formatting"
rnixx May 20, 2022
46dd6aa
"Consistent naming when attaching yafowil widget instance to DOM elem"
rnixx May 20, 2022
ce9c386
"Register resources with webresource"
rnixx May 21, 2022
b2d947f
Update bundle
rnixx May 23, 2022
d2c909c
"Update webresource registration"
rnixx May 25, 2022
0e3efe6
"Add path to webresource groups"
rnixx May 25, 2022
82d17e3
"Adopt webresource registrations"
rnixx May 28, 2022
e6d26a5
"Test housekeeping"
rnixx May 29, 2022
3fc5a83
"Install webresource from repo for tests"
rnixx May 29, 2022
7eb5cb8
"Add resource tests"
rnixx May 30, 2022
2794a10
"dedicated widget import in tests"
rnixx May 30, 2022
47dfe85
Resource group name is widget name.
rnixx May 30, 2022
1789ea2
Move i18n script to scripts folder
rnixx May 30, 2022
362c39c
Changelog
rnixx May 15, 2023
28916ee
Preparing release 2.0a1
rnixx May 15, 2023
3763c96
Back to development: 2.0a2
rnixx May 15, 2023
4233a9f
use Image.LANCZOS instead of ANTIALIAS
lenadax Jun 29, 2023
91374a3
Merge pull request #6 from conestack/2.0_deprecation
rnixx Jul 3, 2023
d931337
Fix deprecated imports
rnixx Jul 19, 2023
ee76225
Use Image.Resampling.LANCZOS instead of Image.LANCZOS
rnixx Jul 19, 2023
9d8d7f2
Update changelog and package.json
rnixx May 23, 2024
c230cc1
Preparing release 2.0a2
rnixx May 23, 2024
11b782a
Back to development: 2.0a3
rnixx May 23, 2024
7e89734
mxmake setup
lenadax Oct 31, 2024
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
20 changes: 20 additions & 0 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: JS tests

on: [push]

jobs:
test:
name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install
run: |
corepack enable
make nodejs

- name: Run tests
run: make wtr
50 changes: 50 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Python tests

on: [push]

jobs:
test:
name: Test ${{ matrix.python }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

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

steps:
- uses: actions/checkout@v2

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

- name: Install
run: |
pip install wheel
pip install coverage
pip install https://github.com/conestack/webresource/archive/master.zip
pip install https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]

- name: Run tests
run: |
python --version
python -m pytest src/yafowil/widget/image/tests

- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/image --omit=src/yafowil/widget/image/example.py -m pytest src/yafowil/widget/image/tests
coverage report --fail-under=99
40 changes: 20 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
*~
*#*
*.egg-info
*.pyc
*.pyo
*.egg-info
/develop-eggs/
/parts/
/bin/
/eggs/
/downloads/
/var/
/.coverage
/.mxmake/
/coverage/
/dist/
/.installed.cfg
/.pydevproject
/.project
/.DS_Store
/.mr.developer.cfg
/src/yafowil/widget/image/testing/micro.png
/src/yafowil/widget/image/testing/cropped.png
/src/yafowil/widget/image/testing/landscape.png
/src/yafowil/widget/image/testing/portrait.png
/htmlcov/
/js/karma/
/node_modules/
/package-lock.json
/pnpm-lock.yaml
/py2/
/py3/
/pypy3/
/requirements-mxdev.txt
/src/yafowil/widget/image/images_tmp
/src/yafowil/widget/image/testing/crop_fitting_ls_18_30.png
/src/yafowil/widget/image/testing/crop_fitting_ls_30_18.png
/src/yafowil/widget/image/testing/crop_fitting_pt_18_30.png
Expand All @@ -27,8 +23,12 @@
/src/yafowil/widget/image/testing/crop_fitting_sq_40_50.png
/src/yafowil/widget/image/testing/crop_fitting_sq_48_40.png
/src/yafowil/widget/image/testing/crop_size_20_20.png
/src/yafowil/widget/image/testing/crop_size_20_40.png
/src/yafowil/widget/image/testing/crop_size_20_40_offset_5_3.png
/src/yafowil/widget/image/testing/crop_size_20_40.png
/src/yafowil/widget/image/testing/crop_size_40_20.png
/src/yafowil/widget/image/testing/crop_size_50_20_offset_5_0.png
/src/yafowil/widget/image/images_tmp
/src/yafowil/widget/image/testing/cropped.png
/src/yafowil/widget/image/testing/landscape.png
/src/yafowil/widget/image/testing/micro.png
/src/yafowil/widget/image/testing/portrait.png
/venv/
26 changes: 24 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
Changes
=======

1.6 (unreleased)
----------------
2.0a3 (unreleased)
------------------

- Nothing changed yet.


2.0a2 (2024-05-23)
------------------

- Fix deprecated imports.
[rnix]

- Use Image.Resampling.LANCZOS instead of ANTIALIAS.
[rnix]


2.0a1 (2023-05-15)
------------------

- Add ``webresource`` support.
[rnix]

- Rewrite JavaScript using ES6.
[rnix]

- Introduce ``rounddpi`` flag for image blueprint. Pillow, as of version 6.0,
no longer rounds reported DPI values for BMP, JPEG and PNG images, but image
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

Copyright (c) 2012-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021, Yafowil Contributors
Copyright (c) 2021-2024, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading
Loading