Skip to content

Commit 9b3d063

Browse files
committed
Merge branch 'release/2.0.0'
2 parents 9d22cab + 3b7d5eb commit 9b3d063

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1345
-238
lines changed

.coveragerc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 47 deletions
This file was deleted.

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
extend-ignore = E203
33
max-line-length = 88
44
max-complexity = 10
5-
exclude = */migrations/*,.tox,.git,__pycache__,build,dist,.eggs,.egg-info
5+
exclude = */migrations/*,.tox,.git,__pycache__,build,dist,.eggs,.egg-info,.venv

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
version: 2
3+
updates:
4+
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ on: [push, pull_request]
55

66
jobs:
77
build:
8-
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
8+
name: |
9+
build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}, ${{ matrix.database-engine }})
910
runs-on: ubuntu-latest
1011

1112
strategy:
1213
fail-fast: false
1314
matrix:
1415
python-version: ['3.12', '3.13']
1516
django-version: ['5.2', 'dev']
17+
database-engine: ["mysql", "postgres"]
1618

1719
services:
1820
mysql:
@@ -23,6 +25,17 @@ jobs:
2325
ports:
2426
- 3306:3306
2527
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
28+
postgres:
29+
image: postgres:latest
30+
env:
31+
POSTGRES_PASSWORD: postgres
32+
options: >-
33+
--health-cmd pg_isready
34+
--health-interval 10s
35+
--health-timeout 5s
36+
--health-retries 5
37+
ports:
38+
- 5432:5432
2639

2740
steps:
2841
- name: Install pycups and words dependency
@@ -32,38 +45,39 @@ jobs:
3245
sudo apt-get install libcups2-dev wamerican
3346
3447
- uses: actions/checkout@v4
35-
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v5
48+
49+
- name: Install uv and set the python version
50+
uses: astral-sh/setup-uv@v6
3751
with:
3852
python-version: ${{ matrix.python-version }}
53+
enable-cache: true
3954

40-
- name: Get pip cache dir
41-
id: pip-cache
42-
run: |
43-
echo "dir=$(pip cache dir)" >>$GITHUB_OUTPUT
44-
45-
- name: Cache
46-
uses: actions/cache@v4
47-
with:
48-
path: ${{ steps.pip-cache.outputs.dir }}
49-
key:
50-
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}
51-
restore-keys: |
52-
${{ matrix.python-version }}-v1-
55+
# - name: Get uv cache dir
56+
# id: uv-cache
57+
# run: echo "dir=$(uv run pip cache dir)" >> $GITHUB_OUTPUT
58+
#
59+
# - name: Cache uv dependencies
60+
# uses: actions/cache@v4
61+
# with:
62+
# path: ${{ steps.uv-cache.outputs.dir }}
63+
# key: uv-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}-${{ hashFiles('**/tox.ini') }}
64+
# restore-keys: |
65+
# uv-${{ matrix.python-version }}-
5366

54-
- name: Install dependencies
67+
- name: Install tox
5568
run: |
56-
python -m pip install --upgrade pip
57-
python -m pip install -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/tox.txt
69+
uv tool install tox --with tox-uv
5870
71+
- name: Verify tox plugins
72+
run: uv run --active --group test --no-sources tox --version
5973

6074
- name: Tox tests
6175
run: |
62-
tox -v
76+
uv run --active --group test --no-sources tox
6377
env:
6478
DJANGO: ${{ matrix.django-version }}
6579

6680
- name: Upload coverage to Codecov
67-
uses: codecov/codecov-action@v3
81+
uses: codecov/codecov-action@v5
6882
with:
6983
name: Python ${{ matrix.python-version }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/*
12
_version.py
23
.project
34
.pydevproject

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
rev: 25.1.0
1414
hooks:
1515
- id: black
16-
language_version: python3.11
16+
language_version: python3.12
1717

1818
- repo: https://github.com/pycqa/flake8
1919
rev: 7.3.0
@@ -28,7 +28,7 @@ repos:
2828
- id: isort
2929

3030
- repo: https://github.com/pre-commit/pre-commit-hooks
31-
rev: v5.0.0
31+
rev: v6.0.0
3232
hooks:
3333
- id: requirements-txt-fixer
3434
files: requirements/.*\.txt$

.readthedocs.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version, and other tools you might need
9+
build:
10+
os: ubuntu-24.04
11+
tools:
12+
python: "3.13"
13+
14+
# Build documentation in the "docs/" directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
# Optionally, but recommended,
19+
# declare the Python requirements required to build your documentation
20+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
21+
22+
python:
23+
install:
24+
- requirements: docs/requirements.txt
25+
26+
# Build PDF & ePub
27+
formats:
28+
- epub
29+
- pdf

CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
2.0.0
3+
-----
4+
- build using uv
5+
- fix dependencies
6+
- add docs
7+
- bump django-revision dependency
8+
29
1.0.0
310
-----
411
- fix: check for update_fields is not none and add audit fields

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)