Skip to content

WIP: 2.0 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
3eb255d
add bootstrap 4 dist files
agitator May 12, 2020
8b956d5
disable theme for now
agitator May 12, 2020
c19b919
make submit of the form a real button
jensens May 12, 2020
39769c5
major 2
agitator May 12, 2020
a97b8d3
use button.class
agitator May 12, 2020
265ffd6
use btn-primary
agitator May 12, 2020
84c2f29
use new yafowil
jensens May 13, 2020
3590949
black and some basic bootstrap classe and macros
jensens May 13, 2020
cd94a76
version confusion
jensens May 13, 2020
150f6f8
bootstra 3 +4 in parallel
jensens May 18, 2020
a763b90
missing commit
jensens May 18, 2020
0b35ebd
more bootstrap 4: validation et al
jensens May 18, 2020
52a5329
checkboxes and radios
jensens Jul 3, 2020
6280091
fix select widget
jensens Jul 6, 2020
7295b3f
checkbox default
jensens Jul 6, 2020
3bf6aef
number and file are looking ok now.
jensens Jul 6, 2020
99230e8
valid/invalid styles
agitator Jul 10, 2020
df179a0
Add Bootstrap 5 (v5.0.0-alpha3)
agitator Nov 12, 2020
5d2ce78
Bootstrap 5 changes
agitator Nov 12, 2020
fcb7f3d
update form styles
agitator Dec 28, 2020
37d5182
Merge master
rnixx Aug 14, 2021
6ae4455
Recent distributions of bs 3, 4 amd 5. Remove configure entry point. …
rnixx Aug 15, 2021
2588ccd
There is actually no test suite
rnixx Aug 15, 2021
f3ebd0d
Do not ignore factory configuration if TESTRUN_MARKER is set. Use yaf…
rnixx Aug 16, 2021
c3b2354
Additionally declare resources with webresource
rnixx May 20, 2022
ea28488
"Register resources with webresource"
rnixx May 20, 2022
9bf1e42
"Update webresource registration"
rnixx May 25, 2022
5138d01
"Add path to webresource groups"
rnixx May 25, 2022
43dfc5a
"Adopt webresource registrations"
rnixx May 28, 2022
b9f23a2
Add some basic tests
rnixx May 28, 2022
4b3f24f
Resource tests
rnixx May 29, 2022
55effb4
Use correct theme name in bs3.configure_factory
rnixx May 29, 2022
161dc73
Resource group name is widget name.
rnixx May 30, 2022
14afe42
Version
rnixx May 15, 2023
f1d3670
Preparing release 2.0.0a1
rnixx May 15, 2023
ca47786
Back to development: 2.0.0a2
rnixx May 15, 2023
7dbbceb
Use mxmake
rnixx Feb 5, 2024
525c50d
Python3.7 only has 48% coverage
rnixx Feb 5, 2024
aa91169
fix CSS class for <select>
petschki Apr 25, 2024
179b644
Update BS5 resources to latest 5.3.3
petschki Apr 25, 2024
2357530
Update BS4 resources to latest 4.6.2
petschki Apr 25, 2024
170243c
exclude missing python versions on macos-latest
petschki Apr 25, 2024
ed5bf39
Merge branch 'master' into 2.0
petschki Apr 25, 2024
35aa5b4
Update changelog
rnixx Apr 30, 2024
eec06c3
Preparing release 2.0.0a2
rnixx Apr 30, 2024
a0ff9ff
Back to development: 2.0.0a3
rnixx Apr 30, 2024
3b297c5
Add mb-3 to field class in bootstrap 5
rnixx May 26, 2024
cbbdfba
Remove unused imports
rnixx May 26, 2024
d08e4ac
add text-light to btn-primary form buttons
lenadax Sep 13, 2024
b734ce7
add default margin between form save and cancel btn
lenadax Sep 13, 2024
dcd62db
Makefile setup
lenadax Nov 14, 2024
8425b60
fix github actions
lenadax Nov 14, 2024
4fa55c0
update changelog
lenadax Nov 14, 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
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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.9"
- "3.10"
- "3.11"
- "3.12"

exclude:
# excludes py3.7-py3.9 on macOS
- os: macos-latest
python: "3.7"
- os: macos-latest
python: "3.8"
- os: macos-latest
python: "3.9"
steps:
- uses: actions/checkout@v4

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

- name: Install
run: |
pip install -e .[test]

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

- name: Run coverage
run: |
coverage run --source=src/yafowil -m pytest src/yafowil/bootstrap/tests
coverage report -m --fail-under=48
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*~
*#*
*.pyc
*.egg-info
*.pyc
/.coverage
/.mxmake
/.ruff_cache
/build
/dist/
/htmlcov/
/requirements-mxdev.txt
/venv
40 changes: 37 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
Changes
=======

1.3.3 (unreleased)
------------------
2.0.0a3 (unreleased)
--------------------

- Add Makefile.
[lenadax]

- Configure tests to run with pytest.
[lenadax]


2.0.0a2 (2024-04-30)
--------------------

- Update BS4 resources to latest 4.6.2
[petschki]

- Update BS5 resources to latest 5.3.3
[petschki]

- Fix CSS class for <select>.
[petschki]


2.0.0a1 (2023-05-15)
--------------------

- Factory configuration and macro registration is no longer done automatically
due to the multi-theme feature. It must be configured in your code using
``yafowil.bootstrap``. In order to do so do
``from yafowil.bootstrap import configure_factory``. Next call it with the
name of the desired theme ``configure_factory('bootstrap3')``.
[jensens]

- Nothing changed yet.
- Add support for Bootstrap 4 and 5 using theme ``bootstrap[4|5]``.
The Bootstrap 3 theme is still available as ``bootstrap3``.
Latter provides a legacy fallback as ``bootstrap`` which will be removed in
future versions.
[jensens, agitator]


1.3.2 (2022-12-05)
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-2022, 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