edc-vitals 0.1.10__tar.gz → 0.1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.github/workflows/build.yml +11 -2
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.pre-commit-config.yaml +6 -6
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/MANIFEST.in +1 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/PKG-INFO +4 -8
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/model_mixins/blood_pressure_model_mixin.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/model_mixins/weight_height_bmi_model_mixin.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/blood_pressure.py +0 -2
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/heart_rate.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/height.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/respiratory_rate.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/temperature.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/waist_circumference.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/weight.py +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/models.py +0 -4
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals.egg-info/PKG-INFO +4 -8
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals.egg-info/SOURCES.txt +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/pyproject.toml +14 -17
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/setup.cfg +3 -7
- edc-vitals-0.1.10/VERSION +0 -1
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.coveragerc +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.editorconfig +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.gitignore +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/.yamllint +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/AUTHORS +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/CHANGES +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/LICENSE +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/README.rst +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/codecov.yml +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/apps.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/form_validators/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/form_validators/blood_pressure_form_validator_mixin.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/form_validators/weight_height_bmi_form_validator_mixin.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/migrations/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/model_mixins/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/models/fields/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-aes-local.key +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-aes-restricted.key +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-rsa-local-private.pem +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-rsa-local-public.pem +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-rsa-restricted-private.pem +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-rsa-restricted-public.pem +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-salt-local.key +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-salt-restricted.key +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/__init__.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/test_blood_pressure.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/test_heart_rate.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/test_respiratory_rate.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/test_temperature.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/tests/test_weight_height_bmi.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/urls.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/utils.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/validators.py +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals.egg-info/dependency_links.txt +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals.egg-info/not-zip-safe +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals.egg-info/top_level.txt +0 -0
- {edc-vitals-0.1.10 → edc-vitals-0.1.12}/runtests.py +0 -0
@@ -11,8 +11,17 @@ jobs:
|
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
|
-
python-version: ['3.
|
15
|
-
django-version: ['
|
14
|
+
python-version: ['3.11']
|
15
|
+
django-version: ['4.2', 'dev']
|
16
|
+
services:
|
17
|
+
mysql:
|
18
|
+
image: mysql:latest
|
19
|
+
env:
|
20
|
+
MYSQL_DATABASE: mysql
|
21
|
+
MYSQL_ROOT_PASSWORD: mysql
|
22
|
+
ports:
|
23
|
+
- 3306:3306
|
24
|
+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
16
25
|
|
17
26
|
steps:
|
18
27
|
- name: Install pycups and words dependency
|
@@ -3,27 +3,27 @@ exclude: tests/etc/user-*
|
|
3
3
|
|
4
4
|
repos:
|
5
5
|
- repo: https://github.com/PyCQA/bandit
|
6
|
-
rev: 1.7.
|
6
|
+
rev: 1.7.5
|
7
7
|
hooks:
|
8
8
|
- id: bandit
|
9
9
|
args:
|
10
10
|
- "-x *test*.py"
|
11
11
|
|
12
12
|
- repo: https://github.com/psf/black
|
13
|
-
rev:
|
13
|
+
rev: 23.9.1
|
14
14
|
hooks:
|
15
15
|
- id: black
|
16
|
-
language_version: python3.
|
16
|
+
language_version: python3.11
|
17
17
|
|
18
18
|
- repo: https://github.com/pycqa/flake8
|
19
|
-
rev: 6.
|
19
|
+
rev: 6.1.0
|
20
20
|
hooks:
|
21
21
|
- id: flake8
|
22
22
|
args:
|
23
23
|
- "--config=setup.cfg"
|
24
24
|
|
25
25
|
- repo: https://github.com/PyCQA/isort
|
26
|
-
rev: 5.
|
26
|
+
rev: 5.12.0
|
27
27
|
hooks:
|
28
28
|
- id: isort
|
29
29
|
|
@@ -42,7 +42,7 @@ repos:
|
|
42
42
|
- id: detect-private-key
|
43
43
|
|
44
44
|
- repo: https://github.com/adrienverge/yamllint
|
45
|
-
rev: v1.
|
45
|
+
rev: v1.32.0
|
46
46
|
hooks:
|
47
47
|
- id: yamllint
|
48
48
|
args:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: edc-vitals
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.12
|
4
4
|
Summary: Classes for BP, weight, etc for clinicedc/edc projects
|
5
5
|
Home-page: https://github.com/clinicedc/edc-vitals
|
6
6
|
Author: Erik van Widenfelt
|
@@ -9,17 +9,13 @@ License: GPL license, see LICENSE
|
|
9
9
|
Keywords: django edc vitals,clinicedc,clinical trials
|
10
10
|
Classifier: Environment :: Web Environment
|
11
11
|
Classifier: Framework :: Django
|
12
|
-
Classifier: Framework :: Django ::
|
13
|
-
Classifier: Framework :: Django :: 4.0
|
14
|
-
Classifier: Framework :: Django :: 4.1
|
12
|
+
Classifier: Framework :: Django :: 4.2
|
15
13
|
Classifier: Intended Audience :: Developers
|
16
14
|
Classifier: Intended Audience :: Science/Research
|
17
15
|
Classifier: Operating System :: OS Independent
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
19
|
-
Classifier: Programming Language :: Python :: 3.9
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
21
17
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
22
|
-
Requires-Python: >=3.
|
18
|
+
Requires-Python: >=3.11
|
23
19
|
Description-Content-Type: text/x-rst
|
24
20
|
License-File: LICENSE
|
25
21
|
License-File: AUTHORS
|
@@ -3,7 +3,6 @@ from django.db import models
|
|
3
3
|
|
4
4
|
|
5
5
|
class SystolicPressureField(models.IntegerField):
|
6
|
-
|
7
6
|
description = "Systolic pressure"
|
8
7
|
|
9
8
|
def __init__(self, *args, verbose_name=None, **kwargs):
|
@@ -21,7 +20,6 @@ class SystolicPressureField(models.IntegerField):
|
|
21
20
|
|
22
21
|
|
23
22
|
class DiastolicPressureField(models.IntegerField):
|
24
|
-
|
25
23
|
description = "Diastolic pressure"
|
26
24
|
|
27
25
|
def __init__(self, *args, verbose_name=None, **kwargs):
|
@@ -14,7 +14,6 @@ class BloodPressure(BloodPressureModelMixin, models.Model):
|
|
14
14
|
|
15
15
|
|
16
16
|
class HeartRate(models.Model):
|
17
|
-
|
18
17
|
heart_rate = HeartRateField(
|
19
18
|
null=True,
|
20
19
|
blank=True,
|
@@ -22,7 +21,6 @@ class HeartRate(models.Model):
|
|
22
21
|
|
23
22
|
|
24
23
|
class RespiratoryRate(models.Model):
|
25
|
-
|
26
24
|
respiratory_rate = RespiratoryRateField(
|
27
25
|
null=True,
|
28
26
|
blank=True,
|
@@ -34,7 +32,6 @@ class SimpleBloodPressure(SimpleBloodPressureModelMixin, models.Model):
|
|
34
32
|
|
35
33
|
|
36
34
|
class Temperature(models.Model):
|
37
|
-
|
38
35
|
temperature = TemperatureField(
|
39
36
|
null=True,
|
40
37
|
blank=True,
|
@@ -42,7 +39,6 @@ class Temperature(models.Model):
|
|
42
39
|
|
43
40
|
|
44
41
|
class WeightHeightBmi(WeightHeightBmiModelMixin, models.Model):
|
45
|
-
|
46
42
|
report_datetime = models.DateTimeField(default=get_utcnow)
|
47
43
|
|
48
44
|
dob = models.DateField(null=True)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: edc-vitals
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.12
|
4
4
|
Summary: Classes for BP, weight, etc for clinicedc/edc projects
|
5
5
|
Home-page: https://github.com/clinicedc/edc-vitals
|
6
6
|
Author: Erik van Widenfelt
|
@@ -9,17 +9,13 @@ License: GPL license, see LICENSE
|
|
9
9
|
Keywords: django edc vitals,clinicedc,clinical trials
|
10
10
|
Classifier: Environment :: Web Environment
|
11
11
|
Classifier: Framework :: Django
|
12
|
-
Classifier: Framework :: Django ::
|
13
|
-
Classifier: Framework :: Django :: 4.0
|
14
|
-
Classifier: Framework :: Django :: 4.1
|
12
|
+
Classifier: Framework :: Django :: 4.2
|
15
13
|
Classifier: Intended Audience :: Developers
|
16
14
|
Classifier: Intended Audience :: Science/Research
|
17
15
|
Classifier: Operating System :: OS Independent
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
19
|
-
Classifier: Programming Language :: Python :: 3.9
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
21
17
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
22
|
-
Requires-Python: >=3.
|
18
|
+
Requires-Python: >=3.11
|
23
19
|
Description-Content-Type: text/x-rst
|
24
20
|
License-File: LICENSE
|
25
21
|
License-File: AUTHORS
|
@@ -1,22 +1,21 @@
|
|
1
1
|
[build-system]
|
2
|
-
requires = ["setuptools>=
|
3
|
-
build-backend = "setuptools.build_meta"
|
2
|
+
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
|
4
3
|
|
5
4
|
[tool.setuptools_scm]
|
6
|
-
|
5
|
+
version_file="_version.py"
|
7
6
|
|
8
7
|
[tool.black]
|
9
8
|
line-length = 95
|
10
|
-
target-version = ["
|
9
|
+
target-version = ["py311"]
|
11
10
|
extend-exclude = '''^(.*\/)*\b(migrations)\b($|\/.*$)'''
|
12
11
|
|
13
12
|
[tool.isort]
|
14
13
|
profile = "black"
|
15
|
-
py_version = "
|
14
|
+
py_version = "311"
|
16
15
|
skip = [".tox", ".eggs", "migrations"]
|
17
16
|
|
18
17
|
[tool.coverage.run]
|
19
|
-
parallel =
|
18
|
+
parallel = false
|
20
19
|
branch = true
|
21
20
|
source = ["edc_vitals"]
|
22
21
|
|
@@ -27,27 +26,27 @@ source = ["edc_vitals"]
|
|
27
26
|
show_missing = true
|
28
27
|
skip_covered = true
|
29
28
|
omit = ["requirements.txt"]
|
29
|
+
exclude_lines = [
|
30
|
+
"pragma: no cover",
|
31
|
+
"if TYPE_CHECKING:",
|
32
|
+
]
|
30
33
|
|
31
34
|
[tool.tox]
|
32
35
|
legacy_tox_ini = """
|
33
36
|
[tox]
|
34
37
|
envlist =
|
35
|
-
py{
|
38
|
+
py{311}-dj{42,dev},
|
36
39
|
lint
|
37
40
|
|
38
41
|
isolated_build = true
|
39
42
|
|
40
43
|
[gh-actions]
|
41
44
|
python =
|
42
|
-
3.
|
43
|
-
3.9: py39, lint
|
44
|
-
3.10: py310
|
45
|
+
3.11: py311, lint
|
45
46
|
|
46
47
|
[gh-actions:env]
|
47
48
|
DJANGO =
|
48
|
-
|
49
|
-
4.0: dj40
|
50
|
-
4.1: dj41
|
49
|
+
4.2: dj42, lint
|
51
50
|
dev: djdev
|
52
51
|
|
53
52
|
[testenv]
|
@@ -56,13 +55,11 @@ deps =
|
|
56
55
|
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/test_utils.txt
|
57
56
|
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/edc.txt
|
58
57
|
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/third_party_dev.txt
|
59
|
-
|
60
|
-
dj40: Django>=4.0,<4.1
|
61
|
-
dj41: Django>=4.1,<4.2
|
58
|
+
dj42: Django>=4.2,<5.0
|
62
59
|
djdev: https://github.com/django/django/tarball/main
|
63
60
|
|
64
61
|
commands =
|
65
|
-
pip install -U pip
|
62
|
+
pip install -U pip coverage[toml]
|
66
63
|
pip --version
|
67
64
|
pip freeze
|
68
65
|
coverage run -a runtests.py
|
@@ -12,19 +12,15 @@ keywords = django edc vitals, clinicedc, clinical trials
|
|
12
12
|
classifiers =
|
13
13
|
Environment :: Web Environment
|
14
14
|
Framework :: Django
|
15
|
-
Framework :: Django ::
|
16
|
-
Framework :: Django :: 4.0
|
17
|
-
Framework :: Django :: 4.1
|
15
|
+
Framework :: Django :: 4.2
|
18
16
|
Intended Audience :: Developers
|
19
17
|
Intended Audience :: Science/Research
|
20
18
|
Operating System :: OS Independent
|
21
|
-
Programming Language :: Python :: 3.
|
22
|
-
Programming Language :: Python :: 3.9
|
23
|
-
Programming Language :: Python :: 3.10
|
19
|
+
Programming Language :: Python :: 3.11
|
24
20
|
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
25
21
|
|
26
22
|
[options]
|
27
|
-
python_requires = >=3.
|
23
|
+
python_requires = >=3.11
|
28
24
|
zip_safe = False
|
29
25
|
include_package_data = True
|
30
26
|
packages = find:
|
edc-vitals-0.1.10/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.9
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{edc-vitals-0.1.10 → edc-vitals-0.1.12}/edc_vitals/tests/etc/user-rsa-restricted-private.pem
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|