Commit graph

50 commits

Author SHA1 Message Date
Juro Oravec
ccf02fa316
chore: util to manage URLs in the codebase (#1179)
* chore: util to manage URLs in the codebase

* docs: mentiion validate_links and supported_versions in docs

* refactor: fix linter errors
2025-05-11 14:59:34 +02:00
Juro Oravec
0ed46e4d30
chore: add support for Django 5.2 and drop for 5.0 (#1092) 2025-04-06 11:57:41 +02:00
Juro Oravec
30f3739499
build: add support for py3.13 windows (#1055) 2025-03-22 13:09:58 +01:00
Juro Oravec
7dfcb447c4
feat: add decorator for writing component tests (#1008)
* feat: add decorator for writing component tests

* refactor: udpate changelog + update deps pins

* refactor: fix deps

* refactor: make cached_ref into generic and fix linter errors

* refactor: fix coverage testing

* refactor: use global var instead of env var for is_testing state
2025-03-02 19:46:12 +01:00
Juro Oravec
f36581ed86
feat: benchmarking (#999)
* feat: add benchmarking dashboard, CI hook on PR, and store lifetime results

* refactor: change python env to 3.13 in benchmarks

* refactor: add verbosity, use 3.11 for benchmarking

* fix: OSError: [Errno 7] Argument list too long

* refactor: add debug statements

* refactor: remove extraneous -e

* refactor: fix tests and linter errors

* fix: track main package in coverage

* refactor: fix test coverage testing

* refactor: fix repo owner name in benchmark on pushing comment

* refactor: add asv monkeypatch to docs workflow

* refactor: temporarily allow building docs in forks

* refactor: use py 3.13 for benchmarking

* refactor: run only a single benchmark for PRs to speed them up

* refactor: install asv in the docs build workflow

* refactor: use hatch docs env to generate benhcmarks in docs CI

* refactor: more trying

* refactor: move tests

* Add benchmark results for 0.137

* Trigger Build

* Add benchmark results for 0.138

* refactor: set constant machine name when benchmarking

* Add benchmark results for 0.139

* refactor: fix issue with paths too long

* Add benchmark results for 0.140

* docs: update comment

* refactor: remove test benchmarking data

* refactor: fix comment

* refactor: allow the benchmark workflow to write to PRs

* refactor: use personal access token to set up the PR benchmark bot

* refactor: split the benchmark PR flow into two to make it work with PRs from forks

* refactor: update deprecated actions/upload-artifact@v3 to v4

* refactor: fix missing directory in benchmarking workflow

* refactor: fix triggering of second workflow

* refactor: fix workflow finally?

* docs: add comments to cut-offs and direct people to benchmarks PR

---------

Co-authored-by: github-actions <github-actions@github.com>
2025-02-23 16:18:57 +01:00
Juro Oravec
b69c6e6624
feat: replacepython html parser djc-core-html-parser (#929)
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2025-01-29 14:24:25 +01:00
Juro Oravec
d585c0bcbb
Revert "build(deps): bump playwright from 1.48.0 to 1.49.0" (#820) 2024-12-04 21:19:52 +01:00
github-actions[bot]
8c6e1d9b37
Merge pull request #769 from EmilStenstrom/dependabot/pip/playwright-1.49.0
build(deps): bump playwright from 1.48.0 to 1.49.0
2024-12-04 20:45:50 +01:00
Juro Oravec
230ceee537
chore: update supported versions - add Python 3.13, Django 5.1 (#809)
* chore: update supported versions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-12-02 15:32:38 +01:00
Juro Oravec
e00e043306 chore: bump playwright 2024-11-25 19:38:20 +00:00
Juro Oravec
e169b230e3 chore: update tox.ini 2024-11-19 10:06:21 +00:00
Juro Oravec
aa903172a0 refactor: pin version of playwright in tests 2024-10-30 17:46:07 +01:00
Juro Oravec
849a869a66
feat: add JS dependency manager (#666)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-22 16:42:41 +02:00
Emil Stenström
3b810fbd76 Avoid building new wheel for each env. 2024-09-11 21:01:22 +02:00
Emil Stenström
8d9ea4b7e4 Minimize tox config and add black- 2024-09-11 21:01:22 +02:00
Emil Stenström
038d2c3e97 Increase minimum coverage to 97% 2024-08-25 12:33:57 +02:00
Juro Oravec
6478776269 chore: drop support for Django 3.2, 4.0, 4.1 2024-04-18 10:44:19 +02:00
Gabriel Dugny
84db2b7314
build: move to PEP517 and pyproject.toml, drop support for Py3.6 and Py3.7 (#417)
* chore: move to pyproject.toml

* chore: forced to drop Python 3.6 to upgrade

* chore: drop support for Python 3.6 and 3.7

* chore: remove old references to py36/py37

* chore: remove setup.py, replaced by pyproject.toml
2024-03-31 19:20:35 +02:00
Gabriel Dugny
a818f18423 fix: support legacy tox and setuptools for Python 3.6 2024-03-29 07:50:10 +01:00
Gabriel Dugny
44f984c84b fix: make tox use the wheel 2024-03-29 07:50:10 +01:00
Emil Stenström
5f30917664 Remove old comments. 2024-03-15 23:38:15 +01:00
Juro Oravec
b14dec9777
Add mypy support (#396), thanks @JuroOravec 2024-03-15 23:31:15 +01:00
Emil Stenström
926877d1d6 Make tox read from pyproject.toml too. 2024-02-21 22:38:06 +01:00
Emil Stenström
997ed52bb6 Lower coverage threshold to 93 because it's lower in CI. 2024-01-27 22:27:22 +01:00
Emil Stenström
4a7c248d83 Run coverage locally aswell. 2024-01-27 22:20:36 +01:00
Emil Stenström
db03e0dcbc Add coverage in CI. Pin to current 94%. 2024-01-27 22:08:32 +01:00
Emil Stenström
b8c6ebf4c4 Add coverage in CI. Pin to current 94%. 2024-01-27 22:04:32 +01:00
Emil Stenström
084a06fad8 Another way to comment to avoid Github error. 2024-01-27 13:48:13 +01:00
Emil Stenström
0778ec8e3b Creating a virtualenv for Python 3.6 requires older virtualenv version. 2024-01-27 13:44:08 +01:00
Emil Stenström
f75086115f Creating a virtualenv for Python 3.6 requires older virtualenv version. 2024-01-27 13:42:32 +01:00
Emil Stenström
8239359c0a Make py.test work on recent tox 2024-01-27 09:11:45 +01:00
Emil Stenström
99b0cbc67a Update django-components to support Python 3.12 and Django 5.0. 2023-12-09 13:41:34 +01:00
Emil Stenström
b1ea325c5e
Run tests for all officially supported Django/Python combos
This PR updates the CI to run against the same combinations of Django and Python that Django officially supports.

It additionally adds a new script, that can automate this dance the next time: You simply run the script, and copy the results to tox.ini and setup.py.
2023-05-03 22:01:25 +02:00
Emil Stenström
be243c2844 Try adding the django bits back again. 2023-04-04 21:00:35 +02:00
Emil Stenström
3db493f123 Specify fail_on_no_env = True. 2023-03-25 09:54:03 +01:00
Emil Stenström
89c3ac7407 Upgrade CI to latest version, and simplify tox.ini 2023-03-25 09:31:14 +01:00
Emil Stenström
f4c477e412 Update supported Django versions. 2022-07-14 10:18:03 +02:00
Emil Stenström
977d9a214a Add support for Django 3.2 (no code changes). 2021-04-18 15:49:23 +02:00
Emil Stenström
2c95b0930f Remove support for Python < 3.6 and Django < 2.2. 2021-02-12 21:10:33 +01:00
Emil Stenström
710a406a7b Tox-gh-actions does not support 3.4, so remove it. 2021-01-17 23:30:41 +01:00
Emil Stenström
0ecf1fc45b Add GitHub Action for running tests. 2021-01-17 23:25:56 +01:00
Emil Stenström
88fe2fc3b7 Add support for Python 3.9, Django 3.1 and drop unsupported combinations. 2020-12-14 20:44:23 +01:00
Emil Stenström
bf8fee70c3 Upgrade to latest version of isort. 2020-11-02 15:09:02 +01:00
Emil Stenström
ff2a674200 Add flake8 and isort to CI. 2020-06-07 08:46:06 +02:00
Emil Stenström
f3eb1d373e Upgrade tox environment to supprort django 3. 2020-02-08 10:30:10 +01:00
Emil Stenström
458b5383e0 Fix modern django compatibility. 2019-11-23 19:04:10 +01:00
Emil Stenström
d280fa84a8 Update tox to run against all valid python/django combination. 2019-11-23 18:26:37 +01:00
Ryan Hiebert
f435762773 Add Django 1.7 to the build matrix 2015-06-22 13:16:56 -05:00
Ryan Hiebert
0f52cb845e More clearly define support
This started out as a plan to support Django 1.7 and 1.8, and on all
current versions of Python. This turned into supporting Django 1.8 on
Python 2.7, 3.3, and 3.4 only.

The tests don't pass under Django 1.7 because 1.8 introduced new
settings for configuring templates. Because of this the install_requires
section of setup.py declares that it must be using Django 1.8+.

Python 3.3 support was added, since that's a supported version of Python
under Django 1.8.

Also added pytest-xdist to the tox dependencies, to support running

    tox -e py34 -- -f

in order to have it watch and rerun the tests in development.
2015-06-14 21:25:27 -05:00
Ryan Hiebert
bc2950e1b4 Use tox to test 2015-06-13 13:42:27 -05:00