forked from OpenLineage/OpenLineage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
57 lines (51 loc) · 1.68 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[bumpversion]
current_version = 1.23.0
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<rc>.*)
serialize =
{major}.{minor}.{patch}{rc}
{major}.{minor}.{patch}
[bumpversion:file:setup.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:openlineage/airflow/version.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[tool:pytest]
addopts = -p no:warnings
[mypy]
ignore_missing_imports = True
disable_error_code = attr-defined
[tox:tox]
envlist =
py3-airflow-{2.3.4,2.4.3,2.5.2,2.6.1}
skipsdist = True
[testenv]
usedevelop = True
install_command = python -m pip install {opts} --find-links target/wheels/ \
--find-links ../sql/target/wheels \
--use-deprecated=legacy-resolver \
--constraint=https://raw.githubusercontent.com/apache/airflow/constraints-{env:AIRFLOW_VERSION}/constraints-3.8.txt \
{packages}
deps = -r dev-requirements.txt
pytest
pytest-mock
mypy>=0.9.6
airflow-2.3.4: apache-airflow==2.3.4
airflow-2.4.3: apache-airflow==2.4.3
airflow-2.5.2: apache-airflow==2.5.2
airflow-2.6.1: apache-airflow==2.6.1
whitelist_externals = bash
commands = bash -ec "if [[ ! -f $0/airflow.db ]]; then airflow db reset -y; fi" {envdir}
python -m pytest --cov=openlineage --junitxml=test-results/junit.xml
coverage xml
setenv =
AIRFLOW__CORE__SQL_ALCHEMY_CONN = sqlite:///{envdir}/airflow.db
AIRFLOW_HOME = {envdir}
PYTHONPATH = {toxinidir}/tests
AIRFLOW__CORE__LOGGING_CONFIG_CLASS = log_config.LOGGING_CONFIG
airflow-2.3.4: AIRFLOW_VERSION = 2.3.4
airflow-2.4.3: AIRFLOW_VERSION = 2.4.3
airflow-2.5.2: AIRFLOW_VERSION = 2.5.2
airflow-2.6.1: AIRFLOW_VERSION = 2.6.1