Commit graph

67 commits

Author SHA1 Message Date
Juro Oravec
ca4e7f7f8b refactor: pin virtualenv to v20.30 to fix asv 2025-05-06 10:09:32 +00:00
dependabot[bot]
76a888aa11
build(deps): bump actions/create-github-app-token from 1 to 2
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1 to 2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-01 17:31:27 +00:00
Juro Oravec
eed15d32ab
Update tests.yml (#1137) 2025-04-20 00:02:28 +02:00
Juro Oravec
9f68f0f1a1
refactor: Fix path resolution relative to COMPONENTS.dirs + add CI test to ensure sampleproject works (#1075)
* refactor: Fix path resolution relative to COMPONENTS.dirs + add CI test to ensure sampleproject works

* refactor: fix compat with Windows by explicitly using utf8 encoding to read component files

* refactor: add missing components to tests

* docs: update changelog

* refactor: fix formatting
2025-03-31 16:09:37 +02:00
Juro Oravec
30f3739499
build: add support for py3.13 windows (#1055) 2025-03-22 13:09:58 +01:00
Juro Oravec
390211b86e
refactor: display verbose output for benchmark comparison (#1054)
* refactor: display verbose output for benchmark comparison

* refactor: use unique machine name for ci benchmarks
2025-03-21 10:44:43 +01:00
Juro Oravec
d0a42a2698
refactor: use github app instead of pushing benchmarks via PR (#1052)
* refactor: use github app instead of pushing benchmarks via PR

* refactor: update github app bot git email
2025-03-20 21:26:54 +01:00
Juro Oravec
a2aa743947
refactor: Wait for PR status checks when pushing benchmarks (#1050)
* refactor: skip PR status checks when pushing benchmarks

* refactor: wait for status checks
2025-03-20 16:43:50 +01:00
Juro Oravec
293b933aaa
refactor: fix docs workflow (#1048) 2025-03-20 16:12:44 +01:00
Juro Oravec
173537ef36
refactor: allow docs CI workflow to make PRs (#1046) 2025-03-20 14:34:49 +01:00
Juro Oravec
f54f3ccb0b
ci: Make a separate PR when pushing release benchmark data (#1045) 2025-03-19 12:54:50 +01:00
Juro Oravec
439fcf68e0
refactor: same PR number to a file to access it when posting a benchmark comment (#1029) 2025-03-17 13:03:30 +01:00
Juro Oravec
3418a527e0
refactor: enable debug iin pr-benchmark-comment.yml (#1001) 2025-03-03 19:48:36 +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
92f5497c74
refactor: change repo name and URL after org migration (#924) 2025-01-22 16:02:46 +01:00
Juro Oravec
e4246b681e refactor: Run CI tests in both unix and windows environments 2024-12-02 19:44:53 +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
4c2cb2f2c4
docs: Split README (#800)
* docs: Split README (#775) (#785)

* docs: add script to generate API reference from the source code (#788)

* refactor: test docs build, fix docs build flow

* refactor: update requirements

* refactor: rename changelog to release notes in docs
2024-12-02 09:54:59 +01:00
Juro Oravec
5fd45ab424
chore: Push dev to master to release v0.110 (#767)
* feat: skeleton of dependency manager backend (#688)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: selectolax update and tests cleanup (#702)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: move release notes to own file (#704)

* chore: merge changes from master (#705)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yassin Rakha <yaso2go@gmail.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
fix for nested slots (#698) (#699)

* refactor: remove joint {% component_dependencies %} tag (#706)

Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: split up utils file and move utils to util dir (#707)

* docs: Move docs inside src/ to allow imports in python scripts (#708)

* refactor: Docs prep 1 (#715)

* refactor: Document template tags (#716)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: pass slot fills in template via slots param (#719)

* chore: Merge master to dev (#729)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yassin Rakha <yaso2go@gmail.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
Co-authored-by: Tom Larsen <larsent@gmail.com>
fix for nested slots (#698) (#699)

* fix: Do not raise error if multiple slots with same name are flagged as default (#727)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: tag formatter - allow fwd slash in end tag (#730)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* refactor: Use lowercase names for registry settings (#731)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* docs: add docstrings (#732)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* feat: define settings as a data class for type hints, intellisense, and docs (#733)

* refactor: fix reload-on-change logic, expose autodiscover's dirs-getting logic, rename settings (#734)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* docs: document settings (#743)

* docs: document settings

* refactor: fix linter errors

* feat: passthrough slots and more (#758)

* feat: passthrough slots and more

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

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

* refactor: remove ComponentSlotContext.slots

* refactor: update comment

* docs: update changelog

* refactor: update docstrings

* refactor: document and test-cover more changes

* refactor: revert fill without name

* docs: update README

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* fix: apostrophes in tags (#765)

* refactor: fix merge error - duplicate code

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2024-11-25 09:41:57 +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
David Linke
97bc371f91 Clean up docs action 2024-09-07 12:34:36 +02:00
David Linke
9b2e83954d Add 2nd version specifier 2024-09-02 15:19:40 +02:00
David Linke
2abfb1dc9c Fix docs gh-action 2024-09-02 11:28:58 +02:00
David Linke
1efdff7daf Fix redirect to latest for mike 2.0 2024-08-25 16:41:27 +02:00
David Linke
2feb339387 Fix docs deployment to gh-pages. 2024-08-24 19:48:08 +02:00
Emil Stenström
36b8fcfbe6 Make sure we run on master. 2024-08-24 14:31:40 +02:00
Emil Stenström
3f38a25dd3 Try adding write permissions to action. 2024-08-24 14:02:43 +02:00
Gabriel Dugny
38b62e854b chore: add black in docs env 2024-08-24 11:23:24 +02:00
Gabriel Dugny
f56aa747c9 chore: upgrade docs CI 2024-08-24 11:23:24 +02:00
Gabriel Dugny
163b0941c2 chore: init docs 2024-08-24 11:23:24 +02:00
Emil Stenström
6f664cf4b1 Create automate-dependabot.yml
This workflow runs gh pr merge automatically on all PR's from dependabot. Fixes https://github.com/EmilStenstrom/django-components/issues/575
2024-08-16 15:59:28 +02:00
Emil Stenström
a9bc3a0ba1
Don't run status checks twice for new PR:s. 2024-08-14 21:09:04 +02:00
Emil Stenström
42b6785528
Update tests.yml 2024-07-12 11:41:32 +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
Emil Stenström
33bd14e75c Remove unnessesary debug from tox run. 2024-03-15 23:39:00 +01:00
Emil Stenström
c003c4be1b Use GitHub Actions with node20 to avoid warnings. 2024-01-27 22:12:54 +01:00
Emil Stenström
a13253d9e5 Add 3.12 to CI. 2023-12-09 13:43:29 +01:00
Emil Stenström
a1b5b73af5 Add back synchronize trigger again. 2023-05-18 09:38:35 +02: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
6fe22b27be
Update dependabot.yml
Update doc link which didn't work any more, and change interval to weekly to avoid some spam.
2023-04-16 21:28:16 +02:00
Emil Stenström
656011c2a4 Downgrade to Ubuntu 20 to get 3.6 support back. 2023-03-25 09:36:43 +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
d658fecf5c Remove contributors, they are already in the sidebar. 2023-03-24 21:47:15 +01:00
Emil Stenström
69660e31c5
Create .github/FUNDING.yml 2023-03-16 08:58:10 +01:00
Emil Stenström
23169876f9 Downgrade to ubuntu 20.04 to avoid breaking Python 3.6. 2022-12-13 12:19:22 +01:00
Emil Stenström
64b35c9860 Remove unused variable. 2022-08-11 10:15:00 +02:00
Emil Stenström
39fb7eda13 Update to latest version that fixes escapes. 2022-08-11 08:18:52 +02:00
Emil Stenström
12e39835e6 Update to latest version of contributor workflow. 2022-07-27 10:45:23 +02:00
Emil Stenström
d3d3c83c8a YAML converts 3.10 to 3.1 without quotes. 2022-07-14 10:22:11 +02:00
Emil Stenström
f4c477e412 Update supported Django versions. 2022-07-14 10:18:03 +02:00